M14 Rifle

From PZwiki
Jump to: navigation, search

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/)

Retrieved
Version 41.56
    item AssaultRifle2
    {
        ImpactSound	=	null,
        MaxRange	=	10,
        WeaponSprite	=	M14,
        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	=	4,
        SplatNumber	=	3,
        PushBackMod	=	0.3,
        SubCategory	=	Firearm,
        ConditionMax	=	10,
        ShareDamage	=	FALSE,
        MaxHitCount	=	1,
        IsAimedFirearm	=	TRUE,
        DoorDamage	=	20,
        UseEndurance	=	FALSE,
        SwingAnim	=	Rifle,
        DisplayName	=	M14 Single Shot Assault Rifle,
        MinRange	=	0.61,
        SwingTime	=	0.5,
        MultipleHitConditionAffected	=	FALSE,
		BringToBearSound = M14BringToBear,
        SwingSound = M14Shoot,
        HitSound = BulletHitBody,
		ClickSound = M14Jam,
        SoundRadius	=	90,
        MinDamage	=	1.2,
        MaxDamage	=	2,
        SplatSize	=	3,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	AssaultRifle2,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        CriticalChance = 0,
        AimingPerkCritModifier = 0,
        HitChance = 50,
        AimingPerkHitChanceModifier = 5,
        AimingPerkMinAngleModifier = 0.01,
        AimingPerkRangeModifier = 3,
        RecoilDelay = 0,
        SoundGain = 2,
        ClipSize = 20,
        ReloadTime = 25,
        AimingTime = 25,
		EquipSound = M14Equip,
		UnequipSound = M14UnEquip,
        InsertAmmoSound = M14InsertAmmo,
        EjectAmmoSound = M14EjectAmmo,
		InsertAmmoStartSound = M14InsertAmmoStart,
		InsertAmmoStopSound = M14InsertAmmoStop,
		EjectAmmoStartSound = M14EjectAmmoStart,
		EjectAmmoStopSound = M14EjectAmmoStop,
        ShellFallSound = M14CartridgeFall,
        RackSound = M14Rack,
        RequiresEquippedBothHands = TRUE,
        BreakSound = M14Break,
        TwoHandWeapon = TRUE,
        MetalValue = 45,
        MagazineType = Base.M14Clip,
        AmmoType = Base.308Bullets,
        WeaponReloadType = boltaction,
        JamGunChance = 1,
        AttachmentType = Rifle,
        FireMode = Single,
        AmmoBox = 308Box,
        MaxAmmo = 20,
        ModelWeaponPart = x2Scope x2Scope scope scope,
        ModelWeaponPart = x4Scope x4Scope scope scope,
        ModelWeaponPart = x8Scope x8Scope scope scope,
        ModelWeaponPart = IronSight IronSight scope2 scope2,
        ModelWeaponPart = RedDot RedDot reddot reddot,
        ModelWeaponPart = RecoilPad RecoilPad recoilpad recoilpad,
        ModelWeaponPart = Laser Laser laser laser,
        StopPower = 2,
    }