Jump to content
Sign in to follow this  
champ-1

Retexturing problem and hidden selections

Recommended Posts

I'm trying to retexture CSAT RPG-42. I'm using hidden selections for that, but I have very basic understanding how they work.

I don't know if name of hidden selection matters. Are they have to be predefined in RTM file? How do I know which hidden selections are available for the weapon?

Please, shed some light on how it works.

Share this post


Link to post
Share on other sites

I doubt the RPG-42 has hiddenSelections, not many weapons do. You could open the model in a text editor and search for "camo".

Share this post


Link to post
Share on other sites

The name of the selection will matter.

The hiddenSelections array in the weapon or vehicle's config refers to selections in the model of vertices and faces.

The hiddenselectionstextures array in the weapon/vehicle config, or setObjectTexture/setObjectTextureGlobal commands, define what texture to apply to which of the entries in the hiddenSelections array in the weapon or vehicle's config.

As you are trying to retexture one of BI's models it may be worth trying: "camo", "camo1", or "camo2" in your hiddenSelections array as these appear to be the norm in other cases where hiddenSelections exist in weapons.

Note that it may be the case that none of these selections are defined in the model and it will simply not be possible to retexture the weapon through hiddenSelections.

Edited by ToadBall

Share this post


Link to post
Share on other sites

Thanks, guys. I guess RPG doesn't have any selections.

You could open the model in a text editor and search for "camo".
Do you mean .RPT file for that weapon?

Share this post


Link to post
Share on other sites
Thanks, guys. I guess RPG doesn't have any selections.

Do you mean .RPT file for that weapon?

No the model file, it will look unreadable but you can find strings like 'named selections' and texture paths.

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  

×