Jump to content
Sign in to follow this  
Learthane

Vest Armor Values

Recommended Posts

Hello,

 

Just recently I began to do some retextures of the Arma 3 vests, uniforms, and headgear.  I am able to get the vest to appear (meaning i don't have an invisible item on me) when i use the code 

   class Tigerstripe_Carrier_Lite: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Tigerstripe Platecarrier Lite"; 
        picture = "\A3\characters_f\Data\UI\icon_v_plate_carrier_1_ca.paa"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"7SOG_Gear\Data\Tigerstripe_Carrier_Rig_co.paa"}; 
        class ItemInfo: VestItem 
        { 
            uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            containerClass = "Supply120"; 
            mass = 80; 
            armor = "30"; 
            passThrough = 0.25; 
            hiddenSelections[] = {"camo"}; 
        }; 
    };

but recently I did some poking around on the forums and found another post that stated the new way armor values were defined in the config. To reference the forum post, it is here (https://forums.bistudio.com/topic/185818-vest-has-no-armor-in-game-config-help/). With the new code my config is currently setup like so, 

    //************************************************************************************************************************************************************************************************
    //*****             Vests                *********************************************************************************************************************************************************
    //************************************************************************************************************************************************************************************************
    class VestItem; 
    class Vest_Camo_Base: ItemCore 
    { 
        class ItemInfo; 
    }; 
     
    class Tigerstripe_Carrier_Rig: Vest_Camo_Base 
    { 
        scope = 2; 
        displayName = "Tigerstripe Platecarrier"; 
        picture = "\A3\characters_f\Data\UI\icon_v_plate_carrier_2_ca.paa"; 
        model = "A3\Characters_F\BLUFOR\equip_b_Vest01.p3d"; 
        hiddenSelections[] = {"Camo"}; 
        hiddenSelectionsTextures[] = {"7SOG_Gear\Data\Tigerstripe_Carrier_Rig_co.paa"}; 
		class ItemInfo: ItemInfo
		{
			class HitpointsProtectionInfo
			{
				class whatever1 //use any name you want
				{
					hitpointName	= "HitChest"; //enter protected hit point class name from soldier Hitpoints class here
					armor		= 60; //enter desired armor value for hit point referenced above
					passThrough	= 0.3; //fraction of damage passed to the total damage through this hit point
				};
			};
			mass = 80; //enter desired weight
			containerClass = "Supply140"; //enter desired capacity
		};
	};
	
	class Tigerstripe_Carrier_Lite: Vest_Camo_Base 
         { 
            scope = 2; 
            displayName = "Tigerstripe Platecarrier Lite"; 
            picture = "\A3\characters_f\Data\UI\icon_v_plate_carrier_1_ca.paa"; 
            model = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
            hiddenSelections[] = {"Camo"}; 
            hiddenSelectionsTextures[] = {"7SOG_Gear\Data\Tigerstripe_Carrier_Rig_co.paa"}; 
            class ItemInfo: VestItem 
            { 
                uniformModel = "A3\Characters_F\BLUFOR\equip_b_Vest02.p3d"; 
                containerClass = "Supply120"; 
                mass = 80; 
                armor = "30"; 
                passThrough = 0.25; 
                hiddenSelections[] = {"camo"}; 
             }; 
        };

Now my issue is that the Tigerstripe Platecarrier won't appear when i equip it in virtual arsenal, but the Tigerstripe Platecarrier Lite will and neither of the armor values (which are essentially zero) are changing for the vests. If anyone could enlighten me to what I am doing wrong that would be great. 

 

Thanks

Share this post


Link to post
Share on other sites

I would add the ItemInfo:VestItem from the lite version to your first vest.

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  

×