Hockey Stick: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
(added CodeBox, Condition and other fixes/updates/adjustments)
Line 1: Line 1:
{{languages}}
{{languages}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=50}}
{{Header|The Game World|Items|Weapons|Melee weapons|version=Version 41|incver=78.16}}
{{Infobox weapon
{{Infobox weapon
|display_name=Hockey Stick
|display_name=Hockey Stick
Line 8: Line 8:
|image_width=200px
|image_width=200px
|alternate_image=FieldHockeyStick.png
|alternate_image=FieldHockeyStick.png
|category=Weapon
<!--GENERAL-->
|category=Sports
|weight=1.5
|weight=1.5
|equipped=Two-handed
|equipped=Two-handed
|condition_max=7
|skill_type=Blunt
|attachment_type=Shovel
<!--DAMAGE-->
|type=Blunt
|type=Blunt
|min_range=0.61
|min_range=0.61
|max_range=1.6
|max_range=1.6
|swing_time=2
|base_speed=0.9
|condition_max=7
|min_damage=0.3
|min_damage=0.3
|max_damage=0.7
|max_damage=0.7
|door_damage=1
|tree_damage=0
|push_back=0.3
|push_back=0.3
|knockdown=0
|knockdown=0
<!--TECHNICAL-->
|class_name=Base.HockeyStick
|class_name=Base.HockeyStick
}}
}}
A [[Hockey Stick]] is a long blunt weapon. The hockey stick can be attached to the character's back for quick access and weight reduction
A '''hockey stick''' is an improvised long blunt [[Weapons|weapon]].  
 
== Usage ==
== Usage ==
The hockey stick can be attached to the character's back for quick access and weight reduction.
{{pros-cons
{{pros-cons
<!-- #PROS# - below this line -->
<!-- #PROS# - below this line -->
Line 32: Line 41:
|cons2 = Low durability. Having backup weapons is recommended.
|cons2 = Low durability. Having backup weapons is recommended.
}}
}}
===Multi-hit===
===Weapon===
In modes with multi-hit enabled, hockey sticks can hit a maximum of two targets in one swing.
The hockey stick can hit up to 3 enemies at a time (with multi-hit enabled), dealing a maximum of 0.7 damage to enemies (unless a critical hit) from up to 1.6 tiles away at an attack speed of 0.9.
 
==Condition==
The hockey stick has a maximum condition of 7. Its rate of degradation is influenced by the [[Skills|long blunt]] and [[Skills|maintenance]] skills. The chance of losing [[durability]] can be simplified to the following formula: <code>1 in (5 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the long blunt and maintenance skills.<br>
Below is an example of the chance of losing durability at varying levels of the [[Skills|maintenance]] and [[Skills|long blunt]] skills.
{{Durability weapon|5}}
===Repairing===
A garden hoe can be repaired with the following:
*2 × [[Wood Glue]] and level 2 [[Carpentry]]
*2 × [[Duct Tape]]
*3 × [[Glue]]
*4 × [[Adhesive Tape]]
 
==Distribution==
==Distribution==
===Buildings===
===Buildings===
*Hockey sticks can sometimes be found inside of a [[Time 4 Sports]] sporting goods store. There is a Time 4 Sports store located in the [[Crossroads Mall]] and the [[Riverside]] shopping district.
*Hockey sticks can sometimes be found inside of a [[Time 4 Sport]] sporting goods store. There is a Time 4 Sports store located in the [[Crossroads Mall]] and the [[Riverside]] shopping district.
===Zombies===
===Zombies===
*Hockey sticks can sometimes be found attached to bandit [[zombies]] which can be found at a bandit ambush vehicle story.
*Hockey sticks can sometimes be found attached to bandit [[zombies]] which can be found at a bandit ambush vehicle story.
==Gallery==
==Gallery==
<gallery style="image-rendering:optimizeSpeed;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:optimize-contrast;image-rendering:pixelated;image-rendering:crisp-edges;-ms-interpolation-mode:nearest-neighbor">
<gallery style="image-rendering:optimizeSpeed;image-rendering:-moz-crisp-edges;image-rendering:-o-crisp-edges;image-rendering:-webkit-optimize-contrast;image-rendering:optimize-contrast;image-rendering:pixelated;image-rendering:crisp-edges;-ms-interpolation-mode:nearest-neighbor">
HoldingHockeyStick.jpg|Survivor wielding the hockey stick.
HoldingHockeyStick.jpg|Survivor wielding the hockey stick.
HockeyStick-old.png|Old icon.
HockeyStick-old.png|Old icon prior to [[build 41]].
</gallery>
</gallery>


== Code ==
== Code ==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|
{{Retrieved|version=41|incver=50}}
{{CodeSnip
<pre> item HockeyStick
  | lang = java
MaxRange = 1.6,
  | line = true
WeaponSprite = HockeyStick,
  | start = 2046
MinAngle = 0.85,
  | source = items_weapons.txt
Type = Weapon,
  | retrieved = true
MinimumSwingTime = 2,
  | version = 41
KnockBackOnNoDeath = FALSE,
  | incver = 78.16
SwingAmountBeforeImpact = 0.02,
  | code =
Categories = Improvised;Blunt,
    item HockeyStick
ConditionLowerChanceOneIn = 5,
    {
Weight = 1.5,
        DisplayCategory = Sports,
SplatNumber = 1,
        MaxRange = 1.6,
PushBackMod = 0.3,
        WeaponSprite = HockeyStick,
SubCategory = Swinging,
        MinAngle = 0.85,
ConditionMax = 7,
        Type = Weapon,
MaxHitCount = 2,
        MinimumSwingTime = 2,
DoorDamage = 1,
        KnockBackOnNoDeath = FALSE,
SwingAnim = Bat,
        SwingAmountBeforeImpact = 0.02,
DisplayName = Hockey Stick,
        Categories = Improvised;Blunt,
MinRange = 0.61,
        ConditionLowerChanceOneIn = 5,
SwingTime = 2,
        Weight = 1.5,
KnockdownMod = 0,
        SplatNumber = 1,
SplatBloodOnNoDeath = FALSE,
        PushBackMod = 0.3,
Icon = FieldHockeyStick,
        SubCategory = Swinging,
RunAnim = Run_Weapon2,
        ConditionMax = 7,
IdleAnim = Idle_Weapon2,
        MaxHitCount = 3,
BreakSound = BreakWoodItem,
        DoorDamage = 1,
TreeDamage = 0,
        SwingAnim = Bat,
TwoHandWeapon = TRUE,
        DisplayName = Hockey Stick,
CriticalChance = 30,
        MinRange = 0.61,
CritDmgMultiplier = 2,
        SwingTime = 2,
MinDamage = 0.3,
        KnockdownMod = 0,
MaxDamage = 0.7,
        SplatBloodOnNoDeath = FALSE,
BaseSpeed = 0.9,
        Icon = FieldHockeyStick,
AttachmentType = Shovel,
        RunAnim = Run_Weapon2,
</pre>
        IdleAnim = Idle_Weapon2,
        BreakSound  =  HockeyStickBreak,
        DoorHitSound = HockeyStickHit,
HitSound = HockeyStickHit,
HitFloorSound = HockeyStickHit,
SwingSound = HockeyStickSwing,
        TreeDamage =   0,
        TwoHandWeapon = TRUE,
        CriticalChance = 30,
        CritDmgMultiplier = 2,
        MinDamage = 0.3,
        MaxDamage = 0.7,
        BaseSpeed = 0.9,
        AttachmentType = Shovel,
    }
}}
 
===Repair===
{{CodeSnip
  | lang = java
  | line = true
  | start = 328
  | source = fixing.txt
  | retrieved = true
  | version = 41
  | incver = 78.16
  | code =
    fixing Fix Hockey Stick
    {
      Require : HockeyStick,
 
      Fixer : Woodglue=2; Woodwork=2,
      Fixer : DuctTape=2,
      Fixer : Glue=3,
      Fixer : Scotchtape=4,
    }
}}
}}
 
