Spear with Knife: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "items_weapons.txt")
 
(Remove old property, add trivia)
 
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
===Item===
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Spears}}
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{Page version|41.78.16}}
{{Retrieved|version=41|incver=55}}
{{Infobox item
<nowiki>
|name=Spear with Knife
    item SpearKnife
|model=SpearKnife_Model.png
|icon=SpearKnife.png
|icon_name=Spear with Knife
<!--GENERAL-->
|category=Weapon
|weight=1.5
|condition_max=Default: 7 <br>Crafted: <small>''See [[Crafted Spear|Spears]]''</small>
|attachment_type=Shovel
<!--CHARACTERISTICS-->
<!--DAMAGE-->
|type=Spear
|swing_time=2
|min_range=0.98
|max_range=1.45
|min_damage=1
|max_damage=1.6
|push_back=0.3
|knockdown=0
<!--TECHNICAL DETAILS-->
|item_id=Base.SpearKnife
}}
The '''spear with knife''' is a spear type weapon made from a [[Crafted Spear|crafted spear]] and a [[Kitchen Knife|kitchen knife]]. Compared to other spear type weapons, the spear with knife is not very effective, but will serve in a pinch.
 
==Crafting==
Spears with screwdriver are upgraded with [[Crafted Spear|crafted spear]], [[Kitchen Knife|kitchen knife]] and [[Duct Tape|duct tape]].
{{Crafting/sandbox2
|spear_with_knife
}}
 
==Trivia==
*This is the only spear that doesn't include its original item in name, simply being called "Knife" instead of "Kitchen Knife".
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 5070
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SpearKnife
     {
     {
        DisplayCategory = WeaponCrafted,
         MaxRange = 1.45,
         MaxRange = 1.45,
         WeaponSprite = SpearKnife,
         WeaponSprite = SpearKnife,
Line 14: Line 57:
         Categories = Improvised;Spear,
         Categories = Improvised;Spear,
         ConditionLowerChanceOneIn = 4,
         ConditionLowerChanceOneIn = 4,
         Weight = 1.5,
         Weight = 2.0,
         SplatNumber = 1,
         SplatNumber = 1,
         PushBackMod = 0.3,
         PushBackMod = 0.3,
Line 44: Line 87:
         HitSound = SpearKnifeHit,
         HitSound = SpearKnifeHit,
         SwingSound = SpearKnifeSwing,
         SwingSound = SpearKnifeSwing,
        SoundMap = SpearStab SpearKnifeStab,
AttachmentType = Shovel,
AttachmentType = Shovel,
         Tags = FishingSpear,
         Tags = FishingSpear,
        </nowiki>
    }
}}
}}
 
==See also==
*[[Crafted Spear]]
*[[Stone Knife]]
 
{{Navbox items|spears}}
 
 
[[Category:Fishing tools]]
[[Category:Tools]]

Latest revision as of 12:59, 28 April 2024

Project ZomboidItemsWeaponsMelee weaponsSpearsSpear with Knife
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Spear with Knife
SpearKnife Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Slot attached
Back
Properties
Max condition
Default: 7
Crafted: See Spears
Performance
Damage
1–1.6
Range
0.98–1.45
Knockback
0.3
Knockdown
0
Technical
Item ID
Base.SpearKnife

The spear with knife is a spear type weapon made from a crafted spear and a kitchen knife. Compared to other spear type weapons, the spear with knife is not very effective, but will serve in a pinch.

Crafting

Spears with screwdriver are upgraded with crafted spear, kitchen knife and duct tape.

Product Ingredients Tools Requirements Workstation XP
SpearKnife.png
Spear with Knife
SpearStick.png Crafted Spear ×1
KnifeChopping.png Kitchen Knife ×1
DuctTape.png Duct Tape ×2 unit(s)
none none none none

Trivia

  • This is the only spear that doesn't include its original item in name, simply being called "Knife" instead of "Kitchen Knife".

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.78.16
item SpearKnife
    {
        DisplayCategory = WeaponCrafted,
        MaxRange	=	1.45,
        WeaponSprite	=	SpearKnife,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	4,
        Weight	=	2.0,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Spear,
        ConditionMax	=	7,
        MaxHitCount	=	2,
        DoorDamage	=	5,
        SwingAnim	=	Spear,
        DisplayName	=	Spear With Knife,
        MinRange	=	0.98,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	SpearKnife,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	30,
        CritDmgMultiplier = 10,
        MinDamage	=	1,
        MaxDamage	=	1.6,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   SpearKnifeBreak,
        HitFloorSound	=	SpearKnifeHit,
        ImpactSound	=	SpearKnifeHit,
        DoorHitSound = SpearKnifeHit,
        HitSound	=	SpearKnifeHit,
        SwingSound	=	SpearKnifeSwing,
        SoundMap = SpearStab SpearKnifeStab,
		AttachmentType = Shovel,
        Tags = FishingSpear,
    }

See also