Server owners edit cfgspawnabletypes.xml on a DayZ server to control the initial configuration and loadout of specific items, vehicles, and infected when they spawn into the world. This file is essential for ensuring functional realism and convenience by defining what attachments, cargo, or clothing should be pre-attached, such as a magazine in a weapon or a spark plug in a car engine. By modifying this configuration, server admins can fine-tune the starting utility and value of items, contributing to server-specific balance and immediately enhancing the player's progression and experience.
Note: Learn how to modify loot here.
1. Log in to the BisectHosting Starbase panel.
2. Stop the server.
3. Go to the Files tab.
4. Find the following directory: /home/container/mpmissions/dayzOffline.MapName .
5. Open the cfgspawnabletypes.xml file.
6. From the desired type, enter the desired attachments with a spawn chance of up to 1.00.
<attachments chance="1.00">
<item name="Attachment_Name" chance="1.00" />
</attachments>Grouping attachments will set one random spawn from the group.
<attachments chance="0.30">
<item name="Attachment_Name1" chance="0.50" />
<item name="Attachment_Name2" chance="0.50" />
</attachments>7. If the item has storage, enter the desired items with a spawn chance of up to 1.00.
<cargo chance="1.00">
<item name="ItemName" chance="1.00" />
</cargo>Grouping cargo will set one random spawn from the group.
<cargo chance="1.00">
<item name="ItemName1" chance="0.50" />
<item name="ItemName2" chance="0.50" />
</cargo>Note: Cargo or attachment presets are set from the cfgrandompresets.xml file.
8. Optionally, add any desired attributes within the tag lines.
-
<damage min="0.1" max="1.0" />- Added as a separate line for durability chance. -
quantmin="1"- Adds a minimum content value, such as for canteens. -
quantmax="100"- Adds a maximum content value, such as for ammo. -
<hoarder />- Sets the type as hoarding containers. Items in hoarding containers are counted to the nominal and min values.
9. Press the Save button.