What freshly spawned players carry is defined in the file init.c in the mission folder: mpmissions/dayzOffline.chernarusplus/init.c. By default they get a bandage, a chemlight and a fruit.
Adding an item
- Stop the server and open
init.cin the Files tab (download it first = backup). - Find the line with
"BandageDressing":
itemEnt = itemClothing.GetInventory().CreateInInventory( "BandageDressing" );
- Add one line per item directly below it, e.g. a kitchen knife:
itemClothing.GetInventory().CreateInInventory( "KitchenKnife" );
- Save and start the server.
The item goes into the player's clothing. If there's no room left, it isn't created – choose smaller items in that case.
Popular items
| Name in init.c | Item |
|---|---|
KitchenKnife | Kitchen knife |
Rag | Rag (also usable as a bandage) |
TunaCan | Tuna can |
WaterBottle | Water bottle |
Matchbox | Matchbox |
Flashlight | Flashlight |
Good to know
- Upper and lower case, quotation marks and the semicolon at the end must be exactly right. A typo in the name is silently ignored; a syntax error can prevent the start – then upload your backup again.
- The change only applies to new characters, not to players who are already alive.
- More loot on the map instead of in the backpack: Adjusting loot with types.xml.