Jump to content
Shyska

Assistance with TPvP deathmatch loadouts

Recommended Posts

I'm having an bit of trouble with with scripting a config for team loadouts. I'm not sure what I'm  doing wrong with my code but Bluefor is able to access the respawn loadouts where as Opfor is not. I'm rather new to the forums and I don't know what tags I should apply to this post, any help will be greatly appreciated. 🙂

this is my config. 

Description.ext:
 

//START OF WEST RESPAWN LOADOUTS!

respawnTemplatesWest[] = {"MenuPosition", "MenuInventory"};

// Player loadouts
class CfgRoles
{
        class Assault
    {
        displayName = "Assault";
        icon = "a3\missions_f_exp\data\img\classes\assault_ca.paa";
    };
        class Defense
    {
        displayName = "Defense";
        icon = "a3\missions_f_exp\data\img\classes\assault_ca.paa";
    };
        class Support
    {
        displayName = "Support";
        icon = "a3\missions_f_exp\data\img\classes\assault_ca.paa";
    };

};


class CfgRespawnInventory
{
    //*******************
    // US EQUIPMENT
    //*******************
    class Alpha1
    {
        displayName = "Pilot"; // Name visible in the menu
        icon = "a3\missions_f_exp\data\img\classes\assault_ca.paa"; // Icon displayed next to the name
        role = "Support";

        // Loadout definition, uses same entries as CfgVehicles classes
        weapons[] = {
            "vn_xm177_short",
        };
        magazines[] = {
            "vn_m16_20_t_mag",
            "vn_m16_20_t_mag",
            "vn_m16_20_t_mag",
            "vn_m16_20_t_mag",
            "vn_m16_20_t_mag",
            "vn_m16_20_t_mag",
            "vn_m16_20_t_mag",
            
        };
        items[] = {
           "vn_m34_grenade_mag",
           "vn_m34_grenade_mag",
           "vn_m34_grenade_mag",
           "vn_m18_white_mag",
           "vn_m18_white_mag"

        };
        linkedItems[] = {
            "vn_b_vest_aircrew_05",
            "vn_b_helmet_aph6_02_01",
            "vn_o_acc_km32_01",
            "vn_b_item_watch",
            "vn_b_item_compass",
            "vn_b_item_map",
            "vn_b_item_radio_urv10"
            
        };
        uniformClass = "vn_b_uniform_k2b_01_02";
        backpack = "B_Parachute";
    };
    
    //START OF EAST RESPAWN LOADOUTS!

    //*******************
    // VC EQUIPMENT
    //*******************
    class Gamma1
    {
        displayName = "Pilot"; // Name visible in the menu
        icon = "a3\missions_f_exp\data\img\classes\assault_ca.paa"; // Icon displayed next to the name
        role = "Support";

        // Loadout definition, uses same entries as CfgVehicles classes
        weapons[] = {
            "vn_izh54_shorty"
        };
        magazines[] = {
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            "vn_izh54_so_mag",
            
        };
        items[] = {
           "vn_t67_grenade_mag",
           "vn_t67_grenade_mag",
           "vn_t67_grenade_mag",
           "vn_rdg2_mag",
           "vn_rdg2_mag",
           "vn_o_item_firstaidkit"

        };
        linkedItems[] = {
            "vn_o_vest_vc_04",
            "vn_o_helmet_zsh3_02",
            "vn_o_acc_km32_01",
            "vn_b_item_watch",
            "vn_b_item_compass",
            "vn_o_item_map",
            "vn_o_item_radio_m252"
            
        };
        uniformClass = "vn_o_uniform_nva_air_01";
        backpack = "B_Parachute";
    };

};

and init.sqf:
 

//West Loadouts
    [west, "Alpha1"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha2"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha3"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha4"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha5"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha6"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha7"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha8"] call BIS_fnc_addRespawnInventory;
    [west, "Alpha9"] call BIS_fnc_addRespawnInventory;
    [west, "Bravo1"] call BIS_fnc_addRespawnInventory;
    
//East Loadouts
    [east, "Gamma1"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma2"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma3"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma4"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma5"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma6"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma7"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma8"] call BIS_fnc_addRespawnInventory;
    [east, "Gamma9"] call BIS_fnc_addRespawnInventory;
    [east, "Zeta1"] call BIS_fnc_addRespawnInventory;

Edited by Shyska
To make the post more concise

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

×