init.c - GarageMan/Setting-up-a-DayZ-server GitHub Wiki
basics
Spawn loadout
Check TDcomm’s post on Steam.
Check GravityWolfNotAmused on Github.
Our Dovecote server-specific loadout:
init.c
...
override void StartingEquipSetup(PlayerBase player, bool clothesChosen)
{
player.RemoveAllItems();
// DC-branded equipment
player.GetInventory().CreateInInventory("DC_Starter_BeanieHat"); // Namalsk: DC_Starter_Winter_BeanieHat
player.GetInventory().CreateInInventory("DC_Starter_TShirt"); // Namalsk: DC_Starter_Winter_Hoodie
player.GetInventory().CreateInInventory("DC_Starter_Jeans"); // Namalsk: DC_Starter_Winter_Jeans
player.GetInventory().CreateInInventory("DC_Starter_Sneakers"); // Namalsk: DC_Starter_Winter_Sneakers
player.GetInventory().CreateInInventory("DC_ImpCourierBag");
player.GetInventory().CreateInInventory("DC_SodaCan_Pilsner");
player.GetInventory().CreateInInventory("TunaCan_Opened");
ItemBase knife = player.GetInventory().CreateInInventory("DC_Bowieknife");
ItemBase rags = player.GetInventory().CreateInInventory("Rag");
// ItemBase watch = player.GetInventory().CreateInInventory("tool_watch2"); // Namalsk, only
// ItemBase pda = player.GetInventory().CreateInInventory("ItemPDA"); // requires: @GearPDA
// pda.GetInventory().CreateAttachment("Battery9V");
// Assign quickslots 0 to 3
player.SetQuickBarEntityShortcut(knife, 0, true);
player.SetQuickBarEntityShortcut(rags, 1, true);
// player.SetQuickBarEntityShortcut(watch, 2, true);
// player.SetQuickBarEntityShortcut(pda, 3, true);
player.GetStatWater().Set( 900 );
player.GetStatEnergy().Set( 1100 );
}
...