Jump to content
Sign in to follow this  
shinkicker

hiddenSelections

Recommended Posts

Hello,

I hope this is the right section, as its in regards to models and textures it seemed like the best home for my question.

I have used hiddenSelections quite a lot to successfully re-texture models while sticking well within the usage guidelines of BI.

Recently I started to work on a re-texture of a the camping tent and so I found the tent_co.paa file, made a greyscale, applied my texture to the file and then placed it into an addon folder.

So I now have

My_Tent\tent_co.paa

My_Tent\config.cpp

My config.cpp > tent class:

class CfgVehicles
{
class Land_A_tent;
class My_Tent: Land_A_tent
{
	scope = 2;
	vehicleClass = "My_Tent";
	faction = "BIS_TK_CIV";
	destrType = "DestructTent";
	armor = 10;
	//model = "\CA\Misc3\A_tent";
	displayName = "My tent.";
	icon = "\Ca\misc3\data\Icons\icon_Atent_ca.paa";
	mapSize = 3;
	hiddenSelections[] = {"camo"};
	hiddenSelectionsTextures[] = {"My_Tent\data\tent_co.paa"};
};
};

The model shows up under the editor / in game, but the former texture is still there and there is no change?

I have used this method before to good effect, so I can't see what might be different.

Is it because there are no hidden selections in the original model?

 class Land_A_tent: House
{
 scope = 2;
 vehicleClass = "Military";
 destrType = "DestructTent";
 armor = 10;
 model = "\CA\Misc3\A_tent";
 displayName = "$STR_DN_A_TENT";
 icon = "\Ca\misc3\data\Icons\icon_Atent_ca.paa";
 mapSize = 3;
};

Share this post


Link to post
Share on other sites
Is it because there are no hidden selections in the original model?

Pretty much this exactly.

Not all of the BI content (especially smaller things like this) have hidden selections defined. If they dont have them (they are part of the model.cfg and baked into the p3d during binarize) then you're out of luck I'm afraid.

Share this post


Link to post
Share on other sites
Pretty much this exactly.

Not all of the BI content (especially smaller things like this) have hidden selections defined. If they dont have them (they are part of the model.cfg and baked into the p3d during binarize) then you're out of luck I'm afraid.

Ahh Dam. Well its off to modelling tents we go :)

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  

×