MSR700 Rifle

From PZwiki
Revision as of 19:16, 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 VarmintRifle
    {
       ImpactSound	=	null,
       MaxRange	=	10,
       WeaponSprite	=	VarmintRifle,
       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,
       SubCategory	=	Firearm,
       ConditionMax	=	10,
       ShareDamage	=	FALSE,
       MaxHitCount	=	1,
       IsAimedFirearm	=	TRUE,
       DoorDamage	=	20,
       UseEndurance	=	FALSE,
       SwingAnim	=	Rifle,
       DisplayName	=	MSR700 Rifle,
       MinRange	=	0.61,
       SwingTime	=	0.5,
       MultipleHitConditionAffected	=	FALSE,
	   BringToBearSound = MSR700BringToBear,
       SwingSound	=	MSR700Shoot,
       HitSound = BulletHitBody,
	   ClickSound = MSR700Jam,
       SoundRadius	=	150,
       MinDamage	=	0.6,
       MaxDamage	=	1.3,
       SplatSize	=	3,
       KnockdownMod	=	2,
       SplatBloodOnNoDeath	=	TRUE,
       Icon	=	LeverActionRifle,
       RunAnim	=	Run_Weapon2,
       IdleAnim	=	Idle_Weapon2,
       CriticalChance = 25,
       CritDmgMultiplier = 8,
       AimingPerkCritModifier = 12,
       HitChance = 27,
       AimingPerkHitChanceModifier = 17,
       AimingPerkMinAngleModifier = 0.01,
       AimingPerkRangeModifier = 2,
       RecoilDelay = 90,
       PiercingBullets = TRUE,
       SoundGain = 2,
       ReloadTime = 25,
       AimingTime = 30,
       RequiresEquippedBothHands = TRUE,
       BreakSound  =   MSR700Break,
       MetalValue = 45,
       TwoHandWeapon = TRUE,
       AmmoBox = 223Box,
       MaxAmmo = 3,
		EquipSound = MSR700Equip,
		UnequipSound = MSR700UnEquip,
       InsertAmmoSound = MSR700InsertAmmo,
       EjectAmmoSound = MSR700EjectAmmo,
		InsertAmmoStartSound = MSR700InsertAmmoStart,
		InsertAmmoStopSound = MSR700InsertAmmoStop,
		EjectAmmoStartSound = MSR700EjectAmmoStart,
		EjectAmmoStopSound = MSR700EjectAmmoStop,
        ShellFallSound = MSR700CartridgeFall,
       RackSound = MSR700Rack,
       AmmoType = Base.223Bullets,
       WeaponReloadType = boltactionnomag,
/*       ModelWeaponPart = FiberglassStock HuntingKnife none bayonet,*/
       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.223Clip,*/
       JamGunChance = 5,
       AttachmentType = Rifle,
       StopPower = 15,
    }