MSR788 Rifle: Difference between revisions

From PZwiki
(Added the weapon code information from the project zomboid "items_weapons.txt")
 
m (Distribution table fix)
 
(49 intermediate revisions by 15 users not shown)
Line 1: Line 1:
==Code==
{{Header|Project Zomboid|Items|Weapons|Firearms}}
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{Page version|41.78.16}}
{{Infobox item
|name=MSR788 Rifle
|model=HuntingRifle_Model.png
|icon=RifleHunting.png
|icon_name=Hunting Rifle
<!--GENERAL-->
|category=Weapon
|weight=4
|equipped=Two-handed
|condition_max=10
|attachment_type=Back
<!--CHARACTERISTICS-->
|ammo_type=[[File:RifleAmmo308loose.png|link=.308_Round]]
|clip_size=3
|sound_radius=70
|recoil_delay=100
|reload_time=25
|aiming_time=40
<!--DAMAGE-->
|type=Gunshot
|skill_type=Firearm
|swing_time=0.5
|min_range=0.61
|max_range=10
|hit_chance=27
|min_damage=1.2
|max_damage=2
|push_back=0.3
<!--TECHNICAL DETAILS-->
|item_id=Base.HuntingRifle
}}
The '''MSR788 rifle''' is a bolt action rifle. It is a two-handed weapon that can be attached to the back of a character to reduce encumbrance.
 
==Usage==
The MSR788 rifle is a bolt action rifle, utilizing a 3 round [[Magazine (firearms)|MSR788 .308 magazine]] as ammo. It can only hit one target at a time and can pierce through targets.
The rifle will need to be racked after reloading. Should the rifle jam on the player, press {{key|X}} to rack it and un-jam it.
 
The MSR788 is on par with its lower caliber sibling the MSR700, with a slightly longer delay between shots makes this weapon a poor choice for fast paced combat or dealing with large groups of enemies, yet the powerful .308 round means that most targets hit with this rifle will die in a single shot. The small clip size may seem terrible at first, but it is manageable and the small size of the magazines makes reloading them during combat more viable, it's very much a weapon that demands patience but rewards the player for doing so with high critical chances and piercing headshots. On the topic of piercing headshots, this is something that the MSR788 can do, but its bigger sibling the [[M14 Rifle]] cannot do despite having the same caliber, however the latter has a bigger clip size, better accuracy, and a faster rate of fire.
 
However, this is not a rifle for low level aiming especially with its low mag count and noticeable delay between shots, this weapon should be used by a level 4+ aiming skill player.
 
{{Pros-cons
|pros1 = One of the firearms with the highest damage per shot and second-highest damage per second, only after the M14 and other shotgun-type firearms. Will usually kill the target in one shot.
|pros2 = Farthest gun range both with and without attachments; excellent for dispatching zombies or even groups of zombies from a much further distance away.
|pros3 = Requires magazine to operate: magazines can be stored in the inventory, increasing the action time with little to no reload time.
|pros4 = Capable of piercing up to two zombies and also can kill the second zombie with one shot
|pros5 = Requires level 4+ Aiming skill to use efficiently: lower chances to lose durability.
|cons1 = Requires level 4+ Aiming skill to use efficiently: usage of the gun below the minimum requirements limits your accuracy severely, making it very unlikely that you will hit anything.
|cons2 = Mediocre performance at extremely close range, requires the backup of a shotgun, a pistol, a melee weapon, or another person.
|cons3 = Requires magazine to operate: can only hold one bullet in the chamber without a magazine, decreases its overall efficiency and almost every other stats of the gun except its damage and its range.
}}
 
===Drive-by shooting===
All guns have the ability to shoot from vehicles. First press {{key|V}}, which opens the vehicle radial menu and open your window. Aim and fire. Drivers and passengers are all able to use this ability at the cost of reduced accuracy while the vehicle is moving. The driver cannot control the vehicle while aiming, it's recommended to cruise at a safe speed and make sure there are no obstacles that can cause a crash while you're driving and shooting.
 
