Jump to content
Sign in to follow this  
Mladja-ArmASerbia

adding weapon to backpac

Recommended Posts

Its possible to add magazine of launcher at backpack in config.cpp?

I tried through eventhandlersm but nothing happens.

class EventHandlers

{

init = (unitBackpack this) addmagazineCargo ["136mm_Bumbar"];

};

};

Theres no any errors but magazine is not at backpack.

Share this post


Link to post
Share on other sites

Have you tried adding the class TransportMagazines{}; child class to your backpack class.

Share this post


Link to post
Share on other sites

This is the original base class for the backpacks, class TransportMagazines{}; is empty.

class Bag_Base: ReammoBox
{
	scope = 1;
	class TransportMagazines{};
	class TransportWeapons{};
	isbackpack = 1;
	reversed = 1;
	mapSize = 2;
	vehicleClass = "Backpacks";
	allowedSlots[] = {901};
	model = "\A3\weapons_f\Ammoboxes\bags\Backpack_Small";
	displayName = "$STR_A3_Bag_Base0";
	picture = "\A3\Weapons_F\Ammoboxes\Bags\data\ui\backpack_CA.paa";
	icon = "iconBackpack";
	transportMaxWeapons = 1;
	transportMaxMagazines = 13;
	class DestructionEffects{};
	hiddenSelections[] = {"Camo"};
	hiddenSelectionsTextures[] = {"\A3\weapons_f\ammoboxes\bags\data\backpack_small_co.paa"};
	maximumLoad = 0;
};

Inside your backpack class add something like this (I'm not sure of correct magazine classnames).

class TransportMagazines
	{
		class _xx_136mm_Bumbar
		{
			magazine = "136mm_Bumbar";
			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  

×