Jump to content
beno_83au

Adding Custom Liveries To Vanilla Models

Recommended Posts

Hello everyone. I've spent the day working out how to add a custom livery to the A-164, that is also available within the model config's textureList[] and Eden's Vehicle Appearance editor, allowing easy selection between the default livery and my own. The end-state is that I can use GOMs Aircraft Loadout script by spawning a single plane that will allow me to change between custom/default liveries as opposed to having separate models for each re-texture. Success!!

 

The way I achieve this is to create a new mod/config.cpp by piggy-backing off the vanilla model to add my own textures, which seemed to be the way to do it. In the config file I've also included the default liveries, so my concern is that this may be crossing some lines, and having never dealt with addon/model/config editing before I figured I'd ask. Config.cpp below:

 

class CfgPatches
{
    class MIL_ACS_Liveries {
		name = "MIL AirCombatSystem Liveries";
		author = "Millenwise";
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Air_F_EPC"};
    };
};

class cfgVehicles
{
    class B_Plane_CAS_01_dynamicLoadout_F;
    class B_Plane_CAS_01_dynamicLoadout_F_MIL_ACS_Liveries: B_Plane_CAS_01_dynamicLoadout_F
	{
		_generalMacro = "B_Plane_CAS_01_dynamicLoadout_F";
		scope = 2;
		side = 1;
		faction = "BLU_F";
		displayName="A-164 Wipeout (ACS Liveries)";
		crew = "B_Fighter_Pilot_F";
		hiddenSelections[]=
		{
			"Camo_1",
			"Camo_2"
		};
		hiddenSelectionsTextures[]=
		{
			"A3\Air_F_EPC\Plane_CAS_01\Data\plane_cas_01_ext01_co.paa",
			"A3\Air_F_EPC\Plane_CAS_01\Data\plane_cas_01_ext02_co.paa"
		};
		typicalCargo[] = {"B_Fighter_Pilot_F"};
		availableForSupportTypes[] = {"CAS_Bombing"};
			
		class TextureSources
		{
			class Grey
			{
				displayName="Grey";
				author="$STR_A3_Bohemia_Interactive";
				textures[]=
				{
					"A3\Air_F_EPC\Plane_CAS_01\Data\plane_cas_01_ext01_co.paa",
					"A3\Air_F_EPC\Plane_CAS_01\Data\plane_cas_01_ext02_co.paa"
				};
				factions[]=
				{
					"BLU_F"
				};
			};
			class CrackedLava
			{
				displayName="Cracked Lava";
				author="Millenwise";
				textures[]=
				{
					"MIL_ACS_Liveries\Data\A164_CrackedLava_1_01.paa",
					"MIL_ACS_Liveries\Data\A164_CrackedLava_1_02.paa"
				};
				factions[]=
				{
					"BLU_F"
				};
			};
		};
		textureList[]=
		{
			"Grey",
			1,
			"CrackedLava",
			0
		};
	};
};

 

Obviously, I have retained BI as the author of their own livery.

 

Thanks for any input.

  • Like 2

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

×