Ice Hockey Stick: Difference between revisions

From PZwiki
m (added)
(added basic weapon content, and CodeBox)
Line 1: Line 1:
{{languages|Broom}}
{{languages}}
{{Header|The Game World|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=61}}
{{Header|The Game World|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=78.16}}
{{Improve}}
{{Infobox weapon
{{Infobox weapon
|display_name=Ice Hockey Stick
|display_name=Ice Hockey Stick
Line 27: Line 26:
|knockdown=0
|knockdown=0
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=IceHockeyStick
|class_name=Base.IceHockeyStick
}}
}}
An '''ice hockey stick''' is an improvised long blunt weapon.
An '''ice hockey stick''' is an improvised long blunt [[Weapons|weapon]].
 
==Usage==
===Weapon===
The ice 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 2.
 
==Condition==
The ice 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 (1 + maintenanceMod &times; 2)</code>. Where "maintenanceMod" is calculated using the short 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}}


== Code ==
== Code ==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=61}}
| {{CodeSnip
<pre> item IceHockeyStick
  | lang = java
DisplayCategory = Sports,
  | line = true
MaxRange = 1.6,
  | start = 2089
WeaponSprite = IceHockeyStick,
  | source = weapons.txt
MinAngle = 0.85,
  | retrieved = true
Type = Weapon,
  | version = 41
MinimumSwingTime = 2,
  | incver = 78.16
KnockBackOnNoDeath = FALSE,
  | code =
SwingAmountBeforeImpact = 0.02,
    item IceHockeyStick
Categories = Improvised;Blunt,
    {
ConditionLowerChanceOneIn = 5,
        DisplayCategory = Sports,
Weight = 1.5,
        MaxRange = 1.6,
SplatNumber = 1,
        WeaponSprite = IceHockeyStick,
PushBackMod = 0.3,
        MinAngle = 0.85,
SubCategory = Swinging,
        Type = Weapon,
ConditionMax = 7,
        MinimumSwingTime = 2,
MaxHitCount = 3,
        KnockBackOnNoDeath = FALSE,
DoorDamage = 1,
        SwingAmountBeforeImpact = 0.02,
SwingAnim = Bat,
        Categories = Improvised;Blunt,
DisplayName = Ice Hockey Stick,
        ConditionLowerChanceOneIn = 5,
MinRange = 0.61,
        Weight = 1.5,
SwingTime = 2,
        SplatNumber = 1,
KnockdownMod = 0,
        PushBackMod = 0.3,
SplatBloodOnNoDeath = FALSE,
        SubCategory = Swinging,
Icon = HockeyStick,
        ConditionMax = 7,
RunAnim = Run_Weapon2,
        MaxHitCount = 3,
IdleAnim = Idle_Weapon2,
        DoorDamage = 1,
BreakSound = HockeyStickBreak,
        SwingAnim = Bat,
DoorHitSound = HockeyStickHit,
        DisplayName = Ice Hockey Stick,
HitSound = HockeyStickHit,
        MinRange = 0.61,
HitFloorSound = HockeyStickHit,
        SwingTime = 2,
SwingSound = HockeyStickSwing,
        KnockdownMod = 0,
TreeDamage = 0,
        SplatBloodOnNoDeath = FALSE,
TwoHandWeapon = TRUE,
        Icon = HockeyStick,
CriticalChance = 30,
        RunAnim = Run_Weapon2,
CritDmgMultiplier = 2,
        IdleAnim = Idle_Weapon2,
MinDamage = 0.3,
        BreakSound =   HockeyStickBreak,
MaxDamage = 0.7,
        DoorHitSound = HockeyStickHit,
BaseSpeed = 0.9,
HitSound = HockeyStickHit,
AttachmentType = Shovel,
HitFloorSound = HockeyStickHit,
</pre>
SwingSound = HockeyStickSwing,
        TreeDamage =   0,
        TwoHandWeapon = TRUE,
        CriticalChance = 30,
        CritDmgMultiplier = 2,
        MinDamage = 0.3,
        MaxDamage = 0.7,
        BaseSpeed = 0.9,
        AttachmentType = Shovel,
    }
  }}
}}


== See Also ==
== See also ==
* [[Hockey Stick]]
* [[Hockey Stick]]
* [[LaCrosse Stick]]


{{Navbox_weapons}}
{{Navbox_weapons}}

Revision as of 13:03, 28 December 2023

The Game WorldItemsWeaponsMelee weaponsIce Hockey Stick
Ice Hockey Stick
Ice Hockey Stick
Ice Hockey Stick
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped Two-handed
Condition max. 7
Skill Long Blunt
Attachment Back
Damage
Type Blunt
Attack speed 2
Range 0.61–1.6 tiles
Damage 0.3–0.7
Door damage 1
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.IceHockeyStick

An ice hockey stick is an improvised long blunt weapon.

Usage

Weapon

The ice 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 2.

Condition

The ice 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 (1 + maintenanceMod × 2). Where "maintenanceMod" is calculated using the short 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%)

Code

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

Source: ProjectZomboid\media\scripts\weapons.txt

Retrieved: Build 41.78.16
item IceHockeyStick
    {
        DisplayCategory = Sports,
        MaxRange	=	1.6,
        WeaponSprite	=	IceHockeyStick,
        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	=	Ice Hockey Stick,
        MinRange	=	0.61,
        SwingTime	=	2,
        KnockdownMod	=	0,
        SplatBloodOnNoDeath	=	FALSE,
        Icon	=	HockeyStick,
        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,
    }

See also