The cfgRandomPresets.xml file defines random item groups that can spawn together in your DayZ server.
The cfgRandomPresets.xml file is used to define groups of items that can spawn together in your DayZ server. This file helps control:
The cfgRandomPresets.xml file consists of <randompresets>
and <cargo>
elements:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<randompresets>
<cargo chance="1.0" name="MedicalSupplies">
<item name="BandageDressing" chance="0.8" />
<item name="DisinfectantAlcohol" chance="0.5" />
<item name="DisinfectantSpray" chance="0.5" />
<item name="PainkillerTablets" chance="0.5" />
<item name="VitaminBottle" chance="0.4" />
<item name="IodineTincture" chance="0.3" />
<item name="TetracyclineAntibiotics" chance="0.3" />
<item name="Morphine" chance="0.2" />
<item name="Epinephrine" chance="0.1" />
</cargo>
<cargo chance="1.0" name="HuntingGear">
<item name="HuntingKnife" chance="0.7" />
<item name="Box_762x54_20Rnd" chance="0.5" />
<item name="Box_308Win_20Rnd" chance="0.5" />
<item name="HuntingOptic" chance="0.3" />
<item name="ImprovisedSuppressor" chance="0.2" />
</cargo>
</randompresets>
The name of the preset group.
The probability (0.0 to 1.0) of this preset group being selected when applicable.
The classname of the item (must match a classname in types.xml).
The probability (0.0 to 1.0) of this specific item spawning when its parent cargo group is selected.
The cfgRandomPresets.xml file works in conjunction with other configuration files:
For example, when the server decides to spawn items in a medical location, it might select the "MedicalSupplies" preset. Then, for each item in that preset, it rolls a random number to determine if that specific item will spawn based on its chance value.
When configuring random presets, consider the following best practices:
For more information about random presets and loot distribution, check the types.xml documentation or join our Discord community for assistance.