Jump to content
Cheitan

Yet another topic on HitPoint protection

Recommended Posts

Hi there.

We found in our modpack a vest which is not displaying proper protection values in virtual arsenal. At first I thought that the vest was misconfigured, and tried to tweak armor and passThrough values. But none of my tries changed anything to VA stats. After a few tests on AI, it looks like config values are correctly used for damaged calculation (3 to 4 5.56 shots at 20m, same for similar vests with properly displaying stats). Why is the arsenal not showing right values ? You can find bellow the code used :

class My_Vest : Vest_NoCamo_Base {
    descriptionShort="$STR_A3_SP_AL_IV";
    class ItemInfo: ItemInfo {
        uniformModel="\path\to_model.p3d";
        containerClass="Supply200";
        mass=15;
        passThrough=1; // looks like A3's old-way to do it. With or without this line doesn't change the result
        class HitpointsProtectionInfo {
            class Chest {
                HitpointName="HitChest";
                armor=25;
                PassThrough=0.30000001;
            };
            class Diaphragm {
                HitpointName="HitDiaphragm";
                armor=25;
                PassThrough=0.30000001;
            };
            class Abdomen {
                hitpointName="HitAbdomen";
                armor=25;
                passThrough=0.30000001;
            };
            class Body {
                hitpointName="HitBody";
                passThrough=0.30000001;
            };
        };
    };
};

This is almost a copy-paste of a working vest, only model and names are changed. (above names have been replaced by placeholders)

 

Do I miss something ?

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

×