Jump to content

Recommended Posts

So, I'm trying to create a mod to retexture NATO uniform, vest, and helmets. I'm only trying it with 3 textures and one helmet, uniform, and vest for each one. The thing is that only 2 uniforms are working, I don't know if there is something wrong on the code or the textures, I have 2 uniforms with the same sintaxis (Changing the Classnames) but one of them shows the Vanilla MC texture. Config.cpp below. I'm using the template code from AstartesGaming.

  Reveal hidden contents

.paa Files I'm trying so hard to make this work for my group, any help is highly appreciated.

Share this post


Link to post
Share on other sites

For CfgVehicles:

 

You are using the same model (b_soldier_01.p3d) for all three uniforms even though you commented that they should be the normal (Custom_Uniform), rolled-up (Custom_Uniform_SS) and t-shirt (Custom_Uniform_TShirt) variants. Because of that, the Custom_Uniform_TShirt uniform uses the wrong selection names (Camo1 and Camo2 do not exist for b_soldier_01.p3d)

 

To fix this, you will need to change the hiddenSelections[] array:

    class Custom_Uniform_TShirt: B_soldier_F {
        author = "Astartes"; 
        _generalMacro = "B_soldier_F"; 
        scope = 2; 
        displayName = "Custom Combat Life Saver"; 
        identityTypes[] = {"Head_NATO", "G_NATO_default"}; 
        genericNames = "NATOMen"; 
        faction = "Custom_Faction";
        model = "\A3\characters_F\BLUFOR\b_soldier_01.p3d"; //NATO Rolled Up Sleeves 
        uniformClass = "Custom_Camo_TShirt";
        backpack = "Custom_Backpack_Compact"; 
        hiddenSelections[] = {"Camo","Insignia"}; // <<<<<************* CHANGE THIS
        hiddenSelectionsTextures[] = {"Custom_Uniform\Data\SP_combat_co.paa"}; 
         weapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"}; 
        respawnWeapons[] = {"arifle_TRG20_ACO_Flash_F","Throw","Put"}; 
        magazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"}; 
        respawnMagazines[] = {"HandGrenade","HandGrenade","SmokeShell","SmokeShellGreen","Chemlight_green","Chemlight_green"};
        linkedItems[] = {"CUstom_Helmet2","Custom_Vest3","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; 
        respawnLinkedItems[] = {"CUstom_Helmet2","Custom_Vest3","ItemMap","ItemCompass","ItemWatch","ItemRadio"}; 
    };

However, this only applies if you want to have all three uniforms look the same with only their textures changed. If you want to make it a t-shirt then you need to use the right model path:

 

For the regular uniform with sleeves down, use this model path: \A3\characters_F\BLUFOR\b_soldier_01.p3d

For the rolled-up sleeves version, use this: \A3\characters_F\BLUFOR\b_soldier_03.p3d

For the tee version, use this one as its path: \A3\characters_F\BLUFOR\b_soldier_02.p3d

 

Also for CfgWeapons:

 

I would suggest not using b_soldier_01.p3d as your model file. This is not what you wear as your "uniform", it only represents the uniform item when it's dropped onto the ground. If you use b_soldier_01.p3d you'll see a headless soldier model in a T-pose on the ground which will look pretty strange.

  • 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

×