Thanks for visiting our wiki! Click here to order your own game server at SurvivalServers.com

Setting up Custom Loadout

From Survival Servers
Revision as of 15:14, 15 December 2018 by StevenW (talk | contribs) (Created page with "== Setting up a custom loadout == Before we proceed with setting up custom loadouts. You will want to first head to the following area for the classnames <br> https://github....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Setting up a custom loadout

Before we proceed with setting up custom loadouts. You will want to first head to the following area for the classnames
https://github.com/ravmustang/DayZ_SA_ClassName_Dump *thanks to ravmustang*

1. Bring down the server by hitting stop on the panel
2. Log into your FTP client. (Info here for FTP)
3. Head into the following directory: /mpmissions/dayzOffline.chernarusplus
4. Use Notepad++ to edit the init.c file within the above directory.
  • Look for the following area:
		itemTop = player.FindAttachmentBySlotName("Body");

		if ( itemTop )
		{
			itemEnt = itemTop.GetInventory().CreateInInventory("Rag");
			if ( Class.CastTo(itemBs, itemEnt ) )
		itemBs.SetQuantity(4);

			SetRandomHealth(itemEnt);

			itemEnt = itemTop.GetInventory().CreateInInventory("Flashlight");
			SetRandomHealth(itemEnt);

			itemEnt = itemTop.GetInventory().CreateInInventory("StoneKnife");
			SetRandomHealth(itemEnt);

			itemEnt = itemTop.GetInventory().CreateInInventory("Battery9V");
			SetRandomHealth(itemEnt);
		}

		rand = Math.RandomFloatInclusive(0.0, 1.0);
		if ( rand < 0.25 )
			itemEnt = player.GetInventory().CreateInInventory("SodaCan_Cola");
		else if ( rand > 0.75 )
			itemEnt = player.GetInventory().CreateInInventory("SodaCan_Spite");
		else
			itemEnt = player.GetInventory().CreateInInventory("SodaCan_Pipsi");

		SetRandomHealth(itemEnt);

		rand = Math.RandomFloatInclusive(0.0, 1.0);
		if ( rand < 0.35 )
			itemEnt = player.GetInventory().CreateInInventory("Apple");
		else if ( rand > 0.65 )
			itemEnt = player.GetInventory().CreateInInventory("Pear");
		else
			itemEnt = player.GetInventory().CreateInInventory("Plum");

		SetRandomHealth(itemEnt);
	}
5. From there you will want to grab the new classnames from the link listed at the top of the page. Simply change the

current list out with the new items you wish to have or copy the code line and create a new item to add onto the list.
Do note however that the inventory can only hold so much.

 itemEnt = itemTop.GetInventory().CreateInInventory("Battery9V");
			SetRandomHealth(itemEnt);
6. Once you have made your edits simply save and re upload to the FTP client.
7. Start DayZ Standalone back online and join the server
  • Do note that you will only get these items when starting a fresh character
This page will be updated more as time goes on.


Share your opinion