Jump to content
Sign in to follow this  
greywolf907

Config.cpp for addon

Recommended Posts

I have searched around and can't find a answer to my question. I have made a set of custom chopper skins for my unit and would like to have it show a category under blufor in the editor as with other mods like massi units for example where it shows the name and the small pic. this is what I have so far but no luck.

class CfgPatches {

class TIER1_HELI_1{

units[] = {};

weapons[] = {};

requiredAddons[] = {};

};

};

class CfgMarkers {

class TIER1_Marker {

name = "TIER1 Flag";

icon = "T1ORCA\flag\TIER1.paa";

texture = "T1ORCA\flag\TIER1.paa";

color[] = {1,1,1,1};

size = 32;

scope = 1;

shadow = 0;

markerClass = NATO_BLUFOR;

side = TWest;

};

};

class CfgFactionClasses {

class ATACS_units {

author = "Zero";

displayName = "TIER1 Camouflage";

priority = 1;

side = 1;

icon = "T1ORCA\flag\TIER1.paa";

flag = "T1ORCA\flag\TIER1.paa";

};

};

class CfgVehicles {

class O_Heli_Light_02_F;

class TIER1_HELI_1a : O_Heli_Light_02_F {

displayName = "PO-30 Orca (TIER1 BLU DIGI)";

faction = "BLU_F";

hiddenSelectionsTextures[] = {"\T1ORCA\Data\ORCA.paa"};

};

class TIER1_HELI_1b : O_Heli_Light_02_F {

displayName = "PO-30 Orca (TIER1 SNOW DIGI)";

faction = "BLU_F";

hiddenSelectionsTextures[] = {"\T1ORCA\Data\ORCA1.paa"};

};

class TIER1_HELI_1c : O_Heli_Light_02_F {

displayName = "PO-30 Orca (TIER1 WOODLAND)";

faction = "BLU_F";

hiddenSelectionsTextures[] = {"\T1ORCA\Data\ORCA2.paa"};

};

class TIER1_HELI_1d : O_Heli_Light_02_F {

displayName = "PO-30 Orca (TIER1 DESERT)";

faction = "BLU_F";

hiddenSelectionsTextures[] = {"\T1ORCA\Data\ORCA3.paa"};

};

};

I have the logo pic I would like to use in the flags folder and named correctly any help would be appreciated thanks.

Share this post


Link to post
Share on other sites

class CfgVehicleClasses
{
       class Group_Name
       {
               displayName = "Retextured Air Units"; // Rename to what you want the sub group of the faction will be. You can have multiple subfactions (VehicleClasses) as long as the class name of the VehicleClass is different. Makes it work with zeus
       };
};

Then add VehicleClass = Group_Name; to your vehicles. Change it to what ever you have defined in the Vehicle Classes

Share this post


Link to post
Share on other sites

add the following before each instance of hiddenSelectionsTextures

hiddenSelections[] = {"camo1"};

Also, looks like you're creating a faction called TIER1 Camouflage. If you want the choopers to be in that faction then you need to change BLU_F to ATACS_units.

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  

×