Jump to content
Sign in to follow this  
Sakai

TransportMagazines and Backpacks

Recommended Posts

Hi there! I want to know and been searching how you can add stuff to backpacks? I know how to add backpacks aka

backpack = "TK_Assault_Pack_EP1";

and I think the next step is

Class Backpack : Backpack Class ?
{
 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;
  };
 };
};

But here is a problem for example here is what I have got

class LEN_UN_CDF_Marine_B_EP1 : LEN_UN_CDF_Soldier_base_EP1 {
	model = "\fac_cdf_marines\UN_CDF_Rifleman";
	icon = "\Ca\characters2\data\icon\i_machinegunner_CA.paa";
	scope = public;
	accuracy = 3.9;	// accuracy needed to recognize type of this target
	displayName = "Automatic Riflemen";
	weapons[] = {"FAC_FALO", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	magazines[] = {"20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "HandGrenade_East", "HandGrenade_East", "HandGrenade_East", "SmokeShell"};
	respawnWeapons[] = {"FAC_FALO", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	respawnMagazines[] = {"20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "HandGrenade_East", "HandGrenade_East", "20Rnd_762x51_FNFAL", "20Rnd_762x51_FNFAL", "SmokeShell"};
	faction = "FAC";
	side = 2;
	canCarryBackpack = 1;
	backpack = "TK_Assault_Pack_EP1";
	genericnames = "DIH_Ger_Men";
	class TK_Assault_Pack_EP1 : ????
{
 scope = 2;
 class TransportMagazines
 {
  class _xx_20Rnd_762x51_FNFAL
  {
   magazine = "20Rnd_762x51_FNFAL";
   count = 5;
  };
  class _xx_HandGrenade_East
  {
   magazine = "HandGrenade_East";
   count = 2;
  };
  class _xx_SmokeShell
  {
   magazine = "SmokeShell";
   count = 1;
  };
  class _xx_SmokeShellRed
  {
   magazine = "SmokeShellRed";
   count = 1;
  };
 };
};
};

As you can see I want to make my AR to have stuff in his backpack which is TK_Assault_Pack_EP1 ofc without the transportmagazine it appears and so on but I want the unit to have backpack with stuff inside BUT as for the ??? I need a external class like Bag_Base_BAF but I could not find it anywhere, so could anyone please help me out how to perhaps get it to work?

Or actually correct me what I could be doing wrong here...

Thank you.

Share this post


Link to post
Share on other sites

bump if thats okay?

Really need this stuff >.<

Share this post


Link to post
Share on other sites

your on the right track, open up the BAF cfgvehicle and look at all the different british backpack load outs. it's pretty much you just inherit a backpack and make a new one ie BackpackSakai: bagbase

Then just set the default items for it like your doing.

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  

×