Jump to content
Sign in to follow this  
tallionlp

Clothing Retexture Help

Recommended Posts

Hey,

can i do this?

create file CfgClothing.hpp in Rootfolder of the Mission.

put in:

class CfgClothing {

class U_Rangemaster {

texture = "\textures\cop\cop_uniform.paa";

displayName = "Police Uniform";

};

};

then in description.ext:

#include CfgClothing.hpp

will this work?

Edited by tallionlp

Share this post


Link to post
Share on other sites

Hey,

can i do this?

create file CfgClothing.hpp in Rootfolder of the Mission.

put in:

class CfgClothing {

class U_Rangemaster {

texture = "\textures\cop\cop_uniform.paa";

displayName = "Police Uniform";

};

};

then in description.ext:

#include CfgClothing.hpp

will this work?

 

No.

 

But you can put:

 

this setObjectTextureGlobal [0, "\textures\cop\cop_uniform.paa"];

 

in the init of your cop unit(s).....

Share this post


Link to post
Share on other sites

No.

 

But you can put:

 

this setObjectTextureGlobal [0, "\textures\cop\cop_uniform.paa"];

 

in the init of your cop unit(s).....

and if i put it into the mod.cpp of a serverside mod with:

class CfgClothing {

class U_Rangemaster {

texture = "Altis_Life.Altis\textures\cop\cop_uniform.paa";

displayName = "Police Uniform";

};

};

I want to find a new way to texture this stuff

Share this post


Link to post
Share on other sites

and if i put it into the mod.cpp of a serverside mod with:

class CfgClothing {

class U_Rangemaster {

texture = "Altis_Life.Altis\textures\cop\cop_uniform.paa";

displayName = "Police Uniform";

};

};

I want to find a new way to texture this stuff

 

Then the players need to have the mod to get the texture.....

Share this post


Link to post
Share on other sites

Then the players need to have the mod to get the texture.....

But the texture is in the mission they download when joining Server

Share this post


Link to post
Share on other sites

But the texture is in the mission they download when joining Server

 

Yes. I agree that it should work. But unless they change something in the engine, it doesn't.....

Share this post


Link to post
Share on other sites

But the texture is in the mission they download when joining Server

 

So just to be clear, I'm guessing you want to have a police uniform that doesn't require users downloading a mod?

So you're including the uniform colour map in the mission file and now you want to know how to apply the texture to a unit/player?

 

In which case the easiest way is probably what Kylana/Dredd said, either putting something along the lines of 

this setObjectTextureGlobal [0, "\textures\cop\cop_uniform.paa"];

In the init of each unit you want to use the texture. Or having a script to replace the texture based on the uniform class name.

 

Also as above, when you're doing the directory you don't need to list the file name such as 

texture = "Altis_Life.Altis\textures\cop\cop_uniform.paa";

"Altis_Life.Altis" can be deleted

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  

×