Nightstick: Difference between revisions

From PZwiki
(Created page with "The nightstick is a blunt weapon that can be found in police station armories and the trunk of police cruisers.")
 
m (Distribution table fix)
 
(39 intermediate revisions by 13 users not shown)
Line 1: Line 1:
The nightstick is a blunt weapon that can be found in police station armories and the trunk of police cruisers.
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{Page version|41.78.16}}
{{Infobox item
|name=Nightstick
|model=NightStick_Model.png
|icon=NightStick.png
|category=Weapon
|weight=1.5
|equipped=One-handed
|type=SmallBlunt
|min_range=0.61
|max_range=1.2
|swing_time=2
|condition_max=15
|min_damage=0.6
|max_damage=1.1
|push_back=0.3
|knockdown=0
|item_id=Base.Nightstick
}}
A '''nightstick''' is a blunt melee [[Weapons|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 [[door]]s, dealing just 1 damage per hit. For comparison, an [[axe]] deals 35 damage.
 
==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>
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Nightstick|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Nightstick distribution
        <span class="mw-customtoggle-togglebox-Nightstick" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Nightstick">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |-
    | bathroom
    | {{ll|locker}}
    | 6.29%
    |-
    | changeroom
    | {{ll|locker}}
    | 6.29%
    |-
    | office
    | {{ll|desk}}
    | 6.29%
    |-
    | policestorage
    | {{ll|counter}}
    | 6.29%
    |-
    | security
    | {{ll|locker}}
    | 6.29%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Police
    | {{ll|Truck Bed}}
    | 6.29%
    |}
</div>
<div id="zombies" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Zombies}}
    ! Outfit
    ! Days survived
    ! Chance
    |-
    | Police<br>PoliceState<br>PoliceRiot<br>PrisonGuard<br>PrivateMilitia
    | 0
    | 30
    |-
    | All
    | 10
    | 3
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Nightstick" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Nightstick|41.78.16-->
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,
    }
}}
}}
 
==See also==
*[[Pool Cue]]
*[[Golf Club]]
 
{{Navbox items|blunt}}

Latest revision as of 19:30, 30 April 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.

Nightstick distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
SafehouseLoot counter 15.1%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
bathroom locker 6.29%
changeroom locker 6.29%
office desk 6.29%
policestorage counter 6.29%
security locker 6.29%
Vehicles
Type Container Effective chance
Police Trunk 6.29%
Zombie
Outfit Days survived Chance
Police
PoliceState
PoliceRiot
PrisonGuard
PrivateMilitia
0 30
All 10 3

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