===Attachments===
The MSR788 Rifle can be fitted with the following attachments with the use of a [[screwdriver]]:
*[[Iron Sight]] [[File:ScopeIronSight.png]]: Increases maximum firing range by 3 tiles.
*[[x2 Scope]] [[File:Scope2x.png]]: Increases minimum firing range by 6 tiles and maximum firing range by 7 tiles.
*[[x4 Scope]] [[File:Scope4x.png]]: Increases minimum firing range by 8 tiles and maximum firing range by 13 tiles.
*[[x8 Scope]] [[File:Scope8x.png]]: Increases minimum firing range by 10 tiles and maximum firing range by 20 tiles.
*[[Recoil Pad]] [[File:RifleRecoilPad.png]]: Reduces recoil.
*[[Red Dot]] [[File:RedDot.png]]: Increases aiming speed.
*[[Fiberglass Stock]] [[File:RifleFibreglassStock.png]]: Decreases weight by 0.5 and increases base hit chance by 8%.
*[[Bayonet]]{{Sup|Future}} [[File:HuntingKnife.png]]: Seemingly has no function in-game as of build 41.78.16.
 
To install an attachment, right-click the MSR788 you want to modify, click 'Upgrade' and click the attachment you want to install. Requires a [[screwdriver]] and the attachment you wish to install.
 
==Condition==
The MSR788 rifle is a [[Skills#Firearm|firearm]]. As such, the durability of the weapon is dependent on the player's aiming skill. This weapon's chance of losing durability is: <code>1 in (60 + aiming x 2)</code>
 
===Repairing===
Requires level 4 Aiming and another MSR788 rifle to repair with. The higher the aiming skill is, the chances of a better and successful repair go up. Remember that with each consecutive repair, the amount of durability restored decreases.
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|HuntingRifle|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>HuntingRifle distribution
        <span class="mw-customtoggle-togglebox-HuntingRifle" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-HuntingRifle">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | RifleCase2
    | {{ll|RifleCase2}}
    | 120.41%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |-
    | all
    | {{ll|militarycrate}}
    | 19.27%
    |-
    | all
    | {{ll|militarylocker}}
    | 19.27%
    |-
    | all
    | {{ll|wardrobe}}
    | 1.65%
    |-
    | armystorage
    | {{ll|locker}}
    | 19.27%
    |-
    | armystorage
    | {{ll|metal_shelves}}
    | 19.27%
    |-
    | armysurplus
    | {{ll|displaycase}}
    | 15.1%
    |-
    | bedroom
    | {{ll|wardrobe}}
    | 1.65%
    |-
    | changeroom
    | {{ll|locker}}
    | 1.68%
    |-
    | closet
    | {{ll|crate}}
    | 1.65%
    |-
    | closet
    | {{ll|metal_shelves}}
    | 1.64%
    |-
    | druglab
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | garagestorage
    | {{ll|crate}}
    | 1.65%
    |-
    | garagestorage
    | {{ll|locker}}
    | 15.1%
    |-
    | gunstore
    | {{ll|displaycase}}
    | 15.1%
    |-
    | gunstorestorage
    | {{ll|crate}}
    | 15.1%
    |-
    | hunting
    | {{ll|displaycase}}
    | 15.1%
    |-
    | hunting
    | {{ll|locker}}
    | 15.1%
    |-
    | livingroom
    | {{ll|wardrobe}}
    | 1.64%
    |-
    | policestorage
    | {{ll|locker}}
    | 19.27%
    |-
    | policestorage
    | {{ll|metal_shelves}}
    | 19.27%
    |-
    | storageunit
    | {{ll|crate}}
    | 1.65%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
    |-
    | Police
    | {{ll|Truck Bed}}
    | 19.27%
    |}
</div>
<div id="zombies" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Zombies}}
    ! Outfit
    ! Days survived
    ! Chance
    |-
    | PrivateMilitia
    | 0
    | 30
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-HuntingRifle" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|HuntingRifle|41.78.16-->
 
===Buildings===
The MSR788 Rifle can be found in most homes (notably in wardrobes/closets), [[police station]]s, military bases, gun shops.
 