==See also==
*[[Baseball Bat]]
*[[Ice Hockey Stick]]
*[[Lacrosse Stick]]
*[[Tennis Racket]]


{{Navbox_weapons}}
{{Navbox_weapons}}

Revision as of 06:46, 31 December 2023

Hockey Stick
Hockey Stick
FieldHockeyStick.png
General
Category Sports
Encumbrance
Heavy Load
1.5
Equipped Two-handed
Condition max. 7
Skill Long Blunt
Attachment Back
Damage
Type Blunt
Attack speed 0.9
Range 0.61–1.6 tiles
Damage 0.3–0.7
Tree damage 0
Door damage 1
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.HockeyStick

A hockey stick is an improvised long blunt weapon.

Usage

The hockey stick can be attached to the character's back for quick access and weight reduction.

Pros Cons
  • Long reach.
  • Not too heavy for a two-handed weapon.
  • Poor damage.
  • Low durability. Having backup weapons is recommended.

Weapon

The hockey stick can hit up to 3 enemies at a time (with multi-hit enabled), dealing a maximum of 0.7 damage to enemies (unless a critical hit) from up to 1.6 tiles away at an attack speed of 0.9.

Condition

The hockey stick has a maximum condition of 7. Its rate of degradation is influenced by the long blunt and maintenance skills. The chance of losing durability can be simplified to the following formula: 1 in (5 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the long blunt and maintenance skills.
Below is an example of the chance of losing durability at varying levels of the maintenance and long blunt skills.

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

Repairing

A garden hoe can be repaired with the following:

Distribution

Buildings

  • Hockey sticks can sometimes be found inside of a Time 4 Sport sporting goods store. There is a Time 4 Sports store located in the Crossroads Mall and the Riverside shopping district.

Zombies

  • Hockey sticks can sometimes be found attached to bandit zombies which can be found at a bandit ambush vehicle story.

Gallery

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 HockeyStick
    {
        DisplayCategory = Sports,
        MaxRange	=	1.6,
        WeaponSprite	=	HockeyStick,
        MinAngle	=	0.85,
        Type	=	Weapon,
        MinimumSwingTime	=	2,
        KnockBackOnNoDeath	=	FALSE,
        SwingAmountBeforeImpact	=	0.02,
        Categories	=	Improvised;Blunt,
        ConditionLowerChanceOneIn	=	5,
        Weight	=	1.5,
        SplatNumber	=	1,
        PushBackMod	=	0.3,
        SubCategory	=	Swinging,
        ConditionMax	=	7,
        MaxHitCount	=	3,
        DoorDamage	=	1,
        SwingAnim	=	Bat,
        DisplayName	=	Hockey Stick,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	FieldHockeyStick,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        BreakSound  =   HockeyStickBreak,
        DoorHitSound = HockeyStickHit,
		HitSound = HockeyStickHit,
		HitFloorSound = HockeyStickHit,
		SwingSound = HockeyStickSwing,
        TreeDamage  =   0,
        TwoHandWeapon = TRUE,
        CriticalChance	=	30,
        CritDmgMultiplier = 2,
        MinDamage	=	0.3,
        MaxDamage	=	0.7,
        BaseSpeed = 0.9,
        AttachmentType = Shovel,
    }

Repair

Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Hockey Stick
    {
       Require : HockeyStick,

       Fixer : Woodglue=2; Woodwork=2,
       Fixer : DuctTape=2,
       Fixer : Glue=3,
       Fixer : Scotchtape=4,
    }

See also