module Base
{
	imports    
    {
		Base
	}
	item CJ_M4Carbine
    {
        
        DisplayName	                        =	Carbine M4,
        Icon	                            =	M4Carbine,
        WeaponSprite	                    =	M4Carbine,
        Weight	                            =	2.9,
        AmmoType                            =   Base.556Bullets,
        AmmoBox                             =   556Box,
        MagazineType                        =   Base.556Clip,
        MaxAmmo                             =   30,
        RecoilDelay	                        =	3,
        ReloadTime                          =   25,
        AimingTime                          =   20,
        MinRange	                        =	0.67,
        MaxRange	                        =	35,
        MinAngle	                        =	0.965,
        DoorDamage	                        =	3,
        MinDamage	                        =	1.2,
        MaxDamage	                        =	1.7,
        StopPower                           =   2,
        PiercingBullets                     =   true,
        KnockdownMod	                    =	4,
        PushBackMod	                        =	0.3,
        FireMode                            =   Auto,
        FireModePossibilities               =   Auto/Single,

        
        CriticalChance                      = 30,
        AimingPerkCritModifier              = 0,
        HitChance                           = 20,
        AimingPerkHitChanceModifier         = 12,
        AimingPerkMinAngleModifier          = 0.01,
        AimingPerkRangeModifier             = 1,
        
        
        SoundVolume	                        = 200,
        SoundRadius	                        = 130,
        SwingSound	                        = o_M4_o,
        BreakSound                          = M16Break,
        InsertAmmoSound                     = M16InsertAmmo,
        EjectAmmoSound                      = M16EjectAmmo,
        RackSound                           = M16Rack,
        BringToBearSound                    = M16BringToBear,
        HitSound                            = BulletHitBody,
		ClickSound                          = M16Jam,
        EquipSound                          = M16Equip,
		UnequipSound                        = M16UnEquip,
        InsertAmmoStartSound                = M16InsertAmmoStart,
		InsertAmmoStopSound                 = M16InsertAmmoStop,
		EjectAmmoStartSound                 = M16EjectAmmoStart,
		EjectAmmoStopSound                  = M16EjectAmmoStop,
        ShellFallSound                      = M16CartridgeFall,

        
        Type	                            =	Weapon,
        DisplayCategory	                    =	Weapon,
        SubCategory                         =	Firearm,
        IsAimedFirearm	                    =	TRUE,
        UseEndurance	                    =	FALSE,
        ConditionMax	                    =	50,
        JamGunChance                        =   0,
        Ranged	                            =	TRUE,
        MetalValue                          =   45,
        SwingTime	                        =	2.0,
        MinimumSwingTime	                =	0.5,
        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	                        =	2,
        KnockBackOnNoDeath	                =	TRUE,
        ProjectileCount	                    =	1,
        ConditionLowerChanceOneIn	        =	30,
        TwoHandWeapon                       =   TRUE,
        RequiresEquippedBothHands           =   TRUE,
        WeaponReloadType                    =   boltaction,
        AttachmentType                      =   Rifle,

        
        ModelWeaponPart                     = 4x_scope_us 4x_scope_us upper_mount upper_mount,
        ModelWeaponPart                     = 1x_scope_us_2 1x_scope_us_2 upper_mount upper_mount,
        ModelWeaponPart                     = 1x_scope_us 1x_scope_us upper_mount upper_mount, 
        ModelWeaponPart                     = 3x_scope_us 3x_scope_us upper_mount upper_mount,
        ModelWeaponPart                     = 1x_scope_us_3 1x_scope_us_3 upper_mount upper_mount,
        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,
		ModelWeaponPart 				    = suppressor_us_5_56 suppressor_us_5_56 muzzle_on muzzle_on,
    }
	model M4Carbine
	{
		mesh                                = weapons/firearm/M4Carbine,
		texture                             = weapons/firearm/M4Carbine,
		scale                               = 0.01,

		attachment muzzle
		{
			offset                          = 0.0000 -0.0310 -0.4180,
			rotate                          = 180.0000 0.0000 0.0000,
		}

		attachment muzzle_on
		{
			offset                          = 0.0000 -0.0290 -0.3060,
			rotate                          = 0.0000 0.0000 0.0000,
		}

		attachment upper_mount
		{
			offset                          = 0.0000 -0.0460 -0.0730,
			rotate                          = -90.0000 0.0000 0.0000,
		}

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