module Base
{
	imports 
 {
 Base
 }
	item cj_m1a
 {
  
  DisplayName                   = Rifle M1A,
  Icon                          = cj_icon_firearm_m1a,
  WeaponSprite                  = cj_sprite_m1a,
  Weight                        = 4.3,
  AmmoType                      = Base.308Bullets,
  AmmoBox                       = 308Box,
  MagazineType                  = MagM1A,
  MaxAmmo                       = 10,
  RecoilDelay                   = 10,
  ReloadTime                    = 6,
  AimingTime                    = 19,
  MinRange                      = 0.61,
  MaxRange                      = 38,
  MinAngle                      = 0.965,
  DoorDamage                    = 5,
  MinDamage                     = 2.0,
  MaxDamage                     = 2.5,
  StopPower                     = 2,
  PiercingBullets               = true,
  KnockdownMod                  = 2,
  PushBackMod                   = 0.3,
  FireMode                      = Single,
  FireModePossibilities         = Single,

  
  CriticalChance                = 33,
  AimingPerkCritModifier        = 4,
  HitChance                     = 80,
  AimingPerkHitChanceModifier   = 10,
  AimingPerkMinAngleModifier    = 0.01,
  AimingPerkRangeModifier       = 1,
  
  
  SoundVolume                   = 75,
  SoundRadius                   = 170,
  SwingSound                    = o_M1A_o,
  BreakSound                    = M14Break,
  InsertAmmoSound               = M14InsertAmmo,
  EjectAmmoSound                = M14EjectAmmo,
  RackSound                     = M14Rack,
  BringToBearSound              = M14BringToBear,
  HitSound                      = BulletHitBody,
 ClickSound                     = M14Jam,
  EquipSound                    = M14Equip,
 UnequipSound                   = M14UnEquip,
  InsertAmmoStartSound          = M14InsertAmmoStart,
 InsertAmmoStopSound            = M14InsertAmmoStop,
 EjectAmmoStartSound            = M14EjectAmmoStart,
 EjectAmmoStopSound             = M14EjectAmmoStop,
  ShellFallSound                = M14CartridgeFall,

  
  Type                          = Weapon,
  DisplayCategory               = Weapon,
  SubCategory                   = Firearm,
  IsAimedFirearm                = TRUE,
  UseEndurance                  = FALSE,
  ConditionMax                  = 50,
  JamGunChance                  = 0,
  Ranged                        = TRUE,
  MetalValue                    = 45,
  SwingTime                     = 4.0,
  MinimumSwingTime              = 4.0,
  ToHitModifier                 = 1.5,
  SwingAmountBeforeImpact       = 0,
  MultipleHitConditionAffected  = FALSE,
  SplatSize                     = 3,
  SplatNumber                   = 3,
  SplatBloodOnNoDeath           = TRUE,
  ImpactSound                   = null,
  NPCSoundBoost                 = 1.5,
  SoundGain                     = 2,
  SwingAnim                     = Rifle,
  RunAnim                       = Run_Weapon2,
  IdleAnim                      = Idle_Weapon2,
  ShareDamage                   = FALSE,
  MaxHitCount                   = 3,
  KnockBackOnNoDeath            = TRUE,
  ProjectileCount               = 1,
  ConditionLowerChanceOneIn     = 50,
  TwoHandWeapon                 = TRUE,
  RequiresEquippedBothHands     = TRUE,
  WeaponReloadType              = boltaction,
  AttachmentType                = Rifle,

  
  ModelWeaponPart               = 4x_scope_us_2 4x_scope_us_2 upper_mount upper_mount,
  ModelWeaponPart               = 8x_scope_us 8x_scope_us upper_mount upper_mount,
  ModelWeaponPart               = 25x_scope_us 25x_scope_us upper_mount upper_mount,
 }
	model cj_sprite_m1a
	{
		mesh                           = weapons/firearm/cj_mdl_m1a,
		texture                        = weapons/firearm/cj_texture_m1a,
		scale                          = 0.01,

		attachment muzzle
		{
			offset = 0.0000 0.5018 0.0274,
			rotate = -90.0000 0.0000 0.0000,
		}

		attachment upper_mount
		{
			offset = 0.0000 0.0850 -0.0260,
			rotate = 0.0000 0.0000 0.0000,
		}

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