===Vehicles===
The MSR788 rifle can also be found in the trunk of police cruisers.
 
==Trivia==
*Although not similar visually, the name and some features in game imply that the MSR788 is based on [[Wikipedia:Remington Model 788|Remington Model 788 rifle]], which was produced during late 60's through early 80's and utilized 3-round detachable magazines.


{{Retrieved|version=41|incver=56}}
==Gallery==
<pre>
<gallery>
HuntingRifle Player.png|In-game screenshot of the MSR788 being held by a player
</gallery>


    item HuntingRifle
==Code==
{{CodeBox
|{{CodeSnip
  | lang = java
  | line = true
  | start = 5209
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item HuntingRifle
     {
     {
        DisplayCategory = Weapon,
         ImpactSound = null,
         ImpactSound = null,
         MaxRange = 10,
         MaxRange = 10,
Line 41: Line 295:
         HitSound = BulletHitBody,
         HitSound = BulletHitBody,
ClickSound = MSR788Jam,
ClickSound = MSR788Jam,
         SoundRadius = 150,
         SoundRadius = 70,
         MinDamage = 1.2,
         MinDamage = 1.2,
         SplatSize = 3,
         SplatSize = 3,
Line 91: Line 345:
         AttachmentType = Rifle,
         AttachmentType = Rifle,
         StopPower = 20,
         StopPower = 20,
     }</pre>
     }
}}
 
Repair<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 421
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
fixing Fix Hunting Rifle
{
  Require : HuntingRifle,
 
  Fixer : HuntingRifle; Aiming=4,
}
}}
}}
 
==See also==
*[[M14 Rifle]]
*[[MSR700 Rifle]]
 
{{Navbox items|firearms}}

Latest revision as of 19:27, 30 April 2024

Project ZomboidItemsWeaponsFirearmsMSR788 Rifle
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
MSR788 Rifle
HuntingRifle Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
4
Equipped
Two-handed
Slot attached
Back
Skill
Ammunition
RifleAmmo308loose.png
Magazine size
3
Properties
Max condition
10
Performance
Damage
1.2–2
Range
0.61–10
Accuracy
27
Recoil
100
Noise radius
70
Knockback
0.3
Aiming time
40
Reload time
25
Technical
Item ID
Base.HuntingRifle

The MSR788 rifle is a bolt action rifle. It is a two-handed weapon that can be attached to the back of a character to reduce encumbrance.

Usage

The MSR788 rifle is a bolt action rifle, utilizing a 3 round MSR788 .308 magazine as ammo. It can only hit one target at a time and can pierce through targets. The rifle will need to be racked after reloading. Should the rifle jam on the player, press X to rack it and un-jam it.

The MSR788 is on par with its lower caliber sibling the MSR700, with a slightly longer delay between shots makes this weapon a poor choice for fast paced combat or dealing with large groups of enemies, yet the powerful .308 round means that most targets hit with this rifle will die in a single shot. The small clip size may seem terrible at first, but it is manageable and the small size of the magazines makes reloading them during combat more viable, it's very much a weapon that demands patience but rewards the player for doing so with high critical chances and piercing headshots. On the topic of piercing headshots, this is something that the MSR788 can do, but its bigger sibling the M14 Rifle cannot do despite having the same caliber, however the latter has a bigger clip size, better accuracy, and a faster rate of fire.

However, this is not a rifle for low level aiming especially with its low mag count and noticeable delay between shots, this weapon should be used by a level 4+ aiming skill player.

Pros Cons
  • One of the firearms with the highest damage per shot and second-highest damage per second, only after the M14 and other shotgun-type firearms. Will usually kill the target in one shot.
  • Farthest gun range both with and without attachments; excellent for dispatching zombies or even groups of zombies from a much further distance away.
  • Requires magazine to operate: magazines can be stored in the inventory, increasing the action time with little to no reload time.
  • Capable of piercing up to two zombies and also can kill the second zombie with one shot
  • Requires level 4+ Aiming skill to use efficiently: lower chances to lose durability.
  • Requires level 4+ Aiming skill to use efficiently: usage of the gun below the minimum requirements limits your accuracy severely, making it very unlikely that you will hit anything.
  • Mediocre performance at extremely close range, requires the backup of a shotgun, a pistol, a melee weapon, or another person.
  • Requires magazine to operate: can only hold one bullet in the chamber without a magazine, decreases its overall efficiency and almost every other stats of the gun except its damage and its range.

