Jump to content
Sign in to follow this  
tydansie

Updating old equipment configs

Recommended Posts

Hey guys,

 

I'm trying to update an old vest config to the new config which uses the "hitpoint" instead of the armor value.

 

Below is the old config

	};
	class gear_platecarrier_OCP_01: V_PlateCarrier1_rgr
	{
		scope=2;
		author="KetsuCorp";
		picture="\GEARS_OCP\ui\OCP_ui.paa";
		model="\A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry";
		displayName="U.S. OCP Plate Carrier 01A, TN";
		hiddenSelections[]=
		{
			"camo"
		};
		hiddenSelectionsTextures[]=
		{
			"\GEARS_OCP\armor\platecarrier\OCP\data\platecarrier_OCP_05_co.paa"
		};
		class ItemInfo: VestItem
		{
			armor=30;
			containerclass="Supply500";
			mass=1;
			allowedSlots[]={"701","801","901"};
			passthrough=0.61000001;
			uniformmodel="\A3\Characters_F_EPA\BLUFOR\equip_b_vest_kerry";
			hiddenSelections[]=
			{
				"camo"
			};
		};
	};

I've looked at the "Character and gear encoding guide" which has the following:

 

/// Vest_Camo_Base config ///

class cfgWeapons
{
	class ItemCore;
	class VestItem;
	class Vest_Camo_Base: ItemCore
	{
		author = "Bohemia Interactive";
		scope = 0;
		weaponPoolAvailable = 1;
		allowedSlots[] = {901};			// This means the vest can be put into a backpack.
		picture = "\A3\characters_f\Data\UI\icon_V_BandollierB_CA.paa";
		model = "\A3\Weapons_F\Ammo\mag_univ.p3d";
		hiddenSelections[] = {"camo"};
		class ItemInfo: VestItem
		{
			uniformModel = "\A3\Characters_F\BLUFOR\equip_b_bandolier";
			hiddenSelections[] = {"camo"};
			containerClass = Supply0;
			mass = 0;

			class HitpointsProtectionInfo //more info at: https://community.bistudio.com/wiki/Arma_3_Soldier_Protection
			{
				class Body
				{
						hitPointName = "HitBody";
						armor = 0;
						passThrough = 1;
				};
			};
		};
	};
};

But what I can't understand (this is my firs time) is how to utilise this new code and update the old config? is anyone able to give me an example of what to change or how to update it and how it should look? 

 

Any help is much appreciated. 

Share this post


Link to post
Share on other sites

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

 

If you are missing parts, it can break the whole thing. It's hard to know what's the minimum needed to work. Some trial and error. Try using the entries that are missing, there are several more.

 

Also I can't remember if Vests are cfgWeapons or cfgVehicles.

Share this post


Link to post
Share on other sites

thanks mate, I've managed to get the Body Armor and Helmets updated, have to figure out the backpacks and how to put a capacity in them, at the moment they're unlimited capacity.

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  

×