Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

M4-A1 Bayonet

A bayonet for M4-A1 assault rifle with a bayonet lug.

Classname M9A1_Bayonet
Weight
450 g
Inventory size
1×3 3 slots
Worn or carried in
Knife sheath
Durability
150
Spawns on
Chernarus, Livonia

Characteristics

Repaired with

Melee

Attack Health Shock Blood Reach
Light attack 22 12 100 1.2 m
Heavy attack 38 18 100 1.2 m
Sprint attack 38 18 100 3.3 m

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: Military.

ChernarusLivoniaSakhal
Nominal 10 10 0
Minimum 5 5 0
Lifetime 8 h 8 h 8 h
Restock 0 0 0
Quantity · · ·
Loot category Weapons Weapons Weapons
Places Military Military Military
Tiers Tier 2 Tier 3 Tier 2 Tier 3 ·

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.

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="M9A1_Bayonet">
    <nominal>10</nominal>
    <lifetime>28800</lifetime>
    <restock>0</restock>
    <min>5</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"/>
    <value name="Tier2"/>
    <value name="Tier3"/>
</type>
types.xml · Sakhal
<type name="M9A1_Bayonet">
    <nominal>0</nominal>
    <lifetime>28800</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>

Crafting

Recipes are read from the game scripts. Some have extra conditions in code, those are marked partial.

Config

Classname
M9A1_Bayonet
Config class
CfgVehicles
Inherits from
Inventory_Base › Static › All
Model
\dz\weapons\attachments\muzzle\bayonet_m9a1.p3d
Defined in
Addons/weapon_muzzles.pbo::config.bin
Inventory slots
weaponBayonet, Knife