Nightstick: Difference between revisions

From PZwiki
(If it cannot be used to chop trees, probably doesn't need to be in usage section I think.)
Line 38: Line 38:


== Code ==
== Code ==
===Item===
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=41|incver=50}}
{{Retrieved|version=41|incver=50}}
<pre> item Nightstick
<pre> item GardenHoe
        MaxRange = 1.2,
Type = Weapon,
        WeaponSprite = Nightstick,
DisplayName = Garden Hoe,
        MinAngle = 0.72,
Icon = Hoe,
        Type = Weapon,
Weight = 2.0,
        MinimumSwingTime = 2,
SubCategory = Swinging,
        KnockBackOnNoDeath = FALSE,
MinAngle = 0.85,
        SwingAmountBeforeImpact = 0.02,
MaxRange = 1.6,
        Categories = SmallBlunt,
MinRange = 0.61,
        ConditionLowerChanceOneIn = 20,
PushBackMod = 0.5,
        Weight = 1.5,
HitAngleMod = -30.0,
        SplatNumber = 1,
SwingAnim = Bat,
        PushBackMod = 0.3,
MaxHitCount = 1,
        SubCategory = Swinging,
WeaponSprite = GardenHoe,
        ConditionMax = 15,
IdleAnim = Idle_Weapon2,
        MaxHitCount = 2,
RunAnim = Run_Weapon2,
        DoorDamage = 1,
Weight = 1.5,
        SwingAnim = Bat,
DoorDamage = 10,
        DisplayName = Nightstick,
MinimumSwingTime = 2.1,
        MinRange = 0.61,
SwingTime = 2.1,
        SwingTime = 2,
SwingAmountBeforeImpact = 0.02,
        KnockdownMod = 0,
ConditionLowerChanceOneIn = 10,
        SplatBloodOnNoDeath = FALSE,
ConditionMax = 10,
        Icon = NightStick,
Categories = Blunt,
        RunAnim = Run_Weapon2,
TwoHandWeapon = TRUE,
        IdleAnim = Idle_Weapon2,
BreakSound = BreakWoodItem,
        BreakSound  =   BreakMetalItem,
KnockdownMod = 2,
        TreeDamage =   0,
KnockBackOnNoDeath = TRUE,
        CriticalChance = 25,
MetalValue = 70,
        CritDmgMultiplier = 2,
TreeDamage = 1,
        MinDamage = 0.6,
CriticalChance = 35,
        MaxDamage = 1.1,
CritDmgMultiplier = 2,
        BaseSpeed = 1,
MaxDamage = 1.7,
        WeaponLength = 0.45,
MinDamage = 0.6,
        AttachmentType = Nightstick,</pre>
BaseSpeed = 0.85,
WeaponLength = 0.65,
DamageCategory = Slash,
DamageMakeHole = TRUE,
AttachmentType = BigBlade,
Tags = DigPlow,
</pre>






{{Navbox/Weapons}}{{Navbox_weapons}}
{{Navbox/Weapons}}{{Navbox_weapons}}

Revision as of 02:45, 12 June 2021

Nightstick
NightStick.png
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Condition max. 15
Skill Long Blunt
Damage
Type Blunt
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 frying pan has a short range and can only hit one opponent per swing, making it difficult to fight multiple zombies at once, especially since it has a long swing time.

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 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.

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.50

	item GardenHoe
		Type				= Weapon,
		DisplayName			= Garden Hoe,
		Icon				= Hoe,
		Weight				= 2.0,
		SubCategory			= Swinging,
		MinAngle			= 0.85,
		MaxRange			= 1.6,
		MinRange			= 0.61,
		PushBackMod			= 0.5,
		HitAngleMod			= -30.0,
		SwingAnim			= Bat,
		MaxHitCount			= 1,
		WeaponSprite			= GardenHoe,
		IdleAnim			= Idle_Weapon2,
		RunAnim				= Run_Weapon2,
		Weight				= 1.5,
		DoorDamage			= 10,
		MinimumSwingTime		= 2.1,
		SwingTime			= 2.1,
		SwingAmountBeforeImpact		= 0.02,
		ConditionLowerChanceOneIn	= 10,
		ConditionMax			= 10,
		Categories			= Blunt,
		TwoHandWeapon			= TRUE,
		BreakSound			= BreakWoodItem,
		KnockdownMod			= 2,
		KnockBackOnNoDeath		= TRUE,
		MetalValue			= 70,
		TreeDamage			= 1,
		CriticalChance			= 35,
		CritDmgMultiplier		= 2,
		MaxDamage			= 1.7,
		MinDamage			= 0.6,
		BaseSpeed			= 0.85,
		WeaponLength			= 0.65,
		DamageCategory			= Slash,
		DamageMakeHole			= TRUE,
		AttachmentType			= BigBlade,
		Tags				= DigPlow,


Template:Navbox/Weapons