M16 Assault Rifle: Difference between revisions

From PZwiki
m (Updated for 41.68 damage nerf/fix)
(Fixed several typos, and emphasized the military camp outside of Louisville(wasn't clear to me from "military bases" that that was included, plus it tends to have several while the compound often doesn't have a single one).)
Line 48: Line 48:
}}
}}
<!--Comment: General introductory for the item-->
<!--Comment: General introductory for the item-->
A '''M16 Assault Rifle''' is a automatic military grade firearm. It is a two handed weapon and can be attached to the back of a character to reduce weight.
A '''M16 Assault Rifle''' is an automatic military grade firearm. It is a two handed weapon and can be attached to the back of a character to reduce weight.
__TOC__
__TOC__
<!--Comment: This is where the 'Table Of Contents' will go if it is needed-->
<!--Comment: This is where the 'Table Of Contents' will go if it is needed-->
Line 77: Line 77:
==Condition==
==Condition==
<!--Comment: This section contains all the info about the condition of the weapon. -->
<!--Comment: This section contains all the info about the condition of the weapon. -->
The M16 Assault Rifle is a [[Skills#Firearm|firearm]] As such, the durablity 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>
The M16 Assault 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===
===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. -->
<!--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 M16 Assault 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.
Requires level 5 Aiming and another M16 Assault 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==
==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. -->
<!--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. -->
===Buildings===
===Buildings===
This weapon can be found in military bases inside of the armory, or in rare drops in gun stores as a special display. It does not spawn in vehicles or on zombies.
This weapon can be found in military bases inside of the armory, especially at the military camp southwest of Louisville, or in rare drops in gun stores as a special display. It does not spawn in vehicles or on zombies.


==Trivia==
==Trivia==


* There are models in the game hinting at the possiblity of attaching a bayonet + flashlight and even an improvised version. However none of this is in-game yet.
* There are models in the game hinting at the possibility of attaching a bayonet + flashlight and even an improvised version. However none of this is in-game yet.


==Gallery==
==Gallery==

Revision as of 00:23, 15 August 2022


The Game WorldItemsWeaponsFirearmsM16 Assault Rifle
M16 Assault Rifle
M16 Assault Rifle
M16 Assault Rife 5.56mm Magazine 5.56mm Rounds
General
Category Weapon
Encumbrance
Heavy Load
4
Equipped Two-handed
Condition max. 15
Skill Gunshot
Attachment Back
Characteristics
Ammo type RifleAmmo308loose.png
Magazine size 30
Noise radius 70 tiles
Recoil delay 0
Reload time 25
Aiming time 25
Damage
Type Gunshot
Attack speed 0.5
Range 0.61–11 tiles
Damage 0.8–1.4
Accuracy 20
Knockback 0.5
Knockdown 4
Technical details
Base ID Base.AssaultRifle

A M16 Assault Rifle is an automatic military grade firearm. It is a two handed weapon and can be attached to the back of a character to reduce weight.

Usage

Weapon

The M16 Assault Rifle is a selective fire automatic firearm capable of switching between auto fire and single fire modes, utilizing 5.56mm Magazines as ammo. It can hit up two targets at a time as well as pierce through targets. However because of its high rate of fire, the rifle is much more likely to jam on the player than usual, and can also consume ammo faster than most other weapons. It can be racked again to unjam by pressing X.

Due to its high rate of fire and powerful 5.56mm rounds, the weapon is very difficult to utilize effectively for low aim level players. In the hands of a more skilled player, ideally a player with 5+ Aiming. This weapon and its auto fire mode can neutralize large numbers of Zombies with haste on par with Shotguns at the expense of ammo consumption, as how much ammo is used effectively is highly dependent on the aiming level of the player.

Fire Modes

This rifle features two modes of operation: Single and Automatic Fire. This can be toggled between using the right click context menu on the weapon.

  • Single Fire: The rifle only fires off one shot and requires another trigger push to shoot again.
  • Auto Fire: The rifle will continue to fire shots as long as the trigger is held down. It is worth noting that this weapon has no recoil delay.

Attachments

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

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

Condition

The M16 Assault 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 5 Aiming and another M16 Assault 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

Buildings

This weapon can be found in military bases inside of the armory, especially at the military camp southwest of Louisville, or in rare drops in gun stores as a special display. It does not spawn in vehicles or on zombies.

Trivia

  • There are models in the game hinting at the possibility of attaching a bayonet + flashlight and even an improvised version. However none of this is in-game yet.

Gallery

Code

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

Retrieved: Build 41.65

    item AssaultRifle
    {
        DisplayCategory = Weapon,
        ImpactSound	=	null,
        MaxRange	=	11,
        WeaponSprite	=	AssaultRifle,
        SoundVolume	=	35,
        MinAngle	=	0.965,
        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	=	2,
        PiercingBullets = TRUE,
        IsAimedFirearm	=	TRUE,
        DoorDamage	=	20,
        UseEndurance	=	FALSE,
        SwingAnim	=	Rifle,
        DisplayName	=	M16 Assault Rifle,
        MinRange	=	0.61,
        SwingTime	=	0.5,
        MultipleHitConditionAffected	=	FALSE,
		BringToBearSound = M16BringToBear,
        SwingSound	=	M16Shoot,
        HitSound = BulletHitBody,
		ClickSound = M16Jam,
        SoundRadius	=	70,
        MinDamage	=	0.8,
        MaxDamage	=	1.4,
        SplatSize	=	3,
        KnockdownMod	=	4,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	AssaultRifle,
        RunAnim	=	Run_Weapon2,
        IdleAnim	=	Idle_Weapon2,
        CriticalChance = 30,
        AimingPerkCritModifier = 0,
        HitChance = 20,
        AimingPerkHitChanceModifier = 7,
        AimingPerkMinAngleModifier = 0.01,
        AimingPerkRangeModifier = 3,
        RecoilDelay = 0,
        SoundGain = 2,
        ReloadTime = 25,
        AimingTime = 25,
        RequiresEquippedBothHands = TRUE,
        BreakSound = M16Break,
        TwoHandWeapon = TRUE,
        MetalValue = 45,
        AmmoBox = 556Box,
        MaxAmmo = 30,
		EquipSound = M16Equip,
		UnequipSound = M16UnEquip,
        InsertAmmoSound = M16InsertAmmo,
        EjectAmmoSound = M16EjectAmmo,
		InsertAmmoStartSound = M16InsertAmmoStart,
		InsertAmmoStopSound = M16InsertAmmoStop,
		EjectAmmoStartSound = M16EjectAmmoStart,
		EjectAmmoStopSound = M16EjectAmmoStop,
        ShellFallSound = M16CartridgeFall,
        RackSound = M16Rack,
        MagazineType = Base.556Clip,
        AmmoType = Base.556Bullets,
        WeaponReloadType = boltaction,
        JamGunChance = 2,
        AttachmentType = Rifle,
        FireMode = Auto,
        FireModePossibilities = Auto/Single,
        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

From fixing.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.68

    fixing Fix Assault Rifle
    {
       Require : AssaultRifle,

       Fixer : AssaultRifle; Aiming=5,
    }

See also