Nightstick: Difference between revisions

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



Revision as of 02:48, 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 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,


Template:Navbox/Weapons