Pistol

From PZwiki
Revision as of 18:31, 29 December 2012 by DUMBELLS (talk | contribs) (→‎Code)

Pistol


Template:Weapons

Summary

The pistol is a recent addition in version 2.0 r RC 1.

It is a semi-automatic sidearm that is capable of dealing very high damage onto both human and undead enemies. Like all firearms in Project Zomboid, the pistol generates a lot of noise, which tends to attract the undead to the wielder of the pistol.

It can be found in cabinets and possibly storage crates.

Sadly, the pistol is a very heavy weapon to carry around, weighing 25 units of weight without ammo, making it almost impossible to complete scavenging missions if the pistol is not the primary weapon used in the mission.

Reloading

It also uses a new reloading system: You need to have the pistol in the Main slot then press R,after that the magazine goes into the main slot and then you need to hold down R then it starts loading bullets into the magazine,it can load up to 15 bullets into the magazine.When you are done put the pistol back into the main inventory slot press R to load the magazine into the pistol and then you are free to blast away.

Code

item Pistol
{
Type				=			Weapon,
		DisplayName			=			Pistol,
		Icon				=			HandGun,
		Ranged				=			true,
		MinAngle			=			0.88,
		MaxHitCount 		=			1,
		MaxDamage			=			2.8,
		MinDamage			=			2.3,
		MaxRange 			= 			18.0,
		SwingAnim			=			Handgun,
		WeaponSprite		=			Handgun, 
		SwingSound			=			pistol,
		SoundVolume			=			75,
		SoundRadius			=			75,		
		ToHitModifier		=			1.5,
		NPCSoundBoost 		=			1.5,
		Weight				=			25,
		IsAimedFirearm 		=			true,		
		WeaponWeight 		=			1.2,
		DoorDamage			=			5,
		MinimumSwingTime 	= 			2.0,
		SwingTime			=			2.0,
		SwingAmountBeforeImpact = 		0.0,
		PushBackMod			=			0.3,
		SplatNumber			=			3,
		SplatSize			=			3,		
		KnockBackOnNoDeath 	=	 		false,
		SplatBloodOnNoDeath = 			true,
		ImpactSound			=			null,
		UseEndurance		=			false,
		ShareDamage			=			false,
		KnockdownMod		=			2.0,
		AmmoType			=			BerettaClip,
		ConditionLowerChanceOneIn = 	5,
		ConditionMax 			  = 	150,
		MultipleHitConditionAffected = 	false,

}

Template:Navbox/Weapons