Nightstick: Difference between revisions

From PZwiki
(→‎Code: Codebox Update)
m (Minor fixes, clear)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=50}}{{Infobox weapon
{{Languages}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=50}}
{{Infobox weapon
|display_name=Nightstick
|display_name=Nightstick
|name_colour=Weapon
|name_colour=Weapon
Line 21: Line 23:
|knockdown=0
|knockdown=0
|class_name=Base.Nightstick
|class_name=Base.Nightstick
}}A '''Nightstick''' is a blunt melee [[weapon]].
}}
A '''nightstick''' is a blunt melee [[Weapons|weapon]].


==Usage==
==Usage==
===Weapon===
===Weapon===
The Nightstick has a short range and can hit up to two enemies per swing, making it a useful weapon for controlling small groups of zombies. It also seems to be very good for knocking down zombies, further adding to its usefulness.
The Nightstick has a short range and can hit up to two enemies per swing, making it a useful weapon for controlling small groups of zombies. It also seems to be very good for knocking down zombies, further adding to its usefulness.
Line 35: Line 37:


==Distribution==
==Distribution==
Nightsticks are often found on Police Officers and in Police Stations and found impaled in the stomach of zombies about 15 or 18 days after the knox event.
Nightsticks are often found on police officers and in [[police station]]s and found impaled in the stomach of zombies about 15 or 18 days after the [[Knox Event]].


== Code ==
==Code==
{{CodeBox
{{CodeBox
| {{CodeSnip
| {{CodeSnip
Line 87: Line 89:
   }}
   }}
}}
}}
 
{{Clear}}<!--Remove when the page gets longer-->
 
{{Navbox weapons}}
{{Navbox weapons}}

Revision as of 22:47, 13 January 2024

Nightstick
Nightstick
NightStick.png
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Condition max. 15
Skill Short Blunt
Damage
Type SmallBlunt
Attack speed 2
Range 0.61–1.2 tiles
Damage 0.6–1.1
Knockback 0.3
Knockdown 0
Technical details
Base ID Base.Nightstick

A nightstick is a blunt melee weapon.

Usage

Weapon

The Nightstick has a short range and can hit up to two enemies per swing, making it a useful weapon for controlling small groups of zombies. It also seems to be very good for knocking down zombies, further adding to its usefulness.

Breaking doors

It is mostly ineffective at bashing down doors, dealing just 1 damage per hit. For comparison, an axe deals 35 damage.

Condition

The Nightstick is a small blunt weapon, therefore being influenced by the blunt skills: accuracy, guard and maintenance. It has a maximum condition of 15 and will be damaged depending on the player's maintenance skill. The chance of losing durability is: 1 in (20 + maintenance x 2)

Distribution

Nightsticks are often found on police officers and in police stations and found impaled in the stomach of zombies about 15 or 18 days after the Knox Event.

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.50
item Nightstick
{
  MaxRange                = 1.2,
  WeaponSprite            = Nightstick,
  MinAngle                = 0.72,
  Type                    = Weapon,
  MinimumSwingTime        = 2,
  KnockBackOnNoDeath      = FALSE,
  SwingAmountBeforeImpact = 0.02,
  Categories              = SmallBlunt,
  ConditionLowerChanceOneIn = 20,
  Weight                  = 1.5,
  SplatNumber             = 1,
  PushBackMod             = 0.3,
  SubCategory             = Swinging,
  ConditionMax            = 15,
  MaxHitCount             = 2,
  DoorDamage              = 1,
  SwingAnim               = Bat,
  DisplayName             = Nightstick,
  MinRange                = 0.61,
  SwingTime               = 2,
  KnockdownMod            = 0,
  SplatBloodOnNoDeath     = FALSE,
  Icon                    = NightStick,
  RunAnim                 = Run_Weapon2,
  IdleAnim                = Idle_Weapon2,
  BreakSound              = BreakMetalItem,
  TreeDamage              = 0,
  CriticalChance          = 25,
  CritDmgMultiplier       = 2,
  MinDamage               = 0.6,
  MaxDamage               = 1.1,
  BaseSpeed               = 1,
  WeaponLength            = 0.45,
  AttachmentType          = Nightstick,
}