Pistol

From PZwiki
Revision as of 13:59, 25 July 2021 by Vaileasys (talk | contribs) (Updated to build 41.52 - some parts may still be outdated, i.e. distribution + still needs pros-cons)

Pistol
M9 Pistol
M9 Pistol
M9 Pistol (Icon) 9mm Magazine 9mm Rounds
General
Category Weapon
Encumbrance
Heavy Load
1.5
Equipped One-handed
Condition max. 10
Skill Gunshot
Attachment Holster
Characteristics
Ammo type 9mm Round
Magazine size 15
Noise radius 50 tiles
Recoil delay 20
Reload time 30
Aiming time 15
Damage
Type Gunshot
Range 0.61–10 tiles
Damage 0.6–1
Accuracy 50
Knockback 0.3
Knockdown 2
Technical details
Base ID Base.Pistol

A M9 pistol, previously just pistol, is a type of weapon in Project Zomboid.

Usage

The M9 Pistol is a 9mm caliber pistol, with good accuracy and low noise for a firearm.

Reloading

The M9 pistol requires using a 15 round capacity 9mm magazine. Like other firearms, the M9 pistol can be reloaded with R. If given enough time, the player will automatically rack the firearm, thus transferring a round into the chamber. If not, the firearm must be racked manually (default: X). Once racked once, the firearm will not need to be racked again, until a new magazine is inserted. If racked while a round is already in the chamber, the round will be ejected and placed into player's inventory. To avoid using the contextual menu in the inventory, the M9 pistol can be reloaded, racked or unloaded by holding R and selecting the desired action.

Pre-build 41

Reloading difficulty can be set to either Easy, Normal, or Hardcore. It is not possible to fire the weapon with the magazine removed. The trigger and hammer click when the last round in the magazine is fired, as if to indicate to the user that they are out of ammunition.

Easy Mode

In-game description: Reloading handguns refills the weapon provided there is ammunition available.

Reloading the Pistol on Easy is accomplished simply by having 9mm Round in the character's inventory and pressing R while having the handgun equipped. Magazines are unavailable on Easy mode. The Pistol can also be reloaded by selecting the "Reload" option after right-clicking it.

Normal Mode

In-game description: Reloading ejects or inserts a magazine. Magazines must be reloaded separately.

Hardcore Mode

In-game description: Reloading ejects or inserts a magazine. Magazines must be reloaded separately. Weapons must be racked before firing to ensure a round is chambered. This allows the pistol to hold one additional round, as when you rack it it becomes 14+1, and if you eject the magazine you can load in another bullet, reinsert it, and have 15+1 rounds.

Attachments

Attachments can be attached to shotguns with the use of a Screwdriver. When you have the screwdriver and desired attachment, right click the JS-2000 in your inventory, select "Upgrade" and select the attachment you want to use. There are four different types of attachments that can be added to shotguns.

Condition

The M9 pistol is a firearm, therefore being influenced by the firearm skills: aiming and reloading. It has a maximum condition of 10 and will be damaged depending on the player's aiming skill. The chance of losing durability is: 1 in (60 + aiming x 2).

Repairing

M9 pistol requires a minimum of 3 aiming, and another M9 pistol. The aiming skill determines how much will be repaired and chance of being successful.

It should be noted that repairing the M9 pistol makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.

Distribution

The M9 pistol can be found almost anywhere, albeit rarely. It can usually be found inside of cabinets, storage crates, wardrobes, dressers, and other similar containers. It cannot be found inside of refrigerators, although it may rarely be found on zombies.

Code

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

    item Pistol
	{
	ImpactSound	=	null,
	MaxRange	=	7,
	WeaponSprite	=	Handgun03,
	SoundVolume	=	30,
	MinAngle	=	0.95,
	Type	=	Weapon,
	MinimumSwingTime	=	0.5,
	ToHitModifier	=	1.5,
	NPCSoundBoost	=	1.5,
	KnockBackOnNoDeath	=	TRUE,
	Ranged	=	TRUE,
	SwingAmountBeforeImpact	=	0,
	ProjectileCount	=	1,
	ConditionLowerChanceOneIn	=	60,
	Weight	=	1.5,
	SplatNumber	=	3,
	PushBackMod	=	0.3,
	SubCategory	=	Firearm,
	ConditionMax	=	10,
	ShareDamage	=	FALSE,
	MaxHitCount	=	1,
	IsAimedFirearm	=	TRUE,
	DoorDamage	=	5,
	UseEndurance	=	FALSE,
	SwingAnim	=	Handgun,
	DisplayName	=	M9 Pistol,
	MinRange	=	0.61,
	SwingTime	=	0.5,
	MultipleHitConditionAffected	=	FALSE,
	SwingSound	=	Firearm9mmShot,
	SoundRadius	=	50,
	MinDamage	=	0.6,
	MaxDamage	=	1,
	SplatSize	=	3,
	KnockdownMod	=	2,
	SplatBloodOnNoDeath	=	TRUE,
	Icon	=	HandGun3,
	RunAnim	=	Run_Weapon2,
	CriticalChance	=	20,
        CritDmgMultiplier = 4,
        AimingPerkCritModifier = 10,
        AimingPerkRangeModifier = 1.5,
        HitChance = 50,
        AimingPerkHitChanceModifier = 8,
        AimingPerkMinAngleModifier = 0.05,
        RecoilDelay = 20,
        SoundGain = 1.5,
        ClipSize = 15,
        ReloadTime = 30,
        AimingTime = 15,
        BreakSound  =   BreakMetalItem,
        MetalValue = 30,
        AmmoBox = Bullets9mmBox,
        MaxAmmo = 15,
        InsertAmmoSound = Stormy9mmClipLoad,
        EjectAmmoSound = Stormy9mmClipEject,
        RackSound = Stormy9mmRack,
        MagazineType = Base.9mmClip,
        AmmoType = Base.Bullets9mm,
        WeaponReloadType = handgun,
        JamGunChance = 2,
        ModelWeaponPart = RedDot RedDot reddot reddot,
        ModelWeaponPart = GunLight GunLight gunlight gunlight,
        ModelWeaponPart = IronSight IronSight scope scope,
        ModelWeaponPart = Laser Laser laser laser,
        AttachmentType = Holster,
        StopPower = 5,
	}

See also