Hand Fork: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, Condition and other fixes/updates/adjustments)
Line 1: Line 1:
{{Languages}}{{Header|The Game World|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=51}}{{Infobox weapon
{{Languages}}{{Header|The Game World|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=78.16}}{{Infobox weapon
|display_name=Hand Fork
|display_name=Hand Fork
|name_colour=Weapon
|name_colour=Weapon
Line 10: Line 10:
|alternate_image2=SpearGardeningFork.png
|alternate_image2=SpearGardeningFork.png
|alternate_name2=Spear Handfork
|alternate_name2=Spear Handfork
|alternate_link2=Wooden_Spear
|alternate_link2=Crafted Spear
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Tool/Weapon
|weight=0.5
|weight=0.5
|function=[[Weapon]]
|function=[[Farming]]
|equipped=One-handed
|equipped=One-handed
|secondary_item=
|condition_max=6
|condition_max=6
<!-- |attachment_type= -->
|attachment_type=Knife
<!--CHARACTERISTICS-->
|skill_type=SmallBlade
|ammo_type=
|clip_size=
|sound_radius=
|recoil_delay=
|reload_time=
|aiming_time=
<!--DAMAGE-->
<!--DAMAGE-->
|type=[[Weapons#Short_Blade|Short Blade]]
|type={{tooltip|Slash|Creates holes in clothing.}}
|swing_time=4
|base_speed={{tooltip|Stab|Attacks are near instant, and not influenced by a speed stat.}}
|min_range=0.61
|min_range=0.61
|max_range=0.9
|max_range=0.9
|hit_chance=
|min_damage=0.2
|min_damage=0.2
|max_damage=0.4
|max_damage=0.4
Line 38: Line 30:
|knockdown=2
|knockdown=2
|kill_move=Jaw_Stab
|kill_move=Jaw_Stab
|effect_power=
|effect_range=
|effect_timer=
|effect_type=
|sensor_range=
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|ingredients=
|class_name=Base.HandFork
|class_name=Base.HandFork
}}The '''hand fork''' is a one-handed, [[Weapons#Short_Blade|short blade]], uncraftable [[Weapons#Melee_weapons|melee weapon]]. It can be attached to a [[Wooden Spear|spear]].
}}A '''hand fork''' is a one-handed, [[Weapons#Short_Blade|short blade]] [[Weapons#Melee_weapons|melee weapon]]. It can be attached to a [[Crafted Spear|spear]].


==Usage==
==Usage==


===Farming===
===Farming===
The hand fork can be used similar to a [[shovel]] or [[trowel]] as a way of tilling [[grass]] for [[farming]].
The hand fork can be used similar to a [[shovel]] or [[trowel]] as a way of [[Plowed Land|tilling]] [[grass]] for [[farming]].


===Weapon===
===Weapon===
Line 67: Line 53:


==Condition==
==Condition==
The hand fork is a [[Skills#Blade|blade]] weapon, therefore being influenced by the blade skills: accuracy, guard and maintenance.
The hand fork has a maximum condition of 6. Its rate of degradation is influenced by the [[Skills|short blade]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (9 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short blade and maintenance skills.<br>
The chance of losing durability each hit (at Maintenance level 0) is: 1 in 9.
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|short blade]] skills.
{{Durability weapon|9}}


===Repairing===
===Repairing===
Line 97: Line 84:


==Trivia==
==Trivia==
*The hand fork was added to the game in build 41, also known as animation build.
*The hand fork was added to the game in [[build 41]], also known as animation build.


==Gallery==
==Gallery==
Line 105: Line 92:


==Code==
==Code==
 
{{CodeBox|
===Item===
===Item===
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=50}}
  | lang = java
<pre>
  | line = true
item HandFork
  | start = 3324
MaxRange = 0.9,
  | source = items_weapons.txt
WeaponSprite = HandFork,
  | retrieved = true
MinAngle = 0.65,
  | version = 41
Type = Weapon,
  | incver = 78.16
MinimumSwingTime = 4,
  | code =
KnockBackOnNoDeath = FALSE,
    item HandFork
SwingAmountBeforeImpact = 0.02,
    {
Categories = SmallBlade,
        DisplayCategory = ToolWeapon,
ConditionLowerChanceOneIn = 9,
        MaxRange = 0.9,
Weight = 0.5,
        WeaponSprite = HandFork,
SplatNumber = 2,
        MinAngle = 0.65,
PushBackMod = 0.3,
        Type = Weapon,
SubCategory = Stab,
        MinimumSwingTime = 4,
CloseKillMove = Jaw_Stab,
        KnockBackOnNoDeath = FALSE,
ConditionMax = 6,
        SwingAmountBeforeImpact = 0.02,
MaxHitCount = 2,
        Categories = SmallBlade,
DoorDamage = 5,
        ConditionLowerChanceOneIn = 9,
SwingAnim = Stab,
        Weight = 0.5,
DisplayName = Hand Fork,
        SplatNumber = 2,
MinRange = 0.61,
        PushBackMod = 0.3,
SwingTime = 4,
        SubCategory = Stab,
KnockdownMod = 2,
        CloseKillMove = Jaw_Stab,
SplatBloodOnNoDeath = FALSE,
        ConditionMax = 6,
Icon = GardeningFork,
        MaxHitCount = 2,
BreakSound = BreakWoodItem,
        DoorDamage = 5,
TreeDamage = 0,
        SwingAnim = Stab,
CriticalChance = 10,
        DisplayName = Hand Fork,
CritDmgMultiplier = 10,
        MinRange = 0.61,
MinDamage = 0.2,
        SwingTime = 4,
MaxDamage = 0.4,
        KnockdownMod = 2,
WeaponLength = 0.2,
        SplatBloodOnNoDeath = FALSE,
DamageCategory = Slash,
        Icon = GardeningFork,
DamageMakeHole = TRUE,
        BreakSound =   HandForkBreak,
HitFloorSound = BladeHit,
        TreeDamage =   0,
ImpactSound = BladeHit,
        CriticalChance = 10,
HitSound = BladeHit,
        CritDmgMultiplier = 10,
AttachmentType = Knife,
        MinDamage = 0.2,
Tags = DigPlow,
        MaxDamage = 0.4,
</pre>
  WeaponLength = 0.2,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        HitFloorSound = HandForkHit,
        ImpactSound = HandForkHit,
        DoorHitSound = HandForkHit,
HitSound = HandForkHit,
SwingSound = HandForkSwing,
AttachmentType = Knife,
        Tags = DigPlow,
  }
}}


===Repair===
===Repair===
'''''From fixing.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeSnip
{{Retrieved|version=41|incver=50}}
  | lang = java
<pre>
  | line = true
fixing Fix Hand Fork
  | start = 534
  | source = fixing.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
    fixing Fix Hand Fork
    {
       Require : HandFork,
       Require : HandFork,
       Fixer : DuctTape,
       Fixer : DuctTape,
       Fixer : Glue,
       Fixer : Glue,
       Fixer : Scotchtape=2,
       Fixer : Scotchtape=2,
</pre>
    }
}}
}}


==See also==
==See also==
*[[Shovel]]
*[[Shovel]]
*[[Trowel]]
*[[Trowel]]
*[[Weapons#Short Blade|Short Blade Weapons]]
*[[Weapons#Short Blade|Short blade weapons]]


{{Navbox equipment}}
{{Navbox equipment}}
Line 171: Line 179:


[[Category:Farming Tools]]
[[Category:Farming Tools]]
[[Category:Farming]]

Revision as of 06:54, 1 January 2024

Hand Fork
Hand Fork
Hand Fork Spear Handfork
General
Category Tool/Weapon
Encumbrance
Heavy Load
0.5
Function Farming
Equipped One-handed
Condition max. 6
Skill Short Blade
Attachment Belt
Damage
Type Slash
Attack speed Stab
Range 0.61–0.9 tiles
Damage 0.2–0.4
Door damage 5
Knockback 0.3
Knockdown 2
Execution Jaw_Stab
Technical details
Base ID Base.HandFork

A hand fork is a one-handed, short blade melee weapon. It can be attached to a spear.

Usage

Farming

The hand fork can be used similar to a shovel or trowel as a way of tilling grass for farming.

Weapon

Pros Cons
  • Fast attack rate.
  • Capable of dealing a one shot kill on zombies when the player performs a jaw stab animation.
  • The player can carry a bag in the other hand because it is a one-handed weapon.
  • Short attack range, low damage.
  • Can only hit one target at a time.
  • Can get stuck in a zombie after a jaw-stab animation.

Condition

The hand fork has a maximum condition of 6. Its rate of degradation is influenced by the short blade and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (9 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the short blade and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and short blade skills.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Condition lower chance
0 0 1/9 (11%)
0 4 1/11 (9%)
0 8 1/13 (8%)
4 0 1/13 (8%)
8 0 1/17 (6%)
4 4 1/15 (7%)
4 8 1/17 (6%)
8 8 1/21 (5%)
10 10 1/23 (4%)

Repairing

Materials that can be used to repair the hand fork, based on first time repairing.

Repair Hand Fork
DuctTape.png
Potentially repairs: 50%
Chance of success: 100%
Glue.png
Potentially repairs: 20%
Chance of success: 100%
Scotchtape.png
Potentially repairs: 10%
Chance of success: 100%

Distribution

Buildings

Hand forks can be found in tool sheds, self-storage lots, and warehouses.

NPCs

Zombies

There is a chance zombies have a hand fork stuck into their body.

Trivia

  • The hand fork was added to the game in build 41, also known as animation build.

Gallery

Code

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

Item

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item HandFork
    {
        DisplayCategory = ToolWeapon,
        MaxRange	=	0.9,
        WeaponSprite	=	HandFork,
        MinAngle	=	0.65,
        Type	=	Weapon,
        MinimumSwingTime	=	4,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	SmallBlade,
        ConditionLowerChanceOneIn	=	9,
        Weight	=	0.5,
        SplatNumber	=	2,
        PushBackMod	=	0.3,
        SubCategory	=	Stab,
        CloseKillMove = Jaw_Stab,
        ConditionMax	=	6,
        MaxHitCount	=	2,
        DoorDamage	=	5,
        SwingAnim	=	Stab,
        DisplayName	=	Hand Fork,
        MinRange	=	0.61,
        SwingTime	=	4,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	GardeningFork,
        BreakSound  =   HandForkBreak,
        TreeDamage  =   0,
        CriticalChance	=	10,
        CritDmgMultiplier = 10,
        MinDamage	=	0.2,
        MaxDamage	=	0.4,
   		WeaponLength = 0.2,
        DamageCategory = Slash,
        DamageMakeHole = TRUE,
        HitFloorSound	=	HandForkHit,
        ImpactSound	=	HandForkHit,
        DoorHitSound = HandForkHit,
		HitSound	=	HandForkHit,
		SwingSound = HandForkSwing,
		AttachmentType = Knife,
        Tags = DigPlow,
   }

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Hand Fork
    {
       Require : HandFork,

       Fixer : DuctTape,
       Fixer : Glue,
       Fixer : Scotchtape=2,
    }

See also