Created
June 2, 2017 13:08
-
-
Save jameslkingsley/0f021146f82b5dee2232c3e2dc25b2d2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
removeAllWeapons this; | |
removeAllItems this; | |
removeAllAssignedItems this; | |
removeUniform this; | |
removeVest this; | |
removeBackpack this; | |
removeHeadgear this; | |
removeGoggles this; | |
switch (_typeOfUnit) do { | |
// LOADOUT: COMMANDER | |
case "co": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_iotv_ucp_Squadleader"; | |
for "_i" from 1 to 8 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 5 do {this addItemToVest "rhs_mag_M433_HEDP";}; | |
for "_i" from 1 to 3 do {this addItemToVest "1Rnd_Smoke_Grenade_shell";}; | |
for "_i" from 1 to 4 do {this addItemToVest "1Rnd_SmokeRed_Grenade_shell";}; | |
for "_i" from 1 to 2 do {this addItemToVest "1Rnd_SmokeGreen_Grenade_shell";}; | |
for "_i" from 1 to 2 do {this addItemToVest "1Rnd_SmokeBlue_Grenade_shell";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_m203"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15side"; | |
this addPrimaryWeaponItem "rhsusf_acc_eotech_xps3"; | |
this addWeapon "rhsusf_weap_m9"; | |
this addWeapon "Binocular"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
this linkItem "ItemGPS"; | |
}; | |
// LOADOUT: DEPUTY COMMANDER AND SQUAD LEADER | |
case "dc": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_iotv_ucp_Squadleader"; | |
for "_i" from 1 to 8 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 5 do {this addItemToVest "rhs_mag_M433_HEDP";}; | |
for "_i" from 1 to 3 do {this addItemToVest "1Rnd_Smoke_Grenade_shell";}; | |
for "_i" from 1 to 4 do {this addItemToVest "1Rnd_SmokeRed_Grenade_shell";}; | |
for "_i" from 1 to 2 do {this addItemToVest "1Rnd_SmokeGreen_Grenade_shell";}; | |
for "_i" from 1 to 2 do {this addItemToVest "1Rnd_SmokeBlue_Grenade_shell";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_m203"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15side"; | |
this addPrimaryWeaponItem "rhsusf_acc_eotech_xps3"; | |
this addWeapon "rhsusf_weap_m9"; | |
this addWeapon "Binocular"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
this linkItem "ItemGPS"; | |
}; | |
// LOADOUT: FORWARD AIR CONTROLLER | |
case "fac": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_iotv_ucp_Repair"; | |
for "_i" from 1 to 9 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addItemToVest "rhs_mag_m67"; | |
this addBackpack "rhsusf_assault_eagleaiii_ucp"; | |
for "_i" from 1 to 4 do {this addItemToBackpack "rhs_mag_m18_purple";}; | |
for "_i" from 1 to 2 do {this addItemToBackpack "rhs_mag_m18_yellow";}; | |
for "_i" from 1 to 4 do {this addItemToBackpack "rhs_mag_m18_red";}; | |
for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m18_green";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_mstock_grip2"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15_light"; | |
this addPrimaryWeaponItem "rhsusf_acc_compm4"; | |
this addPrimaryWeaponItem "rhsusf_acc_grip2"; | |
this addWeapon "rhsusf_weap_m9"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
}; | |
// LOADOUT: MEDIC | |
case "m": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_spcs_ucp_rifleman"; | |
for "_i" from 1 to 9 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 5 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addItemToVest "rhs_mag_m67"; | |
this addBackpack "rhsusf_assault_eagleaiii_ucp"; | |
for "_i" from 1 to 30 do {this addItemToBackpack "ACE_fieldDressing";}; | |
for "_i" from 1 to 15 do {this addItemToBackpack "ACE_morphine";}; | |
for "_i" from 1 to 10 do {this addItemToBackpack "ACE_epinephrine";}; | |
for "_i" from 1 to 5 do {this addItemToBackpack "ACE_salineIV_250";}; | |
for "_i" from 1 to 10 do {this addItemToBackpack "ACE_personalAidKit";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_mstock_grip2"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15_light"; | |
this addPrimaryWeaponItem "rhsusf_acc_compm4"; | |
this addPrimaryWeaponItem "rhsusf_acc_grip2"; | |
this addWeapon "rhsusf_weap_m9"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
}; | |
// LOADOUT: FIRE TEAM LEADER | |
case "ftl": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_iotv_ucp_Squadleader"; | |
for "_i" from 1 to 8 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 5 do {this addItemToVest "rhs_mag_M433_HEDP";}; | |
for "_i" from 1 to 3 do {this addItemToVest "1Rnd_Smoke_Grenade_shell";}; | |
for "_i" from 1 to 4 do {this addItemToVest "1Rnd_SmokeRed_Grenade_shell";}; | |
for "_i" from 1 to 2 do {this addItemToVest "1Rnd_SmokeGreen_Grenade_shell";}; | |
for "_i" from 1 to 2 do {this addItemToVest "1Rnd_SmokeBlue_Grenade_shell";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_m203"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15side"; | |
this addPrimaryWeaponItem "rhsusf_acc_eotech_xps3"; | |
this addWeapon "rhsusf_weap_m9"; | |
this addWeapon "Binocular"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
this linkItem "ItemGPS"; | |
}; | |
// LOADOUT: RIFLEMAN | |
case "r": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_spcs_ucp_rifleman"; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addItemToVest "rhs_mag_m67"; | |
for "_i" from 1 to 11 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m16a4_carryhandle_grip_pmag"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15side"; | |
this addPrimaryWeaponItem "rhsusf_acc_grip1"; | |
this addWeapon "rhsusf_weap_m9"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
}; | |
// LOADOUT: AUTOMATIC RIFLEMAN | |
case "ar": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
this addVest "rhsusf_iotv_ucp_SAW"; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addItemToVest "rhs_mag_m67"; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_200rnd_556x45_T_SAW";}; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m249_pip"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_eotech_552"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
}; | |
// LOADOUT: ASSISTANT AUTOMATIC RIFLEMAN | |
case "aar": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_spcs_ucp_rifleman"; | |
for "_i" from 1 to 11 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addBackpack "rhsusf_assault_eagleaiii_ucp"; | |
for "_i" from 1 to 6 do {this addItemToBackpack "rhs_200rnd_556x45_T_SAW";}; | |
this addItemToVest "rhs_mag_m67"; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_mstock_grip2"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15_light"; | |
this addPrimaryWeaponItem "rhsusf_acc_compm4"; | |
this addPrimaryWeaponItem "rhsusf_acc_grip2"; | |
this addWeapon "rhsusf_weap_m9"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
}; | |
// LOADOUT: RIFLEMAN (AT) | |
case "rat": { | |
this forceAddUniform "rhs_uniform_cu_ucp_10th"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
for "_i" from 1 to 3 do {this addItemToUniform "rhsusf_mag_15Rnd_9x19_FMJ";}; | |
this addVest "rhsusf_spcs_ucp_rifleman"; | |
for "_i" from 1 to 11 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addItemToVest "rhs_mag_m67"; | |
this addHeadgear "rhsusf_ach_helmet_headset_ess_ucp"; | |
this addWeapon "rhs_weap_m4a1_carryhandle_mstock_grip2"; | |
this addPrimaryWeaponItem "rhsusf_acc_SFMB556"; | |
this addPrimaryWeaponItem "rhsusf_acc_anpeq15_light"; | |
this addPrimaryWeaponItem "rhsusf_acc_compm4"; | |
this addPrimaryWeaponItem "rhsusf_acc_grip2"; | |
this addWeapon "rhsusf_weap_m9"; | |
this addWeapon "rhs_weap_M136_hp"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
}; | |
// LOADOUT: PILOT | |
case "p": { | |
this forceAddUniform "rhs_uniform_cu_ucp"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
this addVest "rhsusf_iotv_ucp_Repair"; | |
for "_i" from 1 to 7 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_m18_purple";}; | |
this addItemToVest "rhs_mag_m67"; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addBackpack "B_AssaultPack_blk"; | |
this addItemToBackpack "ToolKit"; | |
this addHeadgear "rhsusf_hgu56p"; | |
this addWeapon "rhs_weap_m4_carryhandle_mstock"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
this linkItem "ItemGPS"; | |
this linkItem "rhsusf_ANPVS_15"; | |
}; | |
// LOADOUT: CO-PILOT | |
case "cp": { | |
this forceAddUniform "rhs_uniform_cu_ucp"; | |
for "_i" from 1 to 3 do {this addItemToUniform "ACE_fieldDressing";}; | |
this addItemToUniform "ACE_CableTie"; | |
this addItemToUniform "ACE_morphine"; | |
this addItemToUniform "ACE_tourniquet"; | |
this addVest "rhsusf_iotv_ucp_Repair"; | |
for "_i" from 1 to 7 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";}; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_m18_purple";}; | |
this addItemToVest "rhs_mag_m67"; | |
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; | |
this addBackpack "B_AssaultPack_blk"; | |
this addItemToBackpack "ToolKit"; | |
this addHeadgear "rhsusf_hgu56p"; | |
this addWeapon "rhs_weap_m4_carryhandle_mstock"; | |
this linkItem "ItemMap"; | |
this linkItem "ItemCompass"; | |
this linkItem "ItemWatch"; | |
this linkItem "ItemGPS"; | |
this linkItem "rhsusf_ANPVS_15"; | |
}; | |
// LOADOUT: DEFAULT/UNDEFINED (use RIFLEMAN) | |
default { | |
if (_typeOfUnit != "r") then {["r", this] call f_fnc_assignGear;}; | |
if (true) exitWith {player globalChat format ["DEBUG (f\assignGear\f_assignGear_blufor.sqf): Unit = %1. Gear template %2 does not exist, used Rifleman instead.", this, _typeOfUnit]}; | |
}; | |
}; | |
this selectWeapon primaryWeapon this; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment