Server ToolsLauncherServer ListWiki Sign in Discord chat Download
Wiki menu

Rag

Roughly cut piece of cloth. Useful for creating items or bandaging wounds, preferably when they are clean.

Classname Rag
Section
Equipment
Weight
20 g
Inventory size
1×3 3 slots
Durability
50
Spawns on
Not in vanilla loot

Characteristics

Quantity
6 pcs
Repaired with

Compatibility

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

Where it spawns

Also spawns on or inside other items: ZmbM_Mummy, Teddy Bear. Can be crafted, the recipe is below.

ChernarusLivoniaSakhal
Nominal 0 0 0
Minimum 0 0 1
Lifetime 4 h 4 h 4 h
Restock 0 0 0
Quantity · · ·
Loot category Tools Clothes ·
Places · · ·
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
<type name="Rag">
    <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="1" deloot="0"/>
    <category name="tools"/>
</type>
types.xml · Livonia
<type name="Rag">
    <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="1" deloot="0"/>
    <category name="clothes"/>
</type>
types.xml · Sakhal
<type name="Rag">
    <nominal>0</nominal>
    <lifetime>14400</lifetime>
    <restock>0</restock>
    <min>1</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="1" deloot="0"/>
</type>

Crafting

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

Config

Classname
Rag
Config class
CfgVehicles
Inherits from
Inventory_Base › Static › All
Model
\dz\gear\consumables\Rags.p3d
Defined in
Addons/gear_consumables.pbo::config.bin
Inventory slots
Rags