MSR788 Rifle

From PZwiki
Revision as of 19:24, 4 November 2021 by Keragom (talk | contribs) (Added the weapon code information from the project zomboid "items_weapons.txt")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Code

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

Retrieved: Build 41.56


    item HuntingRifle
    {
        ImpactSound	=	null,
        MaxRange	=	10,
        WeaponSprite	=	HuntingRifle,
        SoundVolume	=	200,
        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,
        MaxDamage	=	2,
        SubCategory	=	Firearm,
        ConditionMax	=	10,
        ShareDamage	=	FALSE,
        MaxHitCount	=	1,
        IsAimedFirearm	=	TRUE,
        DoorDamage	=	20,
        UseEndurance	=	FALSE,
        SwingAnim	=	Rifle,
        DisplayName	=	MSR788 Rifle,
        MinRange	=	0.61,
        SwingTime	=	0.5,
        MultipleHitConditionAffected	=	FALSE,
		BringToBearSound = MSR788BringToBear,
        SwingSound	=	MSR788Shoot,
        HitSound = BulletHitBody,
		ClickSound = MSR788Jam,
        SoundRadius	=	150,
        MinDamage	=	1.2,
        SplatSize	=	3,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	RifleHunting,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        CriticalChance = 30,
        CritDmgMultiplier = 10,
        AimingPerkCritModifier = 15,
        HitChance = 25,
        AimingPerkHitChanceModifier = 15,
        AimingPerkMinAngleModifier = 0.01,
        AimingPerkRangeModifier = 3,
        RecoilDelay = 100,
        PiercingBullets = TRUE,
        SoundGain = 2,
        ReloadTime = 25,
        AimingTime = 40,
        RequiresEquippedBothHands = TRUE,
        BreakSound  =   MSR788Break,
        MetalValue = 45,
        TwoHandWeapon = TRUE,
        AmmoBox = 308Box,
        MaxAmmo = 3,
		EquipSound = MSR788Equip,
		UnequipSound = MSR788UnEquip,
        InsertAmmoSound = MSR788InsertAmmo,
        EjectAmmoSound = MSR788EjectAmmo,
		InsertAmmoStartSound = MSR788InsertAmmoStart,
		InsertAmmoStopSound = MSR788InsertAmmoStop,
		EjectAmmoStartSound = MSR788EjectAmmoStart,
		EjectAmmoStopSound = MSR788EjectAmmoStop,
        ShellFallSound = MSR788CartridgeFall,
        RackSound = MSR788Rack,
        AmmoType = Base.308Bullets,
        WeaponReloadType = boltactionnomag,
        ModelWeaponPart = Bayonnet Bayonnet bayonnet bayonnet,
        ModelWeaponPart = x2Scope x2Scope scope scope,
        ModelWeaponPart = x4Scope x4Scope scope scope,
        ModelWeaponPart = x8Scope x8Scope scope scope,
        ModelWeaponPart = IronSight IronSight scope2 scope2,
        ModelWeaponPart = RecoilPad RecoilPad recoilpad recoilpad,
        ModelWeaponPart = RedDot RedDot reddot reddot,
        RackAfterShoot = TRUE,
        MagazineType = Base.308Clip,
        JamGunChance = 5,
        AttachmentType = Rifle,
        StopPower = 20,
    }