Jump to content
Cryptdik

Respawn Loadout question

Recommended Posts

So I'm wondering how to replicate the APEX campaign's respawn where you select Assault or Support or whatever.

I get how to use BIS_fnc_addRespawnInventory to add loadouts but how do I create new categories instead of just "Rifleman" or whatever the basic class is, and then how do I add multiple loadouts to one class?

https://community.bistudio.com/wiki/BIS_fnc_addRespawnInventory

Share this post


Link to post
Share on other sites

Use the cfgRespawnInventory in the description.ext:

class CfgRespawnInventory
{
  	class myClass
	{
		displayName = "";

		weapons[] =
		{

		};

		magazines[] =
		{

		};

		items[] =
		{

		};

		linkedItems[] =
		{

		};

		uniformClass = ;
	};
};

Here's an example (shamelessly stolen from here; @David77):

Spoiler

class CfgRespawnInventory
{
  	class CQB_Specialist
	{
		displayName = "CQB Specialist"; // Shown on respawn screen

		weapons[] =
		{
			// Weapons classnames
			"arifle_MX_F",
			"hgun_P07_F",
			"Binocular"
       };

		magazines[] =
       {
			// Magazine classnames
			"smokeshell",
			"smokeshell",
			"smokeshell",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"16Rnd_9x21_Mag",
			"16Rnd_9x21_Mag",
			"16Rnd_9x21_Mag",
			"16Rnd_9x21_Mag",
			"HandGrenade",
			"HandGrenade",
			"HandGrenade",
			"HandGrenade",
			"HandGrenade"
		};

		items[] =
		{
			// Items classnames
			"FirstAidKit",
			"optic_holosight"
		};

		linkedItems[] =
		{
			// Items classnames
			"V_PlateCarrier1_rgr",
			"H_HelmetB",
			"acc_pointer_IR",
			"optic_Aco",
			"ItemMap",
			"ItemCompass",
			"ItemWatch",
			"ItemRadio",
			"ItemGps",
			"NVGoggles"
		};

		uniformClass = "U_B_CombatUniform_mcam";
	};

	// More classes.........



};

 

 

You can use "CTRL+SHIFT+C" in the arsenal to export a loadout in this format.

  • Like 3

Share this post


Link to post
Share on other sites

Awesome! Thanks a bunch. But when you say "export a loadout" does that mean it goes to the clipboard for copy/pasting? Or to a file somewhere?

Share this post


Link to post
Share on other sites

It should copy it to your clipboard. One thing I noticed is that it copies with "uniform = X" instead of "uniformClass = X".

Share this post


Link to post
Share on other sites

Just found this in the Arma 3 Respawn template section:

class CfgRespawnInventory
{
	class WEST1
	{
		displayName = "Light"; // Name visible in the menu
		icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\sergeant_gs.paa"; // Icon displayed next to the name

		// Loadout definition, uses same entries as CfgVehicles classes
		weapons[] = {
			"arifle_MXC_F",
			"Binocular"
		};
		magazines[] = {
			"30Rnd_65x39_caseless_mag",
			"30Rnd_65x39_caseless_mag",
			"SmokeShell"
		};
		items[] = {
			"FirstAidKit"
		};
		linkedItems[] = {
			"V_Chestrig_khk",
			"H_Watchcap_blk",
			"optic_Aco",
			"acc_flashlight",
			"ItemMap",
			"ItemCompass",
			"ItemWatch",
			"ItemRadio"
		};
		uniformClass = "U_B_CombatUniform_mcam_tshirt";
		backpack = "B_AssaultPack_mcamo";
	};
	class WEST2
	{
		// Alternative configuration pointing to a CfgVehicles class. Loadout will be copied from it.
		vehicle = "B_soldier_AR_F"
	};
};

Pay attention to class WEST2: it redirects to an already existing standard loadout. Maybe you can change parts of the loadout by changing certain attributes like the displayName.

Or it crahes your game and you are thrown back to the desktop.

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×