Jump to content
Sign in to follow this  
Belbo

Change side of uniform

Recommended Posts

Hi!

 

I'm currently trying to create a mod that adds some of Tryk's Uniforms to a new faction. The uniforms work perfectly well if the units are configured as blufor, but for the life of mine I can't get them to work on any other side. I suppose that's because these uniforms are tied to side blufor. So I try to change the side of the uniforms.

This is my cfgWeapons currently:

#define sideMacro_ind    scope = 0;\
                    class ItemInfo: UniformItem {\
                        uniformModel = "-";\
                        uniformClass = "adv_ind_isit_infantry_base_F";\
                        containerClass = "Supply60";\
                        mass = 40;};

class UniformItem;

class TRYK_U_taki_BLK;

class opf_TRYK_U_taki_BLK: TRYK_U_taki_BLK
{
    sideMacro_ind
};

But that leads to the unit (on side independent) having no uniform at all (only an untextured placeholder as it seems).

 

How would I go about using a uniform that's only available to blufor units to be available to units from other sides as well?

 

Share this post


Link to post
Share on other sites

I believe you need to also use the 'modelsides' config parameter.

		modelSides[] = {0,1,2,3};

Where:

0 = OPFOR

1 = BLUFOR

2 = INDEPENDANT

3 = CIVILIAN

(I think, don't quote me on those I could be wrong).

 

So for a unit/uniform that you want to be usable by Independent you'd use:

modelSides[] = {2,3};

as most uniforms seem to be coded so civs can wear them too.

 

EDIT: You may need to do this for the uniform AND the unit, as the two are linked.

  • Like 2

Share this post


Link to post
Share on other sites

Thank you very much! Works now! :)

  • 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
Sign in to follow this  

×