Jump to content
Sign in to follow this  
Laqueesha

How to add magazines into backpack in config?

Recommended Posts

How do I add magazines and grenades and such into a unit's backpack in a unit config file?

I want it to be so that when a unit starts any mission, they already have magazines and grenades in their backpack, rather than having to manually add them into the init every time via addMagazineCargo.

At the moment, I can have the backpack show up via config, but they always start out empty.

Is this even possible or do I have to create a new backpack?

Edited by Laqueesha

Share this post


Link to post
Share on other sites

check in allinoneconfig.cpp from dev-heaven.net something like this

class BAF_AssaultPack_RifleAmmo: Bag_Base_BAF
{
	scope = 2;
	class TransportMagazines
	{
		class _xx_30Rnd_556x45_Stanag
		{
			magazine = "30Rnd_556x45_Stanag";
			count = 4;
		};
		class _xx_1Rnd_HE_M203
		{
			magazine = "1Rnd_HE_M203";
			count = 2;
		};
		class _xx_SmokeShell
		{
			magazine = "SmokeShell";
			count = 1;
		};
		class _xx_SmokeShellRed
		{
			magazine = "SmokeShellRed";
			count = 1;
		};
	};
};

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
Sign in to follow this  

×