Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

M4-A1 Polymer Handguard

A polymer handguard for M4-A1 assault rifle.

Classname M4_PlasticHndgrd
Weight
250 g
Inventory size
2×1 2 slots
Durability
200
Spawns on
Chernarus, Livonia
3 variants

Compatibility

Attaches to

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: Military. Also spawns on or inside other items: M4-A1.

ChernarusLivoniaSakhal
Nominal 5 5 0
Minimum 2 2 0
Lifetime 4 h 4 h 4 h
Restock 0 0 0
Quantity · · ·
Loot category Weapons Weapons Weapons
Places Military Military Military
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 on or inside

From cfgspawnabletypes.xml of the vanilla maps: the item can spawn attached to these items or in their cargo, with the chance set there.

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="M4_PlasticHndgrd">
    <nominal>5</nominal>
    <lifetime>14400</lifetime>
    <restock>0</restock>
    <min>2</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</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="Military"/>
</type>
types.xml · Sakhal
<type name="M4_PlasticHndgrd">
    <nominal>0</nominal>
    <lifetime>14400</lifetime>
    <restock>0</restock>
    <min>0</min>
    <quantmin>-1</quantmin>
    <quantmax>-1</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="Military"/>
</type>

Variants

M4-A1 Polymer Handguard M4_PlasticHndgrd Chernarus 5Livonia 5 This page
M4-A1 Polymer Handguard M4_PlasticHndgrd_Black M4-A1 Polymer Handguard M4_PlasticHndgrd_Green

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

Config

Classname
M4_PlasticHndgrd
Config class
CfgVehicles
Inherits from
Inventory_Base › Static › All
Model
\DZ\weapons\attachments\support\handguard_m4_plastic.p3d
Defined in
Addons/weapon_supports.pbo::config.bin
Inventory slots
weaponHandguardM4