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 d69f3d7 commit af7f9ee
Show file tree
Hide file tree
Showing 18 changed files with 327 additions and 132 deletions.
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[] = {};

//
};
9 changes: 8 additions & 1 deletion cScripts/CfgFunctions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ class cScripts {
class gear_applyFunctions {};
class gear_selectLoadout {};
class gear_getSideConfig {};

class gear_getLoadoutCompany {};

class gear_setupRadios {};

Expand All @@ -238,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
4 changes: 2 additions & 2 deletions cScripts/Loadouts/CfgLoadouts_Alpha.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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 {
Expand All @@ -35,7 +35,7 @@ class Cav_B_A_DroneOperator_F: Cav_B_Alpha_base_F {
// 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
3 changes: 2 additions & 1 deletion cScripts/Loadouts/CfgLoadouts_Bravo_Atlas.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class Cav_B_Bravo_Atlas_base_F: Cav_B_Bravo_base_F {
insignia = "cav_insignia_Specialized_Medic0";
abilityMedic = 2;

role = "doctor";
equipmentTags[] = {"tag_doctor"};

icon = "iconManMedic";
};

Expand Down
2 changes: 1 addition & 1 deletion cScripts/Loadouts/CfgLoadouts_Bravo_Crew.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Cav_B_Bravo_TankCrew_Base_F: Cav_B_Bravo_base_F {
scope = 0;
role = "crew";
equipmentTags[] = {"role_crew"};
};
class Cav_B_B_Tank_Commander_F: Cav_B_Bravo_TankCrew_Base_F {
displayName = "$STR_cav_Bravo_Characters_B_Tank_Commander";
Expand Down
12 changes: 6 additions & 6 deletions cScripts/Loadouts/CfgLoadouts_Bravo_Viking.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Cav_B_B_Scout_Base_F: Cav_B_Bravo_base_F {
platoon = 2;
scope = 0;
role = "weapons";
equipmentTags[] = {"role_weapons"};
};

class Cav_B_B_Scout_Officer_F: Cav_B_B_Scout_Base_F {
Expand All @@ -10,7 +10,7 @@ class Cav_B_B_Scout_Officer_F: Cav_B_B_Scout_Base_F {
category[] += {"cScripts_Loadout_Cat_Bravo_Viking_Leadership"};
loadout = [["rhs_weap_mk18_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tracer_Red",30],[],"rhsusf_acc_grip2"],[],["rhsusf_weap_glock17g4","","acc_flashlight_pistol","",["rhsusf_mag_17Rnd_9x19_FMJ",17],[],""],["USP_G3C_RS_KP_OR_MC",[["ACE_packingBandage",10],["ACE_quikclot",10],["ACE_tourniquet",4],["ACE_microDAGR",1],["ACE_Flashlight_XL50",1],["ACE_MapTools",1],["kat_chestSeal",2],["kat_guedel",1],["ACE_splint",1]]],["USP_CRYE_CPC_LEAD_BELT_MC",[["ItemcTabHCam",1],["ACE_EarPlugs",1],["HandGrenade",2,1],["SmokeShell",4,1],["ACE_IR_Strobe_Item",4],["SmokeShellBlue",2,1],["rhsusf_mag_17Rnd_9x19_FMJ",2,17],["ACE_HandFlare_Yellow",2,1],["rhs_mag_mk3a2",2,1],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tracer_Red",3,30],["30Rnd_556x45_Stanag_red",4,30],["SmokeShellPurple",1,1],["SmokeShellYellow",2,1]]],["USP_TACTICAL_PACK_CCT6",[["ACE_HuntIR_monitor",1],["ACE_splint",8],["ACE_tourniquet",8],["ACE_SpraypaintGreen",1],["ACE_artilleryTable",1],["ACE_CableTie",5],["ACE_EarPlugs",2],["kat_Painkiller",2,10],["B_IR_Grenade",2,1],["SmokeShellGreen",2,1],["SmokeShellYellow",2,1],["ACE_Chemlight_IR",2,1]]],"USP_OPS_FASTXP_TAN_MC_03","USP_DETCORD_SMG1_BLK2",["ACE_Vector","","","",[],[],""],["ItemMap","ItemcTab","","ItemCompass","ItemWatch","USP_PVS31_LOW"]];
icon = "iconManOfficer";
role = "officer";
equipmentTags[] = {"role_officer"};
};

class Cav_B_B_Scout_PlatoonLeader_F: Cav_B_B_Scout_Officer_F {
Expand All @@ -31,7 +31,7 @@ class Cav_B_B_Scout_PlatoonMedic_F: Cav_B_B_Scout_Officer_F {
loadout = [["rhs_weap_m4a1_blockII","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR",["rhs_mag_30Rnd_556x45_M855A1_PMAG",30],[],""],[],[],["USP_G3C_RS_KP_OR_MC",[["ACE_tourniquet",10],["ACE_EarPlugs",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_Flashlight_XL50",1],["ACE_IR_Strobe_Item",2],["ACE_CableTie",2],["ACE_epinephrine",6],["kat_Painkiller",2,10],["kat_Carbonate",2,10],["ACE_Chemlight_IR",2,1],["kat_Penthrox",4,10]]],["USP_CRYE_CPC_MEDIC_BELT_MC",[["ACE_surgicalKit",1],["kat_IV_16",15],["kat_amiodarone",5],["kat_atropine",5],["ACE_adenosine",3],["kat_chestSeal",10],["kat_EACA",10],["kat_fentanyl",5],["kat_ketamine",5],["kat_larynx",10],["kat_lidocaine",10],["kat_nalbuphine",10],["kat_naloxone",5],["kat_nitroglycerin",10],["kat_norepinephrine",10],["kat_phenylephrine",10],["kat_stethoscope",1],["kat_Pulseoximeter",5],["kat_IO_FAST",5],["kat_aatKit",5],["ACE_splint",2],["kat_accuvac",1],["SmokeShell",4,1],["rhs_mag_30Rnd_556x45_M855A1_PMAG",6,30],["SmokeShellBlue",2,1],["SmokeShellPurple",1,1],["kat_Penthrox",5,10]]],["USP_TACTICAL_PACK",[["ACE_plasmaIV",5],["ACE_plasmaIV_500",4],["ACE_salineIV",1],["ACE_elasticBandage",30],["ACE_packingBandage",10],["ACE_quikclot",30],["ACE_salineIV_250",2],["USP_PVS31",1],["ACE_splint",4]]],"USP_OPS_FASTXP_TAN_MC_03","USP_MFRAME_BLK2",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
insignia = "cav_insignia_specialized_cls";
abilityMedic = 2;
role = "medic";
equipmentTags[] = {"tag_medic"};
icon = "iconManMedic";
};

Expand All @@ -53,7 +53,7 @@ class Cav_B_B_Scout_SquadLeader_F: Cav_B_B_Scout_Base_F {
scope = 2;
category[] += {"cScripts_Loadout_Cat_Bravo_Viking_Leadership"};
loadout = [["rhs_weap_mk18_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_g33_xps3",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tracer_Red",30],[],"rhsusf_acc_grip2"],[],[],["USP_G3C_RS_KP_OR_MC",[["ACE_packingBandage",10],["ACE_quikclot",10],["ACE_tourniquet",4],["kat_chestSeal",2],["kat_guedel",1],["ACE_microDAGR",1],["ACE_MapTools",1],["ACE_Chemlight_Shield",1],["ACE_Chemlight_White",1,1]]],["USP_CRYE_CPC_COMMS_BELT_MC",[["ACE_EarPlugs",1],["HandGrenade",2,1],["SmokeShell",4,1],["SmokeShellBlue",2,1],["SmokeShellYellow",2,1],["rhs_mag_mk3a2",2,1],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tracer_Red",3,30],["30Rnd_556x45_Stanag_red",4,30],["SmokeShellPurple",1,1]]],["USP_TACTICAL_PACK_CCT7",[["ACE_HuntIR_monitor",1],["ACE_splint",8],["ACE_tourniquet",8],["ACE_SpraypaintGreen",1],["ACE_artilleryTable",1],["ACE_CableTie",5],["ACE_EarPlugs",2],["kat_Painkiller",2,10],["B_IR_Grenade",2,1],["ACE_Chemlight_IR",2,1]]],"USP_OPS_FASTXP_TAN_MC_06","UK3CB_G_Ballistic_Black",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ItemWatch","USP_PVS31_HIGH"]];
role = "squadleader";
equipmentTags[] = {"role_squadleader"};
icon = "iconManLeader";
};
class Cav_B_B_Scout_WSL_F_Local: Cav_B_B_Scout_Base_F {
Expand All @@ -69,7 +69,7 @@ class Cav_B_B_Scout_TeamLeader_F: Cav_B_B_Scout_Base_F {
scope = 2;
category[] += {"cScripts_Loadout_Cat_Bravo_Viking_Squad"};
loadout = [["rhs_weap_m4a1_blockII_grip2_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR",["30Rnd_556x45_Stanag_red",30],[],"rhsusf_acc_grip2"],[],[],["USP_G3C_RS_KP_OR_MC",[["ACE_packingBandage",10],["kat_chestSeal",2],["kat_guedel",1],["ACE_quikclot",10],["ACE_tourniquet",4],["ACE_microDAGR",1],["ACE_MapTools",1],["ACE_Chemlight_Shield",1],["ACE_Chemlight_White",1,1]]],["USP_VEST_STRANDHOGG2_MC",[["HandGrenade",2,1],["SmokeShell",4,1],["SmokeShellBlue",2,1],["SmokeShellYellow",2,1],["SmokeShellPurple",1,1],["rhs_mag_mk3a2",2,1],["30Rnd_556x45_Stanag_red",6,30],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",4,30]]],["USP_PACK_BREACHER_MC",[["ACE_HuntIR_monitor",1],["ACE_EntrenchingTool",1],["ACE_SpraypaintGreen",1],["ACE_tourniquet",4],["ACE_CableTie",5],["ACE_splint",2],["kat_Painkiller",2,10],["ACE_Chemlight_IR",2,1]]],"USP_OPS_FASTXP_TAN_MC_05","UK3CB_G_Ballistic_Black_Shemagh_Green",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ItemWatch","USP_PVS31_HIGH"]];
role = "fireteamleader";
equipmentTags[] = {"role_fireteamleader"};
icon = "iconManLeader";
};
class Cav_B_B_Scout_AutomaticRifleman_F: Cav_B_B_Scout_Base_F {
Expand Down Expand Up @@ -101,7 +101,7 @@ class Cav_B_B_Scout_RiflemanAT_F: Cav_B_B_Scout_Base_F {
displayName = "MAAWS Specialist";
scope = 2;
category[] += {"cScripts_Loadout_Cat_Bravo_Viking_Squad"};
role = "weapons";
equipmentTags[] = {"role_weapons"};
loadout = [["rhs_weap_m4a1_blockII_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR",["30Rnd_556x45_Stanag_red",30],[],"rhsusf_acc_grip2"],["launch_MRAWS_green_F","","","",[],[],""],[],["USP_G3C_RS_KP_OR_MC",[["ACE_packingBandage",10],["kat_chestSeal",2],["kat_guedel",1],["ACE_quikclot",10],["ACE_tourniquet",4],["ACE_microDAGR",1],["ACE_MapTools",1]]],["USP_CRYE_CPC_COMMS_BELT_MC",[["HandGrenade",2,1],["SmokeShell",4,1],["ACE_Chemlight_IR",2,1],["rhs_mag_mk3a2",4,1],["30Rnd_556x45_Stanag_red",9,30],["SmokeShellPurple",1,1],["ACE_CTS9",2,1],["kat_Painkiller",2,10]]],["rhsusf_falconii_mc",[["ACE_EntrenchingTool",1],["",2,0],["MRAWS_HEAT_F",1,1],["MRAWS_HE_F",2,1]]],"USP_OPS_FASTXP_TAN_MC_03","USP_MFRAME_SMC1_TAN2",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ItemWatch","USP_PVS15"]];
};
class Cav_B_B_Scout_CombatLifeSaver_F: Cav_B_B_Scout_Base_F {
Expand Down
8 changes: 4 additions & 4 deletions cScripts/Loadouts/CfgLoadouts_Charlie_Squad.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Cav_B_C_Officer_F: Cav_B_Charlie_base_F {
displayName = "$STR_Cav_Charlie_Characters_C_Officer";
category[] += {"cScripts_Loadout_Cat_Charlie_Leadership"};
scope = 0;
role = "officer";
equipmentTags[] = {"role_officer"};
icon = "iconManOfficer";
};
class Cav_B_C_PlatoonLeader_F: Cav_B_C_Officer_F {
Expand All @@ -26,7 +26,7 @@ class Cav_B_C_PlatoonMedic_F: Cav_B_C_Officer_F {
loadout = [["rhs_weap_m4a1_blockII","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR",["rhs_mag_30Rnd_556x45_M855A1_PMAG",30],[],""],[],[],["USP_G3C_RS_KP_OR_MC",[["ACE_tourniquet",10],["ACE_EarPlugs",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_Flashlight_XL50",1],["ACE_IR_Strobe_Item",2],["ACE_CableTie",2],["ACE_epinephrine",6],["kat_PenthroxItem",4],["kat_Painkiller",2,10],["kat_Carbonate",2,10],["ACE_Chemlight_IR",2,1]]],["USP_CRYE_CPC_MEDIC_BELT_MC",[["ACE_surgicalKit",1],["kat_IV_16",15],["kat_amiodarone",5],["kat_atropine",5],["ACE_adenosine",3],["kat_chestSeal",10],["kat_EACA",10],["kat_fentanyl",5],["kat_ketamine",5],["kat_larynx",10],["kat_lidocaine",10],["kat_nalbuphine",10],["kat_naloxone",5],["kat_nitroglycerin",10],["kat_norepinephrine",10],["kat_phenylephrine",10],["kat_stethoscope",1],["kat_Pulseoximeter",5],["kat_IO_FAST",5],["kat_aatKit",5],["ACE_splint",2],["SmokeShell",4,1],["rhs_mag_30Rnd_556x45_M855A1_PMAG",7,30],["SmokeShellBlue",2,1],["SmokeShellPurple",1,1],["kat_Penthrox",5,10]]],["USP_TACTICAL_PACK",[["ACE_plasmaIV",5],["ACE_plasmaIV_500",4],["ACE_salineIV",1],["ACE_elasticBandage",30],["ACE_packingBandage",10],["ACE_quikclot",10],["ACE_salineIV_250",2],["USP_PVS15",1],["kat_accuvac",1],["ACE_splint",6]]],"USP_OPSCORE_FASTMTC_CTW","USP_MFRAME_BLK2",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
insignia = "cav_insignia_specialized_cls";
abilityMedic = 2;
role = "medic";
equipmentTags[] = {"tag_medic"};
icon = "iconManMedic";
};
class Cav_B_C_Drone_Operator_F_Local: Cav_B_C_Officer_F {
Expand All @@ -40,7 +40,7 @@ class Cav_B_C_SquadLeader_F: Cav_B_Charlie_base_F {
scope = 2;
category[] += {"cScripts_Loadout_Cat_Charlie_Leadership"};
loadout = [["rhs_weap_m4a1_m320","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15_bk","rhsusf_acc_ACOG_RMR_3d",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan",30],[],""],[],[],["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_TLB",[["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan_Tracer_Red",9,30],["SmokeShell",4,1],["HandGrenade",2,1],["SmokeShellPurple",1,1],["rhs_mag_m713_Red",3,1],["rhs_mag_m714_White",4,1],["SmokeShellBlue",2,1]]],["USP_REEBOW_3DAP_MC",[["ACE_HuntIR_monitor",1],["USP_PVS15",1],["ACE_splint",2],["ACE_SpraypaintRed",1],["ACE_EntrenchingTool",1],["ACE_CableTie",2]]],"USP_OPSCORE_FASTMTC_CMGTW","",["ACE_Vector","","","",[],[],""],["ItemMap","ItemAndroid","","ItemCompass","ACE_Altimeter",""]];
role = "squadleader";
equipmentTags[] = {"role_squadleader"};
icon = "iconManLeader";
};
class Cav_B_C_FireTeamLeader_F: Cav_B_Charlie_base_F {
Expand Down Expand Up @@ -77,7 +77,7 @@ class Cav_B_C_CombatLifeSaver_F: Cav_B_Charlie_base_F {
category[] += {"cScripts_Loadout_Cat_Charlie_Squad"};
loadout = [["rhs_weap_m4a1_blockII_KAC","rhsusf_acc_SF3P556","rhsusf_acc_anpeq15","rhsusf_acc_ACOG_RMR",["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan",30],[],""],[],[],["USP_G3C_CU_KP_OR_MC",[["ACE_tourniquet",4],["ACE_Flashlight_XL50",1],["ACE_MapTools",1],["ACE_microDAGR",1],["ACE_packingBandage",14],["ACE_splint",2],["ACE_EarPlugs",1],["ACE_Chemlight_IR",2,1]]],["USP_CRYE_JPC_DMB",[["SmokeShell",4,1],["rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan",9,30],["HandGrenade",2,1],["SmokeShellBlue",1,1],["SmokeShellPurple",1,1]]],["USP_DELTA_BAG_MC",[["USP_PVS15",1],["ACE_packingBandage",40],["ACE_quikclot",40],["ACE_EntrenchingTool",1],["ACE_splint",8],["ACE_tourniquet",12],["kat_chestSeal",10],["ACE_epinephrine",3],["kat_guedel",10],["kat_ncdKit",5],["kat_pocketBVM",1],["kat_accuvac",1],["kat_phenylephrineAuto",3],["kat_CarbonateItem",1],["kat_Painkiller",7,10]]],"USP_OPSCORE_FASTMTC_GSW","USP_MFRAME_TAN",[],["ItemMap","","","ItemCompass","ACE_Altimeter",""]]; insignia = "cav_insignia_specialized_cls";
abilityMedic = 1;
role = "cls";
equipmentTags[] = {"tag_cls"};
icon = "iconManMedic";
};
class Cav_B_C_Marksman_F_Local: Cav_B_Charlie_base_F {
Expand Down
2 changes: 1 addition & 1 deletion cScripts/Loadouts/CfgLoadouts_Charlie_Weapon.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Cav_B_Charlie_Weapons_base_F: Cav_B_Charlie_base_F {
category[] += {"cScripts_Loadout_Cat_Charlie_Weapons"};
role = "weapons";
equipmentTags[] = {"role_weapons"};
};

class Cav_B_C_Weapons_SquadLeader_F: Cav_B_C_SquadLeader_F {
Expand Down
2 changes: 1 addition & 1 deletion cScripts/Loadouts/CfgLoadouts_Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CommonBlufor {
//preLoadout = "";
//postLoadout = "";

//role = "";
//equipmentTags[] = {};
//icon = "";
};

Expand Down
2 changes: 1 addition & 1 deletion cScripts/Loadouts/CfgLoadouts_Training.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Cav_B_Training_base_F: Cav_B_Seventh_Cavalry_Base_F {
category[] = {"cScripts_Loadout_Cat_Training"};
scope = 0;

role = "training";
equipmentTags[] = {"role_training"};
};

class Cav_B_Training_Cadre_F: Cav_B_Training_base_F {
Expand Down
24 changes: 24 additions & 0 deletions cScripts/functions/gear/fn_gear_getLoadoutCompany.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#include "..\script_component.hpp";
/*
* Author: SGT.Brostrom.A
* This function return your company
*
* Arguments:
* None
*
* Return Value:
* CompanyName <STRING>
*
* Example:
* call cScripts_fnc_player_getLoadoutCompany;
*
* Public: No
*/

//FIXME: Mabe not have afterall?
params [["_loadout","",[]]];

private _config = missionConfigFile >> "CfgLoadouts" >> _loadout;
private _company = getArray (_config >> "company");

_company;
25 changes: 0 additions & 25 deletions cScripts/functions/gear/fn_gear_getLoadoutRole.sqf

This file was deleted.

Loading

0 comments on commit af7f9ee

Please sign in to comment.