Jump to content
Sign in to follow this  
tinymouse

Unable to assign correct side to custom faction

Recommended Posts

I've been working on this for about 72 hours and after reading over various documentation and forms I put together a config.cpp file that does display my custom faction and the unit with all of this equipment, but the side refuses to cooperate.

changing side to side = 2; in CfgFactionClasses does nothing, and changing the side in the CfgVehicle does work but then breaks my test unit. I've looked over every form I could find and tore apart other mods and am still unable to fix this. any help would be greatly appreciated. 

class CfgPatches
{
    class unit_config
    {
        units[] = {
            "CusFac_Riffleman",

        };
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = {};
    }
};
class CfgFactionClasses
{//Faction Class for units ie Nato --> PMC
    class CusFac
    {
        displayName = "PMC"; // Faction name but will be changed by Editor Categorie
        author = "Kebable";
        priority = 0;
        side = 2;
    }
};
class CfgVehicleClasses
{//subclass for untis ie Nato --> PMC --> Men --> UNIT (outdated game required use CfgEditorSubcategories
    class CusFac_Units
    {
        displayName = "Car2";
    }
};
class CfgEditorCategories
{
    class CusFac_Main_PMC
    {
        displayName = "PMC2";
    }
};
class CfgEditorSubcategories
{// Sub cat maker for editor use this instead of CfgVehicleClasses
    class CusFac_Sub_Men
    {
        displayName = "Car";
    }
};
class CfgVehicles 
{
    class B_Soldier_base_F;
    class CusFac_Riffleman:B_Soldier_base_F
    {
        _generalMacro = "CusFac_Riffleman";
        scope = 2;
        displayName = "Riffleman";
        faction = "CusFac"; //testing has shown this does nothing, SIDE is effeccted by something else
        VehicleClass = "CusFac_units"; //not used but still required
        editorCategory = "CusFac_Main_PMC"; //sub category for unit
        editorSubcategory = "CusFac_Sub_Men"; //should be used with all assets
        nakedUniform = "U_BasicBody";
        uniformClass = "U_B_CombatUniform_mcam_tshirt";
        backpack = "B_AssaultPack_khk";

        identityTypes[] = {"Head_NATO","LanguageENG_F","G_NATO_default"};


        linkedItems[] = {"V_PlateCarrier1_rgr","H_HelmetB","ItemMap","ItemRadio","ItemCompass","ItemWatch","NVGoggles"};
        respawnlinkedItems[] = {"V_PlateCarrier1_rgr","H_HelmetB","ItemMap","ItemRadio","ItemCompass","ItemWatch","NVGoggles"};

        weapons[] = {"arifle_MX_ACO_pointer_F","hgun_P07_F"};
        respawnWeapons[] = {"arifle_MX_ACO_pointer_F","hgun_P07_F"};

        magazines[] = {"30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag","30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag"};
        respawnMagazines[] = {"30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag","30Rnd_65x39_caseless_mag","16Rnd_9x21_Mag"};

    }
};

 

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  

×