Nightstick: Difference between revisions

From PZwiki
m (Distribution table update)
 
(22 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{languages|Nightstick}}
{{Header|Project Zomboid|Items|Weapons|Melee weapons|Short blunt weapons}}
{{header|Project Zomboid|Items|Weapons|Melee Weapons|type=Weapon|version=Version 41|incver=50}}{{Infobox weapon
{{Page version|41.78.16}}
|display_name=Nightstick
{{Infobox item
|name_colour=Weapon
|name=Nightstick
|name_text_colour=Weapon
|model=NightStick_Model.png
|image=NightStick_Model.png
|icon=NightStick.png
|image_width=200px
|alternate_image=NightStick.png
|alternate_name=
|alternate_link=
|category=Weapon
|category=Weapon
|weight=1.5
|weight=1.5
|equipped=One-handed
|equipped=One-handed
|type=Blunt
|type=SmallBlunt
|min_range=0.61
|min_range=0.61
|max_range=1.2
|max_range=1.2
Line 21: 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==
Line 32: Line 29:


==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.
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|Nightstick|41.78.16-->
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{clear}}
{{Retrieved|version=41|incver=50}}
<div class="togglebox theme-red">
<pre> item Nightstick
    <div>Nightstick distribution
MaxRange = 1.2,
        <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>
WeaponSprite = Nightstick,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Nightstick">
MinAngle = 0.72,
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
Type = Weapon,
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
MinimumSwingTime = 2,
    |+ {{ll|Containers}}
KnockBackOnNoDeath = FALSE,
    ! Building / Room
SwingAmountBeforeImpact = 0.02,
    ! Container
Categories = SmallBlunt,
    ! Rolls
ConditionLowerChanceOneIn = 20,
    ! Chance
Weight = 1.5,
    |-
SplatNumber = 1,
    | SafehouseLoot
PushBackMod = 0.3,
    | {{ll|counter}}
SubCategory = Swinging,
    | 4
ConditionMax = 15,
    | 6.0
MaxHitCount = 2,
    |-
DoorDamage = 1,
    | bathroom
SwingAnim = Bat,
    | {{ll|locker}}
DisplayName = Nightstick,
    | 4
MinRange = 0.61,
    | 2.0
SwingTime = 2,
    |-
KnockdownMod = 0,
    | office
SplatBloodOnNoDeath = FALSE,
    | {{ll|desk}}
Icon = NightStick,
    | 4
RunAnim = Run_Weapon2,
    | 2.0
IdleAnim = Idle_Weapon2,
    |-
BreakSound = BreakMetalItem,
    | security
TreeDamage = 0,
    | {{ll|locker}}
CriticalChance = 25,
    | 4
CritDmgMultiplier = 2,
    | 2.0
MinDamage = 0.6,
    |}
MaxDamage = 1.1,
</div>
BaseSpeed = 1,
<div style="float:left;">
WeaponLength = 0.45,
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
AttachmentType = Nightstick,
    |+ {{ll|Vehicles}}
</pre>
    ! Vehicle Type/Location
    ! Rolls
    ! Chance
    |-
    | PoliceTruckBed
    | 4
    | 2
    |}
</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/Weapons}}{{Navbox_weapons}}
{{Navbox items|blunt}}

Latest revision as of 16:09, 24 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
Containers
Building / Room Container Rolls Chance
SafehouseLoot counter 4 6.0
bathroom locker 4 2.0
office desk 4 2.0
security locker 4 2.0
Vehicles
Vehicle Type/Location Rolls Chance
PoliceTruckBed 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