Jump to content
Sign in to follow this  
strohvogel

Assign textures in config [RHS]

Recommended Posts

Hey guys,

 

i'm currently modifiying some BI-missions to suit my needs. Basically i just want to assign a different texture to an Mi-24P. The texture is included in RHS and even is an option to assign in the editor. Sadly, opening them in the editor to assign the textures there is not an option, since importing the missions seems to break them somehow. Since i do need to create new config entrys anyhow, i tried to assign the texture there as well. This is my code

 

	class RHS_Mi24P_vvsc_SVG: RHS_Mi24P_vvsc {

		side = 2;
		faction = "rhssaf_faction_airforce";
		crew = "rhssaf_airforce_pilot_transport_heli";
		typicalCargo[] = {"rhssaf_airforce_pilot_transport_heli","rhssaf_airforce_pilot_transport_heli"};
		hiddenSelections[] = {"camo1","camo2","exhaust","tail_decals","n1","n2","moving_map"};
		hiddenselectionstextures[] = 
			{
				"\rhsafrf\addons\rhs_a2port_air\mi35\data\mi35_001_co.paa",
				"\rhsafrf\addons\rhs_a2port_air\mi35\data\mi35_002_co.paa",
				"rhsafrf\addons\rhs_a2port_air\Mi17\data\camo\mi8_det_g_camo1_co.paa"};
			};
		
	 };

I got the texture-filepaths from the textureSources subclass of RHS_Mi24P_vvsc.

 

I can place the chopper just fine, but it still spawns with the default russian textures and i can't figure out why.
Help would be grately appreciated

 

Share this post


Link to post
Share on other sites

VVSC variants are using scripted camo randomization - try using either vvs variant as a base or type
 

        class EventHandlers : EventHandlers
        {
            class RHS_EventHandlers : RHS_EventHandlers
            {
                init = "_this call rhs_fnc_air_init;";
            };
        };

in you config (note the inheritance - without it will break a lot of RHS scripts)

  • Thanks 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  

×