Spear with Fork: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "items_weapons.txt")
 
mNo edit summary
 
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Code ==
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Spears}}
===Item===
{{Page version|41.78.16}}
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{Infobox item
{{Retrieved|version=41|incver=55}}
|name=Spear with Fork
<nowiki>
|model=SpearFork_Model.png
    item SpearFork
|icon=SpearFork.png
|icon_name=Spear with Fork
<!--GENERAL-->
|category=Weapon
|weight=1.5
|condition_max=Default: 6 <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.42
|min_damage=1
|max_damage=1.6
|push_back=0.3
|knockdown=0
<!--TECHNICAL DETAILS-->
|ingredients=<!-- Omitted because there's many variations -->
|item_id=Base.SpearFork
}}
A '''spear with fork''' is one of the upgraded version of a [[Crafted Spear|crafted spear]], being more powerful and durable.
This crafting recipe is currently the only efficient way to utilize a [[fork]] as weaponry, since the base tool is far too low in damage and durability, and is rather used as a decorative item.
 
==Crafting==
Spears with fork are upgraded with [[Crafted Spear|crafted spears]], [[fork]]s, and [[Duct Tape|duct tape]].
{{Crafting/sandbox2
|spear_with_fork
}}
 
==Code==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 4550
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SpearFork
     {
     {
        DisplayCategory = WeaponCrafted,
         MaxRange = 1.42,
         MaxRange = 1.42,
         WeaponSprite = SpearFork,
         WeaponSprite = SpearFork,
Line 15: Line 56:
         Categories = Improvised;Spear,
         Categories = Improvised;Spear,
         ConditionLowerChanceOneIn = 3,
         ConditionLowerChanceOneIn = 3,
         Weight = 1.5,
         Weight = 2.0,
         SplatNumber = 1,
         SplatNumber = 1,
         PushBackMod = 0.3,
         PushBackMod = 0.3,
Line 46: Line 87:
         HitSound = SpearForkHit,
         HitSound = SpearForkHit,
         SwingSound = SpearForkSwing,
         SwingSound = SpearForkSwing,
        SoundMap = SpearStab SpearForkStab,
AttachmentType = Shovel,
AttachmentType = Shovel,
         Tags = FishingSpear,
         Tags = FishingSpear,
        {</nowiki>
    }
}}
}}
 
==See also==
*[[Fishing]]
*[[Crafted Spear]]
 
{{Navbox items|spears}}
 
 
[[Category:Fishing tools]]
[[Category:Tools]]

Latest revision as of 10:56, 26 April 2024

Project ZomboidItemsWeaponsMelee weaponsSpearsSpear with Fork
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 Fork
SpearFork Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Slot attached
Back
Properties
Max condition
Default: 6
Crafted: See Spears
Performance
Damage
1–1.6
Range
0.98–1.42
Knockback
0.3
Knockdown
0
Technical
Item ID
Base.SpearFork

A spear with fork is one of the upgraded version of a crafted spear, being more powerful and durable. This crafting recipe is currently the only efficient way to utilize a fork as weaponry, since the base tool is far too low in damage and durability, and is rather used as a decorative item.

Crafting

Spears with fork are upgraded with crafted spears, forks, and duct tape.

Product Ingredients Tools Requirements Workstation XP
SpearFork.png
Spear with Fork
SpearStick.png Crafted Spear ×1
Fork.png Fork ×1
DuctTape.png Duct Tape ×2 unit(s)
none none none none

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 SpearFork
    {
        DisplayCategory = WeaponCrafted,
        MaxRange	=	1.42,
        WeaponSprite	=	SpearFork,
        MinAngle	=	0.8,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Spear,
        ConditionLowerChanceOneIn	=	3,
        Weight	=	2.0,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Spear,
        ConditionMax	=	6,
        MaxHitCount	=	2,
        DoorDamage	=	5,
        SwingAnim	=	Spear,
        DisplayName	=	Spear With Fork,
        MinRange	=	0.98,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	SpearFork,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	30,
        CritDmgMultiplier = 10,
        MinDamage	=	1,
        MaxDamage	=	1.6,
        BaseSpeed = 0.95,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        BreakSound  =   SpearForkBreak,
        HitFloorSound	=	SpearForkHit,
        ImpactSound	=	SpearForkHit,
        DoorHitSound = SpearForkHit,
        HitSound	=	SpearForkHit,
        SwingSound	=	SpearForkSwing,
        SoundMap = SpearStab SpearForkStab,
		AttachmentType = Shovel,
        Tags = FishingSpear,
    }

See also