Drive-by shooting

All guns have the ability to shoot from vehicles. First press V, which opens the vehicle radial menu and open your window. Aim and fire. Drivers and passengers are all able to use this ability at the cost of reduced accuracy while the vehicle is moving. The driver cannot control the vehicle while aiming, it's recommended to cruise at a safe speed and make sure there are no obstacles that can cause a crash while you're driving and shooting.

Attachments

The MSR788 Rifle can be fitted with the following attachments with the use of a screwdriver:

  • Iron Sight ScopeIronSight.png: Increases maximum firing range by 3 tiles.
  • x2 Scope Scope2x.png: Increases minimum firing range by 6 tiles and maximum firing range by 7 tiles.
  • x4 Scope Scope4x.png: Increases minimum firing range by 8 tiles and maximum firing range by 13 tiles.
  • x8 Scope Scope8x.png: Increases minimum firing range by 10 tiles and maximum firing range by 20 tiles.
  • Recoil Pad RifleRecoilPad.png: Reduces recoil.
  • Red Dot RedDot.png: Increases aiming speed.
  • Fiberglass Stock RifleFibreglassStock.png: Decreases weight by 0.5 and increases base hit chance by 8%.
  • BayonetFuture HuntingKnife.png: Seemingly has no function in-game as of build 41.78.16.

To install an attachment, right-click the MSR788 you want to modify, click 'Upgrade' and click the attachment you want to install. Requires a screwdriver and the attachment you wish to install.

Condition

The MSR788 rifle is a firearm. As such, the durability of the weapon is dependent on the player's aiming skill. This weapon's chance of losing durability is: 1 in (60 + aiming x 2)

Repairing

Requires level 4 Aiming and another MSR788 rifle to repair with. The higher the aiming skill is, the chances of a better and successful repair go up. Remember that with each consecutive repair, the amount of durability restored decreases.

Distribution

The loot distributions can be found in the table(s) below.

HuntingRifle distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
RifleCase2 RifleCase2 120.41%
SafehouseLoot counter 15.1%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
all militarycrate 19.27%
all militarylocker 19.27%
all wardrobe 1.65%
armystorage locker 19.27%
armystorage metal_shelves 19.27%
armysurplus displaycase 15.1%
bedroom wardrobe 1.65%
changeroom locker 1.68%
closet crate 1.65%
closet metal_shelves 1.64%
druglab metal_shelves 15.1%
garagestorage crate 1.65%
garagestorage locker 15.1%
gunstore displaycase 15.1%
gunstorestorage crate 15.1%
hunting displaycase 15.1%
hunting locker 15.1%
livingroom wardrobe 1.64%
policestorage locker 19.27%
policestorage metal_shelves 19.27%
storageunit crate 1.65%
Vehicles
Type Container Effective chance
Police Trunk 19.27%
Zombie
Outfit Days survived Chance
PrivateMilitia 0 30

Buildings

The MSR788 Rifle can be found in most homes (notably in wardrobes/closets), police stations, military bases, gun shops.

Vehicles

The MSR788 rifle can also be found in the trunk of police cruisers.

Trivia

  • Although not similar visually, the name and some features in game imply that the MSR788 is based on Remington Model 788 rifle, which was produced during late 60's through early 80's and utilized 3-round detachable magazines.

Gallery

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item HuntingRifle
    {
        DisplayCategory = Weapon,
        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	=	70,
        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,
    }

Repair
Source: ProjectZomboid\media\scripts\fixing.txt

Retrieved: Build 41.78.16
fixing Fix Hunting Rifle
{
   Require : HuntingRifle,

   Fixer : HuntingRifle; Aiming=4,
}

See also