Jump to content
Sign in to follow this  
ronen rond

Vest config

Recommended Posts

Hey guys i looking for some help im making a vest with a custom p3d and im trying to give it some protection but with no luck

 mass = 15;
            armor = "1000";
            passThrough = 2;

im usingthe uni vest Vest_Camo_Base 

Share this post


Link to post
Share on other sites

Hey guys i looking for some help im making a vest with a custom p3d and im trying to give it some protection but with no luck

 mass = 15;
            armor = "1000";
            passThrough = 2;

im usingthe uni vest Vest_Camo_Base 

That code would have worked if you'd made the vest 2 years ago. However, times have changed and so has the way PPE is coded:

 

Check the 'Armoured Vest' section of the link.

Share this post


Link to post
Share on other sites

Something like this 

class CfgPatches {
	class 4_IB {
		requiredAddons[] = {"A3_Characters_F"};
		requiredVersion = 1.0;
		units[] = {};
		weapons[] = {};
	};
};

class cfgWeapons
{
    class ItemCore;
    class Vest_Camo_Base: ItemCore
    {
        class ItemInfo;
    };
    class V_vest_new: Vest_Camo_Base
    {
        author = "Splendid Modder";
        scope = 2;
        displayName = "New Vest";
        picture = "\A3\characters_f\Data\UI\icon_V_BandollierB_CA.paa";
        model = "vest\VEST.p3d";
        hiddenSelectionsTextures[] = {"vest\data\VEST.paa"};
        class ItemInfo: ItemInfo
        {
            uniformModel = "vest\VEST.p3d";          
            containerClass = Supply80;     
            mass = 15;
            class HitpointsProtectionInfo
			{
				class Neck
				{
					hitpointName	= "HitNeck"; // reference to the hit point class defined in the man base class
					armor		= 8; // addition to armor of referenced hitpoint
					passThrough	= 0.5; // multiplier of base passThrough defined in referenced hitpoint
				};
				class Arms
				{
					hitpointName	= "HitArms";
					armor		= 8;
					passThrough	= 0.5;
				};
				class Chest 
				{
					hitpointName	= "HitChest"; 
					armor		= 24; 
					passThrough	= 0.1; 
				};
				class Diaphragm
				{
					hitpointName	= "HitDiaphragm";
					armor		= 24;
					passThrough	= 0.1;
				};
				class Abdomen
				{
					hitpointName	= "HitAbdomen"; 
					armor		= 24;
					passThrough	= 0.1;
				};
				class Body
				{
					hitpointName	= "HitBody";
						passThrough	= 0.1;
            };
		};
    };
};
            

Share this post


Link to post
Share on other sites

What exactly won't work? Narrow it down. Is it in the game even? Let's start there...

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  

×