Hunting Rifle

From PZwiki
Revision as of 14:26, 16 July 2020 by Viperel (talk | contribs) (→‎Code)

Hunting Rifle
WhiskeyHalf.png
This article may be in need of improvement.
Editors are encouraged to add any missing information to the article, while verifying that the article's current content is correct.
The Game WorldItemsWeaponsFirearmsHunting Rifle

Template:Weapons The Hunting rifle is a long range bolt-action rifle. It uses a clip with a capacity of 5 rounds .308 Round. The weapon has a large range, a long recoil delay, high critical chance and deals high damage compared to other weapons, but it takes some practise (aiming skill). The weapon is very loud and will attract nearby zombies in a large area.

The rifle is also closely related to the varmint rifle, which has higher maximum damage, higher hit chance and lower recoil delay, but has lower minimum damage, lower critical chance and is a lot louder.

You can also modify the weapon with 8 types of modifications.

The hunting rifle along with the varmint rifle can be found in the gun shop (above Twiggy's) in West Point.


Reloading

Reloading difficulty can be set to either Easy, Normal, or Hardcore.

Easy mode

In-game description: Reloading handguns refills the weapon provided there is ammunition available.

Normal mode

In-game description: Reloading handguns ejects or inserts a magazine. The magazine must be reloaded separately.

Hardcore mode

In-game description: Reloading handguns ejects or inserts a magazine. The magazine must be reloaded separately. Weapons must be racked before firing to ensure a round is chambered.

Modifications

There are 8 types of modifications which can be added to the rifle:

  • Iron sights Iron Sights
  • 2x Scope 2x Scope
  • 4x Scope 4x Scope
  • 8x Scope 8x Scope
  • Sling Sling
  • Ammo strap Ammo Strap
  • Recoil pad Recoil Pad
  • Fiberglass stock Fiberglass Stock

They can all be added to the rifle using a screwdriver.

Code

From newitems.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.39

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 = 3,
 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,
 SwingSound = FirearmHunterShot,
 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 = BreakMetalItem,
 MetalValue = 45,
 TwoHandWeapon = TRUE,
 AmmoBox = 308Box,
 MaxAmmo = 3,
 InsertAmmoSound = BulletInRifle,
 EjectAmmoSound = Stormy9mmClipEject,
 RackSound = BulletOutVarmint,
 AmmoType = Base.308Bullets,
 WeaponReloadType = boltaction,
 ModelWeaponPart = x2Scope HuntingRifleScope,
 ModelWeaponPart = x4Scope HuntingRifleScope,
 ModelWeaponPart = x8Scope HuntingRifleScope,
 RackAfterShoot = TRUE,
 MagazineType = Base.308Clip,
 JamGunChance = 5,
 AttachmentType = Rifle,
 }

History

Build
28 Added to the game.
41 Renamed to MSR788 Rifle

See also

.308 Round

MSR700 Rifle

Template:Navbox/Weapons