Nightstick: Difference between revisions

From PZwiki
m (→‎top: Category update: "Melee weapons")
m (Automated CodeBox update)
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Weapons|Melee weapons|type=Weapon|version=Version 41|incver=50}}{{Infobox weapon
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
|display_name=Nightstick
{{Page version|41.78.16}}
|name_colour=Weapon
{{Infobox item
|name_text_colour=Weapon
|name=Nightstick
|image=NightStick Model.png
|model=NightStick_Model.png
|image_width=200px
|icon=NightStick.png
|alternate_image=NightStick.png
|alternate_name=
|alternate_link=
|category=Weapon
|category=Weapon
|weight=1.5
|weight=1.5
Line 20: Line 17:
|push_back=0.3
|push_back=0.3
|knockdown=0
|knockdown=0
|class_name=Base.Nightstick
|item_id=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.


===Breaking doors===
===Breaking doors===
Line 32: Line 30:


==Condition==
==Condition==
The Nightstick is a [[Skills#Combat|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: <code>1 in (20 + maintenance x 2)</code>
The nightstick is a [[Skills#Combat|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: <code>1 in (20 + maintenance x 2)</code>


==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.
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|SafehouseLoot
|[[counter]]
|4
|6
|-
|rowspan="2"|bathroom
|[[locker]]
|4
|2
|-
|[[locker]]
|4
|2
|-
|office
|[[desk]]
|4
|2
|-
|security
|[[locker]]
|4
|2
|}
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==
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 95
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Nightstick
    {
        DisplayCategory = Weapon,
        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  =  NightstickBreak,
        DoorHitSound = NightstickHit,
HitSound = NightstickHit,
HitFloorSound = NightstickHit,
SwingSound = NightstickSwing,
        TreeDamage  =  0,
        CriticalChance = 25,
        CritDmgMultiplier = 2,
        MinDamage = 0.6,
        MaxDamage = 1.1,
        BaseSpeed = 1,
        WeaponLength = 0.45,
        AttachmentType = Nightstick,
    }
}}
}}


== Code ==
==See also==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
*[[Pool Cue]]
{{Retrieved|version=41|incver=50}}
*[[Golf Club]]
<pre>
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,
</pre>


{{Navbox weapons}}
{{Navbox weapons|blunt}}

Revision as of 11:09, 26 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Nightstick
NightStick Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Equipped
One-handed
Properties
Max condition
15
Performance
Damage
0.6–1.1
Range
0.61–1.2
Knockback
0.3
Knockdown
0
Technical
Item 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

The loot distributions can be found in the table(s) below.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 6
bathroom locker 4 2
locker 4 2
office desk 4 2
security locker 4 2

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.78.16
item Nightstick
    {
        DisplayCategory = Weapon,
        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  =   NightstickBreak,
        DoorHitSound = NightstickHit,
		HitSound = NightstickHit,
		HitFloorSound = NightstickHit,
		SwingSound = NightstickSwing,
        TreeDamage  =   0,
        CriticalChance	=	25,
        CritDmgMultiplier = 2,
        MinDamage	=	0.6,
        MaxDamage	=	1.1,
        BaseSpeed = 1,
        WeaponLength = 0.45,
        AttachmentType = Nightstick,
    }

See also