M14 Rifle: Difference between revisions

From PZwiki
m (Automated Formatting)
(34 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<!--Comment: This section is for the language and the format of the page. The languages section is used for linking pages. So a example might be {{languages|Nails}} in which every page is connected with a /## on the end will link to that specific page. Eg: Nails/es Nails/fr even if there contain redirects. The header format can be seen in the header template with working explanation. The header connects categories and Version no. PLEASE ENTER THE VERSION AND INCREMENT No. WHEN YOU MAKE A PAGE. It helps everyone else know how old the page is versionwise -->
{{Header|Project Zomboid|Items|Weapons|Firearms}}
{{languages}}
{{Page version|41.78.16}}
{{header|The Game World|Items|Weapons|Firearms|type=Weapon|version=Version 41|incver=65}}<!--
{{Infobox item
Comment: This section is for the infobox which will be positioned on the right of the page. The information can be pulled from the items/newitems.txt file in [Zomboid Folder\media\scripts]. For more info on how to use the infobox, see: https://pzwiki.net/wiki/Template:Infobox_weapon.  
|name=M14 Rifle
-->{{Infobox weapon
|model=M14_Rifle_Model.png
|display_name=M14 Rifle
|icon=AssaultRifle2.png
|name_colour=Weapon
|icon_name=M14 Rifle
|name_text_colour=Weapon
|image=M14_Rifle_Model.png
|image_width=200px
|alternate_image=AssaultRifle2.png
|alternate_name=M14 Rifle
|alternate_link=
|alternate_image2=BerettaClip.png
|alternate_name2=M14 Clip
|alternate_link2=
|alternate_image3=RifleAmmo308loose.png
|alternate_name3= .308 Rounds
|alternate_link3=
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Weapon
|weight=4
|weight=4
|function=
|equipped=Two-handed
|equipped=Two-handed
|secondary_item=
|condition_max=10
|condition_max=10
|attachment_type=Back
|attachment_type=Back
<!--CHARACTERISTICS-->
<!--CHARACTERISTICS-->
|ammo_type=[[File:RifleAmmo308loose.png|link=.308_Round]]
|ammo_type=[[File:RifleAmmo308loose.png|link=.308 Round]]
|clip_size=20
|clip_size=20
|sound_radius=70
|sound_radius=70
Line 35: Line 21:
<!--DAMAGE-->
<!--DAMAGE-->
|type=Gunshot
|type=Gunshot
|skill_type=Firearm
|swing_time=0.5
|swing_time=0.5
|min_range=0.61
|min_range=0.61
Line 43: Line 30:
|push_back=0.5
|push_back=0.5
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|ingredients=
|item_id=Base.AssaultRifle2
|class_name=Base.AssaultRifle2
}}
}}
<!--Comment: General introductory for the item-->
A '''M14 rifle''' is a semi-automatic rifle. It is a two-handed weapon and can be attached to the back of a character to reduce encumbrance.
A '''M14 Rifle''' is a semi-automatic rifle. It is a two handed weapon and can be attached to the back of a character to reduce weight.
__TOC__
<!--Comment: This is where the 'Table Of Contents' will go if it is needed-->


==Usage==
==Usage==
<!--Comment: This section contains how the item can be used, weather it be as a weapon, tool or in recipes. -->
The M14 Rifle is a semi-automatic rifle, utilizing [[Magazine (firearms)|M14 magazine]] with [[.308 Round|.308 rounds]] as ammo. It can only hit one target at a time and does not pierce through targets. Should the rifle jam on the player, pressing {{key|X}} will rack it and unjam it.
===Weapon===
The M14 Rifle is a semi-automatic rifle, utilizing [[Magazine_(firearms)|M14 (.308) Clips]] as ammo.
It can only hit one target at a time and does not pierce through targets.
Should the rifle jam on the player, press {{key|X}} to rack it and unjam it.


The M14 might not seem all that impressive statisically speaking, but compared to the bolt-action MSR700/788 rifles it is more effective against larger groups of enemies with its 20 round clip and excellent hit chance, topped with decent damage and low jamming chance.
The M14 might not seem all that impressive statistically speaking, but compared to the bolt-action MSR700/788 rifles, it is much more effective against larger groups of enemies, with its 20 round clip and excellent hit chance, topped with decent damage and low jam chance. Unlike the bolt-action rifles, the M14 also does not need to be manually racked after firing, allowing for faster follow-up shots. The M14 excels in dispatching small packs of hordes at range. However, this is not a rifle for players with low level aiming, and to be used effectively it at least level 5+ aiming is recommended.
Unlike the bolt-action rifles the M14 also does not need to be manually racked after firing, allowing for faster followup shots.
 
The M14 excels in dispatching small packs of hordes at range.
===Drive-by shooting===
However, this is not a rifle for low level aiming and to be used effectively requires level 5+ aiming.
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===
===Attachments===
The M14 Assault Rifle can be fitted with the following attachments with the use of a screwdriver:
The M14 rifle can be fitted with the following attachments with the use of a screwdriver:
*[[Iron_Sight|Iron sight]] [[File:ScopeIronSight.png]], [[X2_Scope|x2]] [[File:Scope2x.png]], [[X4_Scope|x4]] [[File:Scope4x.png]], [[X8_Scope|x8 Scopes]] [[File:Scope8x.png]]: Increases firing range.
*[[Iron Sight]] [[File:ScopeIronSight.png]]: Increases maximum firing range by 3 tiles.
*[[Laser]] [[File:HandgunLaser.png]]: Increases Accuracy.
*[[x2 Scope]] [[File:Scope2x.png]]: Increases minimum firing range by 6 tiles and maximum firing range by 7 tiles.
*[[Recoil_Pad|Recoil Pad]] [[File:RifleRecoilPad.png]]: Reduces recoil.  
*[[x4 Scope]] [[File:Scope4x.png]]: Increases minimum firing range by 8 tiles and maximum firing range by 13 tiles.
*[[Red_Dot|Red Dot]] [[File:RedDot.png]]: Increases aiming speed.
*[[x8 Scope]] [[File:Scope8x.png]]: Increases minimum firing range by 10 tiles and maximum firing range by 20 tiles.
*[[Laser]] [[File:HandgunLaser.png]]: Increases base hit chance by 5%.
*[[Recoil Pad]] [[File:RifleRecoilPad.png]]: Reduces recoil.
*[[Red Dot]] [[File:RedDot.png]]: Increases aiming speed.


To install these attachments, ensure that you have a screwdriver in your inventory, right click the M14 you want to modify, click on 'Upgrade' and pick the attachment you want to install.
To install these attachments, ensure that you have a screwdriver in your inventory, right-click the M14 you want to modify, click on 'Upgrade' and pick the attachment you want to install.


==Condition==
==Condition==
<!--Comment: This section contains all the info about the condition of the weapon. -->
The M14 Rifle is a [[Weapons#Firearms|firearm]] and, 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>.
The M14 Rifle is a [[Weapons#Firearms|firearm]] and, as such, the durability of the weapon is dependent on the player's aiming skill. This weapon's chance of losing durablity is: <code>1 in (60 + aiming x 2)</code>.
 
===Repairing===
===Repairing===
<!--Comment: This uses the code found in the repair file [Zomboid Folder\media\scripts\fixing.txt] which defines what it costs to repair the weapon. The table below is a graphical representation of what is required to repair. -->
Requires level 5 Aiming and another M14 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.
Requires level 5 Aiming and another M14 Rifle to repair with. The higher the aiming skill is, the chances of a better and successful repair go up. Remember that with each consective repair, the amount of durablity restored decreases.


==Distribution==
==Distribution==
<!--Comment: The locations this item can be found should be placed here. Spawn locations can be found in the distribution.lua and vehicledistribution.lua files. -->
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|SafehouseLoot
|[[counter]]
|4
|6
|-
|rowspan="7"|all
|[[militarycrate]]
|4
|1
|-
|[[militarycrate]]
|4
|1
|-
|[[wardrobe]]
|4
|0.001
|-
|[[wardrobe]]
|4
|0.001
|-
|[[wardrobe]]
|4
|0.001
|-
|[[wardrobe]]
|4
|0.001
|-
|[[wardrobe]]
|4
|0.001
|-
|armysurplus
|[[displaycase]]
|4
|2
|-
|changeroom
|[[locker]]
|4
|0.002
|-
|closet
|[[metal_shelves]]
|4
|0.001
|-
|druglab
|[[metal_shelves]]
|4
|6
|-
|garagestorage
|[[locker]]
|4
|2
|-
|pawnshopoffice
|[[locker]]
|4
|8
|-
|policestorage
|[[locker]]
|4
|1
|}
 
===Buildings===
===Buildings===
The M14 can be found in police stations, military bases, gun shops, and in rare cases, in rifle cases in homes.
The M14 can be found in police stations, military bases, gun shops, and in rare cases, in rifle cases in homes.
Line 88: Line 148:


==Trivia==
==Trivia==
* The M14 was issued to replace the M1 Garand in the late 50's, but was in turn replaced by the M16 in the late 60's. It has remained in limited service for training, sharpshooter roles, and ceremonial use, amongst other purposes.
*The M14 was issued to replace the M1 Garand in the late 50s, but was in turn replaced by the M16 in the late 60s. It has remained in limited service for training, sharpshooter roles, and ceremonial use, amongst other purposes.
* There are models and textures in the game hinting at the possiblity of attaching a bayonet + flashlight and even improvised versions with a bayonet made from a kitchen knife and a simple flashlight taped under the barrel. However none of this is in-game yet. A preview image can be seen in the gallery below.
*There are models and textures in the game hinting at the possibility of attaching a bayonet + flashlight, and even improvised versions with a bayonet made from a kitchen knife and a simple flashlight taped under the barrel. However, none of this is in-game yet. A preview image can be seen in the gallery below.
* Initially, the M14 rifle in game had a model based on the [[Wikipedia:Ruger Mini-14|Ruger Mini-14 rifle]], but the model has been altered later on. The old model can still be found in the game files.  
*Initially, the M14 rifle in game had a model based on the [[Wikipedia:Ruger Mini-14|Ruger Mini-14 rifle]], but the model has been altered later on. The old model can still be found in the game files.
*In real life the M14 is chambered in the 7.62x51mm NATO round, rather than .308 Winchester, and while .308 can be fired through a firearm made for 7.62mm it is considered unsafe due to the fact .308 is loaded to higher pressures.
**This was likely done to reuse ammo type in the unmodded game, as .308 rounds are already used by the [[MSR788 Rifle]].


==Gallery==
==Gallery==
<gallery>
<gallery>
File:M14_Rifle_Model_Variants.png|Unused models for the M14 in the game files.
M14 Rifle Model_Variants.png|Unused models for the M14 in the game files
File:M14_Rifle_Player.PNG|In-game screenshot of the M14 being held by a player.
M14 Rifle Player.PNG|In-game screenshot of the M14 being held by a player
File:AssaultRifle2.png|M14 Rifle Icon
M14modelchange.jpg|The new model (on top) and the old model (below)
File:M14modelchange.jpg|The new model (on top) and the old model (below).
</gallery>
</gallery>


==Code==
==Code==
'''''From items_weapons.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|Item<br>
 
{{CodeSnip
{{Retrieved|version=41|incver=73}}
  | lang = java
<pre>
  | line = true
    item AssaultRifle2
  | start = 6173
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item AssaultRifle2
     {
     {
         DisplayCategory = Weapon,
         DisplayCategory = Weapon,
Line 150: Line 216:
         RunAnim = Run_Weapon2,
         RunAnim = Run_Weapon2,
         IdleAnim = Idle_Weapon2,
         IdleAnim = Idle_Weapon2,
         CriticalChance = 0,
         CriticalChance = 30,
         AimingPerkCritModifier = 0,
        CritDmgMultiplier = 10,
         AimingPerkCritModifier = 15,
         HitChance = 50,
         HitChance = 50,
         AimingPerkHitChanceModifier = 5,
         AimingPerkHitChanceModifier = 5,
Line 192: Line 259:
         StopPower = 2,
         StopPower = 2,
     }
     }
</pre>
}}
===Repair===
 
'''''From fixing.txt (Project Zomboid directory/media/scripts/)'''''
 
{{Retrieved|version=41|incver=65}}
Repair<br>
<pre>
{{CodeSnip
  | lang = java
  | line = true
  | start = 442
  | source = fixing.txt
  | retrieved = true
  | version = 41.78.16
  | code =
     fixing Fix AssaultRifle2
     fixing Fix AssaultRifle2
     {
     {
Line 202: Line 276:


       Fixer : AssaultRifle2; Aiming=5,
       Fixer : AssaultRifle2; Aiming=5,
     }</pre>
     }
  }}
}}


==See also==
==See also==
<!--Comment: Location of links to relevant guides or other pages that may not have been mentioned on this page but still relate to the item in some way. -->
*[[M16 Assault Rifle]]
* [[M16_Assault_Rifle|M16 Assault Rifle]]
*[[MSR700 Rifle]]
* [[MSR700_Rifle|MSR700 Rifle]]
*[[MSR788 Rifle]]
* [[MSR788_Rifle|MSR788 Rifle]]
*[[Wikipedia:M14 rifle|M14 Rifle on Wikipedia]]
* [[wikipedia:M14 rifle|M14 Rifle on Wikipedia]]


<!--Comment: Navbox placement goes here. Code example = {{Navbox_weapons}}, (see all current navboxs via the template section)-->
{{Navbox items|firearms}}
{{Navbox_weapons}}

Revision as of 09:56, 14 April 2024

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

A M14 rifle is a semi-automatic rifle. It is a two-handed weapon and can be attached to the back of a character to reduce encumbrance.

Usage

The M14 Rifle is a semi-automatic rifle, utilizing M14 magazine with .308 rounds as ammo. It can only hit one target at a time and does not pierce through targets. Should the rifle jam on the player, pressing X will rack it and unjam it.

The M14 might not seem all that impressive statistically speaking, but compared to the bolt-action MSR700/788 rifles, it is much more effective against larger groups of enemies, with its 20 round clip and excellent hit chance, topped with decent damage and low jam chance. Unlike the bolt-action rifles, the M14 also does not need to be manually racked after firing, allowing for faster follow-up shots. The M14 excels in dispatching small packs of hordes at range. However, this is not a rifle for players with low level aiming, and to be used effectively it at least level 5+ aiming is recommended.

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 M14 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.
  • Laser HandgunLaser.png: Increases base hit chance by 5%.
  • Recoil Pad RifleRecoilPad.png: Reduces recoil.
  • Red Dot RedDot.png: Increases aiming speed.

To install these attachments, ensure that you have a screwdriver in your inventory, right-click the M14 you want to modify, click on 'Upgrade' and pick the attachment you want to install.

Condition

The M14 Rifle is a firearm and, 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 5 Aiming and another M14 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.

Containers
Building/Room Container Rolls Chance
SafehouseLoot counter 4 6
all militarycrate 4 1
militarycrate 4 1
wardrobe 4 0.001
wardrobe 4 0.001
wardrobe 4 0.001
wardrobe 4 0.001
wardrobe 4 0.001
armysurplus displaycase 4 2
changeroom locker 4 0.002
closet metal_shelves 4 0.001
druglab metal_shelves 4 6
garagestorage locker 4 2
pawnshopoffice locker 4 8
policestorage locker 4 1

Buildings

The M14 can be found in police stations, military bases, gun shops, and in rare cases, in rifle cases in homes.

Vehicles

The M14 can also be found in the trunk of police cruisers as well.

Trivia

  • The M14 was issued to replace the M1 Garand in the late 50s, but was in turn replaced by the M16 in the late 60s. It has remained in limited service for training, sharpshooter roles, and ceremonial use, amongst other purposes.
  • There are models and textures in the game hinting at the possibility of attaching a bayonet + flashlight, and even improvised versions with a bayonet made from a kitchen knife and a simple flashlight taped under the barrel. However, none of this is in-game yet. A preview image can be seen in the gallery below.
  • Initially, the M14 rifle in game had a model based on the Ruger Mini-14 rifle, but the model has been altered later on. The old model can still be found in the game files.
  • In real life the M14 is chambered in the 7.62x51mm NATO round, rather than .308 Winchester, and while .308 can be fired through a firearm made for 7.62mm it is considered unsafe due to the fact .308 is loaded to higher pressures.
    • This was likely done to reuse ammo type in the unmodded game, as .308 rounds are already used by the MSR788 Rifle.

Gallery

Code

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

Item
Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item AssaultRifle2
    {
        DisplayCategory = Weapon,
        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	=	70,
        MinDamage	=	1.2,
        MaxDamage	=	2,
        SplatSize	=	3,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	AssaultRifle2,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        CriticalChance = 30,
        CritDmgMultiplier = 10,
        AimingPerkCritModifier = 15,
        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,
    }


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

Retrieved: Build 41.78.16
fixing Fix AssaultRifle2
    {
       Require : AssaultRifle2,

       Fixer : AssaultRifle2; Aiming=5,
    }

See also