Jump to content
Sign in to follow this  
zeotrope

Adding TITAN ammo to a BACKPACK via CONFIG.CPP

Recommended Posts

Hi All,

Please take a look at the code below. I am trying to add a TITAN AT rocket to my BACKPACK but I dont seem to have any more than 1. Does the TITAN (Compact) spawn with one in the barrel?

Not sure what to do. Is the ASSAULT backpack too small? Do I have too much in it?

Zeo

enum {
   destructengine = 2,
   destructdefault = 6,
   destructwreck = 7,
   destructtree = 3,
   destructtent = 4,
   stabilizedinaxisx = 1,
   stabilizedinaxesxyz = 4,
   stabilizedinaxisy = 2,
   stabilizedinaxesboth = 3,
   destructno = 0,
   stabilizedinaxesnone = 0,
   destructman = 5,
   destructbuilding = 1
};

class CfgPatches { 
   class Tacops_Soldier2 { 
       units[] = {}; 
       weapons[] = {}; 
       requiredVersion = 0.1; 
       requiredAddons[] = {"A3_Characters_F", "A3_Characters_F_BLUFOR"}; 
   }; 
}; 

class CfgVehicles { 

   class B_Soldier_base_F; 
   class B_soldier_AT_F;

   class Tacops_Soldier2_E : B_soldier_AT_F { 
       _generalMacro = "B_soldier_AT_F";
       scope = 2; 
       displayName = "Tac-Ops AT Soldier"; 
       nakedUniform = "U_BasicBody";
       uniformClass = "Example_CombatUniform_mcam2";
       hiddenSelections[] = {"Camo"}; 
       hiddenSelectionsTextures[] = {"tacops_uni_gen2\clothes\data\uni_gen2.paa"}; 
       model = "\A3\Characters_F\blufor\b_soldier_02.p3d";
       icon = "iconManAT";


       Backpack = "Gen_Assault_D";

items[] = {"FirstAidKit"};

       weapons[] = {"LMG_Mk200_MRCO_F","launch_B_Titan_short_F","throw","put","Binocular"};
respawnweapons[] = {"LMG_Mk200_MRCO_F","launch_B_Titan_short_F","throw","put","Binocular"};

magazines[] = {
		"200Rnd_65x39_cased_Box",
		"200Rnd_65x39_cased_Box",
		"200Rnd_65x39_cased_Box",
		"HandGrenade",
		"HandGrenade",
		"Titan_AT",
		"Titan_AT",
		"Titan_AT",
	      };

Respawnmagazines[] = {
		"200Rnd_65x39_cased_Box",
		"200Rnd_65x39_cased_Box",
		"200Rnd_65x39_cased_Box",
		"HandGrenade",
		"HandGrenade",
		"Titan_AT",
		"Titan_AT",
		"Titan_AT",
	      };


              LinkedItems[] = {"ItemGPS","Tacops_NVGoggles","ItemMap","ItemCompass","itemRadio","ItemWatch","Tacops_Helmet_at1","Vest_tacops_D"};

       respawnLinkedItems[] = {"ItemGPS","Tacops_NVGoggles","ItemMap","ItemCompass","itemRadio","ItemWatch","Tacops_Helmet_at1","Vest_tacops_D"};



   }; 

}; 

class cfgWeapons { 
   class Uniform_Base; 
   class UniformItem; 

   class Example_CombatUniform_mcam2 : Uniform_Base { 
       scope = 2; 
       displayName = "Tacops Soldier 2"; 
       picture = "\A3\characters_f\data\ui\icon_U_B_CombatUniform_mcam_ca.paa"; 

       class ItemInfo : UniformItem { 
           uniformModel = "-"; 
           uniformClass = "Tacops_Soldier2_E"; //would be same as our made soldier class 
           containerClass = "Supply20"; //how much it can carry 
           mass = 80; //how much it weights 
       }; 
   }; 
}; 

Share this post


Link to post
Share on other sites

Where is your backpack class?

Here is a backpack class from the game.

class B_AssaultPack_mcamo_AT: B_AssaultPack_mcamo
{
	scope = 1;
	class TransportMagazines
	{
		class _xx_Titan_AT
		{
			magazine = "Titan_AT";
			count = 2;
		};
	};
};

Edited by surpher
Added backpack class.

Share this post


Link to post
Share on other sites

sorry to dig up an old thread but can we come back to this? I want to use a kitbag mcamo on 3 seperate soldiers to store:

1. A medikit

2. A toolkit

3. 2 explosive charges and an explosive satchel.

How would I go about doing this?

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  

×