Spear with Hunting Knife: Difference between revisions

From PZwiki
m (→‎top: category project: "The Game World")
(→‎Code: Codebox Update)
Line 37: Line 37:


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=55}}
| {{CodeSnip
<pre>
  | lang = java
    item SpearHuntingKnife
  | line = true
    {
  | start = 0
        MaxRange = 1.48,
  | source = items_weapons.txt
        WeaponSprite = SpearHuntingKnife,
  | retrieved = true
        MinAngle = 0.8,
  | version = 41
        Type = Weapon,
  | incver = 55
        MinimumSwingTime = 2,
  | code =
        KnockBackOnNoDeath = FALSE,
item SpearHuntingKnife
        SwingAmountBeforeImpact = 0.02,
{
        Categories = Improvised;Spear,
  MaxRange               = 1.48,
        ConditionLowerChanceOneIn = 8,
  WeaponSprite           = SpearHuntingKnife,
        Weight = 1.5,
  MinAngle               = 0.8,
        SplatNumber = 1,
  Type                   = Weapon,
        PushBackMod = 0.3,
  MinimumSwingTime       = 2,
        SubCategory = Spear,
  KnockBackOnNoDeath     = FALSE,
        ConditionMax = 9,
  SwingAmountBeforeImpact = 0.02,
        MaxHitCount = 2,
  Categories             = Improvised;Spear,
        DoorDamage = 7,
  ConditionLowerChanceOneIn = 8,
        SwingAnim = Spear,
  Weight                 = 1.5,
        DisplayName = Spear With Hunting Knife,
  SplatNumber             = 1,
        MinRange = 0.98,
  PushBackMod             = 0.3,
        SwingTime = 2,
  SubCategory             = Spear,
        KnockdownMod = 0,
  ConditionMax           = 9,
        SplatBloodOnNoDeath = FALSE,
  MaxHitCount             = 2,
        Icon = SpearHuntingKnife,
  DoorDamage             = 7,
        RunAnim = Run_Weapon2,
  SwingAnim               = Spear,
        IdleAnim = Idle_Weapon2,
  DisplayName             = Spear With Hunting Knife,
        TreeDamage =   0,
  MinRange               = 0.98,
        TwoHandWeapon = TRUE,
  SwingTime               = 2,
        CriticalChance = 30,
  KnockdownMod           = 0,
        CritDmgMultiplier = 10,
  SplatBloodOnNoDeath     = FALSE,
        MinDamage = 1.2,
  Icon                   = SpearHuntingKnife,
        MaxDamage = 1.7,
  RunAnim                 = Run_Weapon2,
        DamageCategory = Slash,
  IdleAnim               = Idle_Weapon2,
        DamageMakeHole = TRUE,
  TreeDamage             = 0,
        BreakSound =   SpearHuntingKnifeBreak,
  TwoHandWeapon           = TRUE,
        HitFloorSound = SpearHuntingKnifeHit,
  CriticalChance         = 30,
        ImpactSound = SpearHuntingKnifeHit,
  CritDmgMultiplier       = 10,
        DoorHitSound = SpearHuntingKnifeHit,
  MinDamage               = 1.2,
        HitSound = SpearHuntingKnifeHit,
  MaxDamage               = 1.7,
        SwingSound = SpearHuntingKnifeSwing,
  DamageCategory         = Slash,
AttachmentType = Shovel,
  DamageMakeHole         = TRUE,
        Tags = FishingSpear,
  BreakSound             = SpearHuntingKnifeBreak,
        {
  HitFloorSound           = SpearHuntingKnifeHit,
</pre>
  ImpactSound             = SpearHuntingKnifeHit,
  DoorHitSound           = SpearHuntingKnifeHit,
  HitSound               = SpearHuntingKnifeHit,
  SwingSound             = SpearHuntingKnifeSwing,
  AttachmentType         = Shovel,
  Tags                   = FishingSpear,
}
  }}
}}


==See also==
==See also==

Revision as of 04:49, 13 January 2024

Project ZomboidItemsToolsSpear with Hunting Knife
Spear with Hunting Knife
Spear with Hunting Knife
Spear with Hunting Knife
General
Category Weapon
Encumbrance
Heavy Load
1.5
Condition max. Default: 9
Crafted: See Spears
Skill Spear
Attachment Back
Damage
Type Spear
Attack speed 2
Range 0.98–1.48 tiles
Damage 1.2–1.7
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.SpearHuntingKnife

The spear with hunting knife is a spear type weapon made from a crafted spear and a hunting knife it is slightly better than some other spear variants.

Crafting

Spears with hunting knife are upgraded with crafted spears, hunting knife and duct tape.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
SpearHuntingKnife.png
Spear with Hunting Knife
0 XP none SpearStick.png
Crafted Spear
(consumed)
HuntingKnife.png
Hunting Knife
(consumed)
DuctTape.png
Duct Tape (2 units)
(consumed)

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.55
item SpearHuntingKnife
{
  MaxRange                = 1.48,
  WeaponSprite            = SpearHuntingKnife,
  MinAngle                = 0.8,
  Type                    = Weapon,
  MinimumSwingTime        = 2,
  KnockBackOnNoDeath      = FALSE,
  SwingAmountBeforeImpact = 0.02,
  Categories              = Improvised;Spear,
  ConditionLowerChanceOneIn = 8,
  Weight                  = 1.5,
  SplatNumber             = 1,
  PushBackMod             = 0.3,
  SubCategory             = Spear,
  ConditionMax            = 9,
  MaxHitCount             = 2,
  DoorDamage              = 7,
  SwingAnim               = Spear,
  DisplayName             = Spear With Hunting Knife,
  MinRange                = 0.98,
  SwingTime               = 2,
  KnockdownMod            = 0,
  SplatBloodOnNoDeath     = FALSE,
  Icon                    = SpearHuntingKnife,
  RunAnim                 = Run_Weapon2,
  IdleAnim                = Idle_Weapon2,
  TreeDamage              = 0,
  TwoHandWeapon           = TRUE,
  CriticalChance          = 30,
  CritDmgMultiplier       = 10,
  MinDamage               = 1.2,
  MaxDamage               = 1.7,
  DamageCategory          = Slash,
  DamageMakeHole          = TRUE,
  BreakSound              = SpearHuntingKnifeBreak,
  HitFloorSound           = SpearHuntingKnifeHit,
  ImpactSound             = SpearHuntingKnifeHit,
  DoorHitSound            = SpearHuntingKnifeHit,
  HitSound                = SpearHuntingKnifeHit,
  SwingSound              = SpearHuntingKnifeSwing,
  AttachmentType          = Shovel,
  Tags                    = FishingSpear,
}

See also