Skip to content

Commit

Permalink
Added equipment tag system
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom committed Apr 9, 2024
1 parent 745538b commit 5ad0fdc
Show file tree
Hide file tree
Showing 58 changed files with 1,971 additions and 1,560 deletions.
308 changes: 154 additions & 154 deletions Compositions/1.Cav_Viking_Platoon/composition.sqe

Large diffs are not rendered by default.

258 changes: 129 additions & 129 deletions Compositions/2.Cav_Bandit_Platoon/composition.sqe

Large diffs are not rendered by default.

258 changes: 129 additions & 129 deletions Compositions/3.Cav_Misfit_Platoon/composition.sqe

Large diffs are not rendered by default.

374 changes: 84 additions & 290 deletions Compositions/4.ATLAS_Platoon/composition.sqe

Large diffs are not rendered by default.

414 changes: 207 additions & 207 deletions Compositions/6.Cav_Rotary_Aviation/composition.sqe

Large diffs are not rendered by default.

386 changes: 193 additions & 193 deletions Compositions/7.Cav_Fixed_Wing_Aviation/composition.sqe

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions cScripts/CfgEquipmentTags.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
class CfgEquipmentTags {
Common[] = {"G_Aviator"};

CommonBlufor[] = {"G_Aviator"};

CommonBluforCompanyAlpha[] = {"ace_banana"};
CommonBluforCompanyBravo[] = {"ace_banana"};
CommonBluforCompanyCharlie[] = {"ace_banana"};

// Weapons
coll_system_rifle[] = {"class_rhs_weap_m4a1"};
class_rhs_weap_m4a1[] = {
"rhs_weap_m4a1_carryhandle",
"rhs_weap_m4a1_carryhandle_mstock",
"rhs_weap_m4a1",
"rhs_weap_m4a1_mstock",
"rhs_weap_m4a1_d",
"rhs_weap_m4a1_d_mstock",
"rhs_weap_m4a1_wd",
"rhs_weap_m4a1_wd_mstock",

"rhs_weap_m4a1_blockII",
"rhs_weap_m4a1_blockII_KAC",
"rhs_weap_m4a1_blockII_bk",
"rhs_weap_m4a1_blockII_KAC_bk",
"rhs_weap_m4a1_blockII_d",
"rhs_weap_m4a1_blockII_KAC_d",
"rhs_weap_m4a1_blockII_wd",
"rhs_weap_m4a1_blockII_KAC_wd",

"equ_magazines_basic_stanag",
"equ_scopes_basic"
};

equ_magazines_basic_stanag[] = {
"rhs_mag_30Rnd_556x45_M855A1_Stanag",
"ACE_30Rnd_556x45_Stanag_M995_AP_mag"
};
equ_magazines_basic_pmag[] = {
"rhs_mag_30Rnd_556x45_M855A1_PMAG",
"rhs_mag_30Rnd_556x45_M855A1_PMAG_Tracer_Red",
"rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan",
"rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",
"rhs_mag_30Rnd_556x45_Mk262_PMAG"
};

equ_scopes_basic[] = {};

// Grenades
coll_throwable[] = {
"equ_grenades",
"equ_smokes",
"equ_chemlights"
};
equ_grenades[] = {
"HandGrenade",
"rhs_mag_m67",
"B_IR_Grenade",
"ACE_M84",
};
equ_smokes[] = {
"SmokeShell",
"SmokeShellRed",
"SmokeShellBlue",
"SmokeShellGreen",
"SmokeShellOrange",
"SmokeShellYellow",
"SmokeShellPurple",
};
equ_chemlights[] = {
"ACE_Chemlight_HiWhite",
"ACE_Chemlight_HiBlue",
"ACE_Chemlight_HiGreen",
"ACE_Chemlight_HiYellow",
"ACE_Chemlight_HiRed",
"ACE_Chemlight_IR",
};

// Communication
equ_radio_basic[] = {};
equ_radio_advanced[] = {};

// Medical
equ_medical_level_0[] = {};
equ_medical_level_1[] = {};
equ_medical_level_2[] = {};
equ_medical_level_3[] = {};

//
};
14 changes: 12 additions & 2 deletions cScripts/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class cScripts {
class logistics {
file = "cScripts\functions\logistics";
class addCargo {};
class setCargo {};
class setCargoAttributes {};
class checkItemValidity {};
class createCargoCrate {};
Expand Down Expand Up @@ -79,8 +80,10 @@ class cScripts {
class setRadioChannel {};
class setActiveRadio {};

class player_getOrganization {};
class player_getCompany {};
class player_setCompany {};
class player_getPlatoon {};
class player_setOrganization {};

// Other Functions
class unit_getVariables {};
Expand Down Expand Up @@ -226,6 +229,8 @@ class cScripts {
class gear_applyFunctions {};
class gear_selectLoadout {};
class gear_getSideConfig {};

class gear_getLoadoutCompany {};

class gear_setupRadios {};

Expand All @@ -235,8 +240,13 @@ class cScripts {
class gear_removeLoadout {};
class gear_hasSavedLoadout {};

// equipmentTags
class gear_getTagItems {};
class gear_getTags {};
class gear_isTag {};

// other
class gear_getLoadoutRole {};
class gear_getLoadoutTags {};
class gear_getLoadoutName {};
};
class diag {
Expand Down
10 changes: 5 additions & 5 deletions cScripts/Loadouts/CfgLoadouts_Alpha.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ class Cav_B_A_Officer_F: Cav_B_Alpha_base_F {
displayName = "PEGASUS-6";
category[] += {"cScripts_Loadout_Cat_Alpha_Leadership"};
scope = 2;
loadout = [["rhs_weap_m4a1_blockII_grip2_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR_3d",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",30],[],"rhsusf_acc_grip2"],[],["rhsusf_weap_glock17g4","","acc_flashlight_pistol","",["rhsusf_mag_17Rnd_9x19_FMJ",17],[],""],["USP_G3C_RS2_KP_OR_MC",[["ACE_tourniquet",4],["ACE_Flashlight_XL50",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_packingBandage",14],["kat_chestSeal",2],["kat_guedel",1],["ACE_EarPlugs",1],["kat_Painkiller",2,10],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",1,30]]],["USP_CRYE_JPC_ASLTB",[["rhsusf_mag_17Rnd_9x19_FMJ",2,17],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",8,30],["SmokeShell",4,1],["SmokeShellBlue",2,1],["HandGrenade",2,1]]],["USP_TACTICAL_PACK_CCT7",[["USP_PVS15",1],["ACE_splint",2],["ACE_SpraypaintRed",1],["ACE_EntrenchingTool",1],["ACE_CableTie",2],["SmokeShellPurple",1,1],["SmokeShellRed",2,1],["SmokeShellBlue",2,1]]],"USP_OPSCORE_FASTMTC_CGTW","",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
loadout = [["rhs_weap_m4a1_blockII_grip2_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR_3d",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",30],[],"rhsusf_acc_grip2"],[],["UK3CB_P320_BLK","","acc_flashlight_pistol","",["UK3CB_P320_9x21_17Rnd",17],[],""],["USP_G3C_RS2_KP_OR_MC",[["ACE_tourniquet",4],["ACE_Flashlight_XL50",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_packingBandage",14],["kat_chestSeal",2],["kat_guedel",1],["ACE_EarPlugs",1],["kat_Painkiller",2,10],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",1,30]]],["USP_CRYE_JPC_ASLTB",[["UK3CB_P320_9x21_17Rnd",2,17],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",8,30],["SmokeShell",4,1],["SmokeShellBlue",2,1],["HandGrenade",2,1]]],["USP_TACTICAL_PACK_CCT7",[["USP_PVS15",1],["ACE_splint",2],["ACE_SpraypaintRed",1],["ACE_EntrenchingTool",1],["ACE_CableTie",2],["SmokeShellPurple",1,1],["SmokeShellRed",2,1],["SmokeShellBlue",2,1]]],"USP_OPSCORE_FASTMTC_CGTW","",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
role = "officer";
};

class Cav_B_A_PltSgt_Local: Cav_B_Alpha_base_F {
displayName = "PEGASUS-5";
category[] += {"cScripts_Loadout_Cat_Alpha_Leadership"};
scope = 2;
loadout = [["rhs_weap_m4a1_blockII_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR_3d",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",30],[],"rhsusf_acc_grip2"],[],["rhsusf_weap_glock17g4","","acc_flashlight_pistol","",["rhsusf_mag_17Rnd_9x19_FMJ",17],[],""],["USP_G3C_RS2_KP_OR_MC",[["ACE_tourniquet",4],["ACE_Flashlight_XL50",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_packingBandage",14],["kat_chestSeal",2],["kat_guedel",1],["ACE_EarPlugs",1],["kat_Painkiller",2,10]]],["USP_CRYE_JPC_ASLTB",[["rhsusf_mag_17Rnd_9x19_FMJ",2,17],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",9,30],["SmokeShell",4,1],["SmokeShellBlue",2,1],["HandGrenade",2,1]]],["USP_TACTICAL_PACK_CCT7",[["USP_PVS15",1],["ACE_splint",2],["ACE_SpraypaintRed",1],["ACE_EntrenchingTool",1],["ACE_CableTie",2],["SmokeShellPurple",1,1],["SmokeShellRed",2,1],["SmokeShellBlue",2,1]]],"USP_OPSCORE_FASTMTC_CGTW","",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
loadout = [["rhs_weap_m4a1_blockII_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR_3d",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",30],[],"rhsusf_acc_grip2"],[],["UK3CB_P320_BLK","","acc_flashlight_pistol","",["UK3CB_P320_9x21_17Rnd",17],[],""],["USP_G3C_RS2_KP_OR_MC",[["ACE_tourniquet",4],["ACE_Flashlight_XL50",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_packingBandage",14],["kat_chestSeal",2],["kat_guedel",1],["ACE_EarPlugs",1],["kat_Painkiller",2,10]]],["USP_CRYE_JPC_ASLTB",[["UK3CB_P320_9x21_17Rnd",2,17],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",9,30],["SmokeShell",4,1],["SmokeShellBlue",2,1],["HandGrenade",2,1]]],["USP_TACTICAL_PACK_CCT7",[["USP_PVS15",1],["ACE_splint",2],["ACE_SpraypaintRed",1],["ACE_EntrenchingTool",1],["ACE_CableTie",2],["SmokeShellPurple",1,1],["SmokeShellRed",2,1],["SmokeShellBlue",2,1]]],"USP_OPSCORE_FASTMTC_CGTW","",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
role = "officer";
};

Expand All @@ -19,23 +19,23 @@ class Cav_B_A_AirController_F: Cav_B_Alpha_base_F {
category[] += {"cScripts_Loadout_Cat_Alpha_TACP"};
scope = 2;
loadout = [["rhs_weap_m4a1_blockII_bk","ACE_muzzle_mzls_L","acc_pointer_IR","rhsusf_acc_ACOG_RMR",["ACE_30Rnd_556x45_Stanag_M995_AP_mag",30],[],"rhsusf_acc_rvg_blk"],[],["rhs_weap_M320","","","",["ACE_HuntIR_M203",1],[],""],["USP_G3C_RS2_MC",[["ACE_tourniquet",4],["ItemcTabHCam",1],["ACE_MapTools",1],["ACE_IR_Strobe_Item",2],["ACE_microDAGR",1],["ACE_splint",4],["ACE_Flashlight_XL50",1],["kat_Painkiller",2,10],["SmokeShellPurple",2,1],["Laserbatteries",1,1]]],["rhsusf_plateframe_grenadier",[["ACE_packingBandage",20],["ACE_IR_Strobe_Item",2],["ItemAndroid",1],["kat_chestSeal",2],["kat_guedel",1],["kat_ncdKit",1],["rhs_mag_M664_red_cluster",2,1],["1Rnd_SmokeRed_Grenade_shell",2,1],["1Rnd_SmokeBlue_Grenade_shell",2,1],["ACE_HuntIR_M203",2,1],["ACE_30Rnd_556x45_Stanag_M995_AP_mag",6,30],["ACE_HandFlare_Green",2,1],["SmokeShellBlue",2,1],["SmokeShellRed",2,1]]],["USP_TACTICAL_PACK_CCT2",[["Rev_darter_item",1],["ACE_HuntIR_monitor",1],["ACE_EntrenchingTool",1],["ACE_UAVBattery",1],[["ACE_Vector","","","",[],[],""],1]]],"rhsusf_opscore_mc_cover_pelt_cam","rhsusf_oakley_goggles_clr",["Laserdesignator","","","",["Laserbatteries",1],[],""],["ItemMap","B_UavTerminal","","ItemCompass","ItemWatch","USP_PVS15"]];
role = "officer";
equipmentTags[] = {"role_officer"};
};

class Cav_B_A_DroneOperator_F: Cav_B_Alpha_base_F {
displayName = "Drone Operator";
category[] += {"cScripts_Loadout_Cat_Alpha_Leadership"};
scope = 2;
abilityEngineer = 1;
loadout = [["rhs_weap_m4a1_blockII_grip_bk","ACE_muzzle_mzls_L","acc_pointer_IR","rhsusf_acc_ACOG_RMR",["ACE_30Rnd_556x45_Stanag_M995_AP_mag",30],[],"rhsusf_acc_rvg_blk"],[],["rhsusf_weap_glock17g4","","acc_flashlight_pistol","",["rhsusf_mag_17Rnd_9x19_JHP",17],[],""],["USP_G3C_RS2_MC",[["ACE_tourniquet",4],["ACE_MapTools",1],["ACE_IR_Strobe_Item",2],["ACE_microDAGR",1],["ACE_splint",4],["ACE_Flashlight_XL50",1],["ACE_Banana",1],["ACE_EarPlugs",1],["kat_Painkiller",2,10],["SmokeShellPurple",2,1],["Laserbatteries",1,1]]],["rhsusf_plateframe_teamleader",[["ACE_packingBandage",20],["ACE_IR_Strobe_Item",2],["ItemAndroid",1],["kat_chestSeal",2],["kat_guedel",1],["kat_ncdKit",1],["ACE_30Rnd_556x45_Stanag_M995_AP_mag",8,30],["ACE_HandFlare_Green",2,1],["SmokeShell",4,1],["rhsusf_mag_17Rnd_9x19_JHP",1,17],[["hgun_Pistol_Signal_F","","","",[],[],""],1]]],["USP_TACTICAL_PACK_CCT2",[["H_Cap_tan",1],["ACE_CableTie",2],["ACE_EntrenchingTool",1],["ToolKit",1]]],"rhsusf_opscore_mc_cover_pelt_cam","rhsusf_oakley_goggles_clr",["ACE_Vector","","","",[],[],""],["ItemMap","B_UavTerminal","","ItemCompass","ItemWatch","NVGogglesB_blk_F"]];
loadout = [["rhs_weap_m4a1_blockII_grip_bk","ACE_muzzle_mzls_L","acc_pointer_IR","rhsusf_acc_ACOG_RMR",["ACE_30Rnd_556x45_Stanag_M995_AP_mag",30],[],"rhsusf_acc_rvg_blk"],[],["UK3CB_P320_BLK","","acc_flashlight_pistol","",["UK3CB_P320_9x21_17Rnd",17],[],""],["USP_G3C_RS2_MC",[["ACE_tourniquet",4],["ACE_MapTools",1],["ACE_IR_Strobe_Item",2],["ACE_microDAGR",1],["ACE_splint",4],["ACE_Flashlight_XL50",1],["ACE_Banana",1],["ACE_EarPlugs",1],["kat_Painkiller",2,10],["SmokeShellPurple",2,1],["Laserbatteries",1,1]]],["rhsusf_plateframe_teamleader",[["ACE_packingBandage",20],["ACE_IR_Strobe_Item",2],["ItemAndroid",1],["kat_chestSeal",2],["kat_guedel",1],["kat_ncdKit",1],["ACE_30Rnd_556x45_Stanag_M995_AP_mag",8,30],["ACE_HandFlare_Green",2,1],["SmokeShell",4,1],["UK3CB_P320_9x21_17Rnd",1,17],[["hgun_Pistol_Signal_F","","","",[],[],""],1]]],["USP_TACTICAL_PACK_CCT2",[["H_Cap_tan",1],["ACE_CableTie",2],["ACE_EntrenchingTool",1],["ToolKit",1]]],"rhsusf_opscore_mc_cover_pelt_cam","rhsusf_oakley_goggles_clr",["ACE_Vector","","","",[],[],""],["ItemMap","B_UavTerminal","","ItemCompass","ItemWatch","NVGogglesB_blk_F"]];
role = "officer";
};
// class Cav_B_A_JFO_F: Cav_B_Alpha_base_F {
// displayName = "Forward Air Controller";
// category[] += {"cScripts_Loadout_Cat_Alpha_Leadership"};
// scope = 2;
// loadout = [["rhs_weap_m4a1_blockII_bk","ACE_muzzle_mzls_L","acc_pointer_IR","rhsusf_acc_ACOG_RMR",["ACE_30Rnd_556x45_Stanag_M995_AP_mag",30],[],"rhsusf_acc_rvg_blk"],[],["rhs_weap_M320","","","",["ACE_HuntIR_M203",1],[],""],["USP_G3C_RS2_MC",[["ACE_tourniquet",4],["ItemcTabHCam",1],["ACE_MapTools",1],["ACE_IR_Strobe_Item",2],["ACE_microDAGR",1],["ACE_splint",4],["ACE_Flashlight_XL50",1],["kat_Painkiller",2,10],["SmokeShellPurple",2,1],["Laserbatteries",1,1]]],["rhsusf_plateframe_grenadier",[["ACE_packingBandage",20],["ACE_IR_Strobe_Item",2],["rhs_mag_M664_red_cluster",2,1],["1Rnd_SmokeRed_Grenade_shell",2,1],["1Rnd_SmokeBlue_Grenade_shell"],2,1],["ACE_HuntIR_M203",2,1],["ACE_30Rnd_556x45_Stanag_M995_AP_mag",6,30],["ACE_HandFlare_Green",2,1],["SmokeShellBlue",2,1],["SmokeShellRed",2,1]]],["USP_TACTICAL_PACK_CCT7"],[["Rev_darter_item",1],["ACE_HuntIR_monitor",1],["ACE_EntrenchingTool",1],["ACE_UAVBattery",1],["Laserbatteries",1,1],[["ACE_Vector","","","",[],[],""],1]]],"rhsusf_opscore_mc_cover_pelt_cam","rhsusf_shemagh2_gogg_grn",["Laserdesignator","","","",["Laserbatteries",1],[],""],["ItemMap","ItemcTab","","ItemCompass","ItemWatch","USP_PVS15"]];
// role = "officer";
// equipmentTags[] = {"role_officer"};
// };

// Named
Expand Down
Loading

0 comments on commit 5ad0fdc

Please sign in to comment.