Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

M4-A1

Selective-fire assault rifle, fed from a standardized detachable magazine. Offers a lot of customization with attachments. Uses 5.56x45mm rounds.

Classname M4A1
Section
Weapons
Weight
2.28 kg
Inventory size
8×3 24 slots
Worn or carried in
Shoulder, Melee slot
Durability
200
Fire modes
Semi-auto, Full auto
Spawns on
Chernarus, Livonia, Sakhal
3 variants

Characteristics

Repaired with

Fire modes

Semi-auto
500 rounds/min
Full auto
923 rounds/min

Rate of fire is 60 seconds divided by the delay between shots in the config.

Ammunition damage

Bullet Health Blood Shock Muzzle velocity
Bullet_556x45 110 100 110 765 m/s
Bullet_556x45Tracer 110 100 110 765 m/s

Damage of the bullet class from the config, before armor and hit zone multipliers. Muzzle velocity already counts this barrel.

Melee

Attack Health Shock Blood Reach
Light attack 10 15 100 1.2 m

Compared with similar

Weapons that take the same ammo, strongest bullet first.

Item WeightRounds/minMuzzle velocityDamage
LE-MAS 3.6 kg 923 850 m/s 110
M16-A2 2.9 kg 923 850 m/s 110
M4-A1 2.28 kg 923 765 m/s 110
Sawed-off LE-MAS 3.6 kg 923 850 m/s 110
AUR A1 3.2 kg 706 723 m/s 110
AUR AX 3.6 kg 706 850 m/s 110
KA-101 3.08 kg 612 765 m/s 110
Pioneer 3 kg 30 977 m/s 110
M249 SAW 7.5 kg · 850 m/s 110

Compatibility

Matched by config slots and lists. Game scripts block a few combinations on top of this.

Where it spawns

Spawns as loot on Chernarus, Livonia, Sakhal: Contaminated zone, Special.

ChernarusLivoniaSakhal
Nominal 1 1 2
Minimum 1 1 1
Lifetime 2 h 2 h 2 h
Restock 1 h 1 h 2 h
Quantity 30–80% 30–80% 30–80%
Loot category Weapons Weapons Weapons
Places Contaminated zone Contaminated zone Special
Tiers · · ·

Nominal is how many the economy keeps on the map, minimum is where restocking starts. Lifetime is how long an untouched item lies before cleanup.

Spawns with

Spawns with 45% to 85% damage.

types.xml

Vanilla entries from the mission files of each map. Paste one into db/types.xml of your mission to bring back the default.

types.xml · Chernarus, Livonia
<type name="M4A1">
    <nominal>1</nominal>
    <lifetime>7200</lifetime>
    <restock>3600</restock>
    <min>1</min>
    <quantmin>30</quantmin>
    <quantmax>80</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
    <category name="weapons"/>
    <usage name="ContaminatedArea"/>
</type>
types.xml · Sakhal
<type name="M4A1">
    <nominal>2</nominal>
    <lifetime>7200</lifetime>
    <restock>7200</restock>
    <min>1</min>
    <quantmin>30</quantmin>
    <quantmax>80</quantmax>
    <cost>100</cost>
    <flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="1"/>
    <category name="weapons"/>
    <usage name="Special"/>
</type>
cfgspawnabletypes.xml · Chernarus, Livonia
<type name="M4A1">
    <damage min="0.45" max="0.85"/>
    <attachments chance="1">
        <item name="M4_OEBttstck" chance="1"/>
    </attachments>
    <attachments chance="1">
        <item name="M4_PlasticHndgrd" chance="1"/>
    </attachments>
    <attachments chance="1">
        <item name="BUISOptic" chance="0.5"/>
        <item name="M4_CarryHandleOptic" chance="1"/>
    </attachments>
    <attachments chance="0.1">
        <item name="Mag_CMAG_40Rnd" chance="0.15"/>
        <item name="Mag_CMAG_10Rnd" chance="0.5"/>
        <item name="Mag_CMAG_20Rnd" chance="0.7"/>
        <item name="Mag_CMAG_30Rnd" chance="1"/>
    </attachments>
</type>
cfgspawnabletypes.xml · Sakhal
<type name="M4A1">
    <damage min="0.45" max="0.85"/>
    <attachments chance="1">
        <item name="M4_OEBttstck" chance="1"/>
    </attachments>
    <attachments chance="1">
        <item name="M4_PlasticHndgrd" chance="1"/>
    </attachments>
    <attachments chance="1">
        <item name="BUISOptic" chance="0.5"/>
        <item name="M4_CarryHandleOptic" chance="1"/>
    </attachments>
    <attachments chance="0.65">
        <item name="Mag_CMAG_40Rnd" chance="0.15"/>
        <item name="Mag_CMAG_10Rnd" chance="0.5"/>
        <item name="Mag_CMAG_20Rnd" chance="0.7"/>
        <item name="Mag_CMAG_30Rnd" chance="1"/>
    </attachments>
</type>

Variants

M4-A1 M4A1 Chernarus 1Livonia 1Sakhal 2 This page
M4-A1 M4A1_Black M4-A1 M4A1_Green

The same item in other colors or versions. Each one has its own classname and loot settings.

Config

Classname
M4A1
Config class
CfgWeapons
Inherits from
M4A1_Base › Rifle_Base › RifleCore › DefaultWeapon › Weapon_Base
Model
\dz\weapons\firearms\m4\m4a1.p3d
Defined in
Addons/weapons_firearms.pbo::M4/config.bin
Inventory slots
Shoulder, Melee