Jump to content

Recommended Posts

So, I am trying to retexture the vanilla black Helicopter crew helmet. I can not seem to get the retexture to populate once i go into the editor to check. Could someone give my config a look over and let me know what I am doing wrong? Thanks in advance.

 

 

 

class CfgWeapons
{
    class H_CrewHelmetHeli_B;
    class HeadgearItem;
    class custom_helmet_heli_blk_co :     H_CrewHelmetHeli_B
    {
        author = "Bohemia Interactive, Billy";
        scope = 2;
        weaponPoolAvailable = 1;
        displayName = "Beavers HGU-56";
        picture = "\A3\characters_f\Data\UI\icon_H_helmet_plain_ca.paa";
        model = "\A3\Characters_F\Common\headgear_helmet_heli.p3d";
        hiddenSelections[] = { "camo" };
        hiddenSelectionsTextures[] = { "\RaiderCustoms\Data\custom_helmet_heli_blk_co.paa" };
        class ItemInfo : HeadgearItem
        {
            mass = 40;
            uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_plain";
            modelSides[] = { TCivilian, TWest };
            hiddenSelections[] = { "camo" };

            // if defined, this headgear item gains functionality (visual modes) of given NVG item and will occupy its slot as well.
            // Currently works only for Headgear + NVG + Radio item combinations.
            // subItems[] = { "Integrated_NVG_F" };

            class HitpointsProtectionInfo // more info at: https://community.bistudio.com/wiki/Arma_3:_Soldier_Protection
            {
                class Head
                {
                    hitPointName = "HitHead";
                    armor = 6;
                    passThrough = 0.5;
                };
            };
        };
    };
};

Share this post


Link to post
Share on other sites

There are a few errors in your config from first glance and maybe a few things not required for a simple retexture

 

I think the main error is defining the wrong model...

model = "\A3\Characters_F\Common\headgear_helmet_heli.p3d";

Should be...

model="A3\Characters_F\Common\headgear_helmet_heli_shield";

 

There are also a few errors in your class ItemInfo: HeadgearItem section...

Again your defining the wrong uniformModel...

uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_plain";

Should be...

uniformModel="A3\Characters_F\Common\headgear_helmet_heli_shield";

In any case, for a simple retexture I don't think you need the class ItemInfo: HeadgearItem section in your config at all

And unless you want to edit new values in HitPointsProtectionInfo then you don't need this in your config either as it will inherit those values from H_CrewHelmetHeli_B.

 

A simplified version might look something like this...

class CfgWeapons
{
        class H_CrewHelmetHeli_B;
        class custom_helmet_heli_blk_co: H_CrewHelmetHeli_B
        {
                author="Bohemia Interactive, Billy";
                scope=2;
                weaponPoolAvailable=1;
                displayName="Beavers HGU-56";
                picture="\A3\Characters_F\data\ui\icon_H_Crew_Helmet_Heli_B_CA.paa";
	        model="A3\Characters_F\Common\headgear_helmet_heli_shield";
                hiddenSelectionsTextures[]=
                { 
                        "\RaiderCustoms\Data\custom_helmet_heli_blk_co.paa"
                };
        };
};

 

Share this post


Link to post
Share on other sites

It also helps to post the CfgPatches section of your config too. :rthumb:

Share this post


Link to post
Share on other sites
9 hours ago, EO said:

There are a few errors in your config from first glance and maybe a few things not required for a simple retexture

 

I think the main error is defining the wrong model...


model = "\A3\Characters_F\Common\headgear_helmet_heli.p3d";

Should be...


model="A3\Characters_F\Common\headgear_helmet_heli_shield";

 

There are also a few errors in your class ItemInfo: HeadgearItem section...

Again your defining the wrong uniformModel...


uniformModel = "\A3\Characters_F\BLUFOR\headgear_b_helmet_plain";

Should be...


uniformModel="A3\Characters_F\Common\headgear_helmet_heli_shield";

In any case, for a simple retexture I don't think you need the class ItemInfo: HeadgearItem section in your config at all

And unless you want to edit new values in HitPointsProtectionInfo then you don't need this in your config either as it will inherit those values from H_CrewHelmetHeli_B.

 

A simplified version might look something like this...


class CfgWeapons
{
        class H_CrewHelmetHeli_B;
        class custom_helmet_heli_blk_co: H_CrewHelmetHeli_B
        {
                author="Bohemia Interactive, Billy";
                scope=2;
                weaponPoolAvailable=1;
                displayName="Beavers HGU-56";
                picture="\A3\Characters_F\data\ui\icon_H_Crew_Helmet_Heli_B_CA.paa";
	        model="A3\Characters_F\Common\headgear_helmet_heli_shield";
                hiddenSelectionsTextures[]=
                { 
                        "\RaiderCustoms\Data\custom_helmet_heli_blk_co.paa"
                };
        };
};

 

 

9 hours ago, EO said:

It also helps to post the CfgPatches section of your config too. :rthumb:

 

Thank you alot! I will edit it and give it a try, I am very new and trying to learn as best as I can. 

  • Like 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

×