module Base
{
	item Pistol
 {
DisplayName                  = Pistol Beretta M9,
Icon                         = cj_icon_firearm_beretta_m9,
WeaponSprite                 = cj_sprite_beretta_m9,
Weight                       = 1.3,
AmmoType                     = Base.Bullets9mm,
AmmoBox                      = Bullets9mmBox,
MagazineType                 = 9mmClip,
MaxAmmo                      = 15,
RecoilDelay                  = 5,
ReloadTime                   = 6,
AimingTime                   = 19,
MinRange                     = 0.61,
MaxRange                     = 17,
MinAngle                     = 0.965,
DoorDamage                   = 1,
MinDamage                    = 0.8,
MaxDamage                    = 1.3,
StopPower                    = 20,
PiercingBullets              = FALSE,
KnockdownMod                 = 8,
PushBackMod                  = 0.3,
FireMode                     = Single,


CriticalChance               = 40,
CritDmgMultiplier            = 4,
AimingPerkCritModifier       = 10,
HitChance                    = 20,
AimingPerkHitChanceModifier  = 20,
AimingPerkMinAngleModifier   = 0.05,
AimingPerkRangeModifier      = 1,


SoundVolume                  = 75,
SoundRadius                  = 100,
SwingSound                   = o_BerettaM9_o,
BreakSound                   = M9Break,
InsertAmmoSound              = M9InsertAmmo,
EjectAmmoSound               = M9EjectAmmo,
RackSound                    = M9Rack,
BringToBearSound             = M9BringToBear,
HitSound                     = BulletHitBody,
ClickSound                   = M9Jam,
EquipSound                   = M9Equip,
UnequipSound                 = M9UnEquip,
InsertAmmoStartSound         = M9InsertAmmoStart,
InsertAmmoStopSound          = M9InsertAmmoStop,
EjectAmmoStartSound          = M9EjectAmmoStart,
EjectAmmoStopSound           = M9EjectAmmoStop,
ShellFallSound               = M9CartridgeFall,


Type                         = Weapon,
DisplayCategory              = Weapon,
SubCategory                  = Firearm,
IsAimedFirearm               = TRUE,
UseEndurance                 = FALSE,
ConditionMax                 = 50,
JamGunChance                 = 1,
Ranged                       = TRUE,
MetalValue                   = 45,
SwingTime                    = 0.5,
MinimumSwingTime             = 0.5,
ToHitModifier                = 1.5,
SwingAmountBeforeImpact      = 0,
MultipleHitConditionAffected = FALSE,
SplatSize                    = 3,
SplatNumber                  = 3,
SplatBloodOnNoDeath          = TRUE,
ImpactSound                  = null,
NPCSoundBoost                = 1.5,
SoundGain                    = 2,
SwingAnim                    = Handgun,
RunAnim                      = Run_Weapon2,
IdleAnim                     = Idle_Weapon2,
ShareDamage                  = FALSE,
MaxHitCount                  = 1,
KnockBackOnNoDeath           = TRUE,
ProjectileCount              = 1,
ConditionLowerChanceOneIn    = 60,
WeaponReloadType             = handgun,
AttachmentType               = Holster,
Tags                         = HasMetal;Firearm,


ModelWeaponPart              = suppressor_us_9mm suppressor_us_9mm muzzle_on muzzle_on,
 }
	model cj_sprite_beretta_m9
	{
		mesh                        = weapons/firearm/cj_mdl_beretta_m9,
		texture                     = weapons/firearm/cj_texture_beretta_m9,
		scale                       = 0.01,

		attachment muzzle
		{
			offset = 0.0000 0.1733 -0.0363,
			rotate = -90.0000 0.0000 0.0000,
		}

		attachment muzzle_on
		{
			offset = 0.0000 0.1700 -0.0363,
			rotate = -0.0000 0.0000 0.0000,
		}

		attachment world
		{
			offset = 0.0000 0.0000 0.0000,
			rotate = 0.0000 0.0000 0.0000,
		}
	}
}
