|
| 1 | +params["_role", "_obj", "_rearmOnly"]; |
| 2 | +_availableUniforms = []; _availableWeapons = []; _availableMagazines = []; _availableVests = []; _availableItems = []; _availableBackpacks = []; _availableHeadgear = []; _availableFacewear = []; |
| 3 | + |
| 4 | +// Define default gear |
| 5 | +_defItems = ["ACRE_PRC343", "ACE_adenosine", "ACE_fieldDressing", "ACE_elasticBandage", "ACE_packingBandage", "ACE_quikclot", "ACE_epinephrine", "ACE_Flashlight_MX991", "ACE_MapTools", "ACE_morphine", "ACE_splint", "ACE_tourniquet", "ItemMap", "ItemCompass", "ItemWatch"]; |
| 6 | +_defMagazines = ["rhs_mag_maaws_HE", "rhs_mag_maaws_HEDP", "rhs_mag_maaws_HEAT", "hlc_200rnd_556x45_B_SAW", "hlc_200rnd_556x45_M_SAW", "hlc_200rnd_556x45_T_SAW", "rhsusf_mag_17Rnd_9x19_FMJ", "rhsusf_mag_17Rnd_9x19_JHP", "rhs_mag_30Rnd_556x45_M855_PMAG", "rhs_mag_30Rnd_556x45_M855_PMAG_Tan", "rhs_mag_30Rnd_556x45_M855A1_PMAG", "rhs_mag_30Rnd_556x45_M855A1_PMAG_Tan" "murshun_cigs_matches", "murshun_cigs_cigpack"]; |
| 7 | +_defGrenades = []; |
| 8 | +_defUniforms = []; |
| 9 | +_defWeapons = ["CUP_hgun_Glock17_blk"]; |
| 10 | +_defVests = []; |
| 11 | +_defBackpacks = ["B_AssaultPack_mcamo"]; |
| 12 | +_defHeadgear = []; |
| 13 | +_defFacewear = []; |
| 14 | + |
| 15 | +// Polish Special Forces, all camo is Multicam |
| 16 | +// Classname of accurate gasmask = SE_S10_Gas_Mask |
| 17 | +// NO NIGHTVISION GOGGLES INCLUDED |
| 18 | + |
| 19 | + |
| 20 | +// Rifleman |
| 21 | +if (_role == "RFL") then |
| 22 | +{ |
| 23 | + _availableUniforms = ["rhs_uniform_g3_mc"]; |
| 24 | + _availableWeapons = ["rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d", "ACE_Vector"]; |
| 25 | + _availableMagazines = []; |
| 26 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]; |
| 27 | + _availableItems = ["rhsusf_acc_eotech_xps3", "rhsusf_acc_nt4_black", "rhsusf_acc_nt4_tan", "cup_optic_elcan_specterdr_coyote", "cup_optic_elcan_specterdr_black", "sma_eotech", "sma_eotechg33_3xdown", "sma_eotech552", "sma_eotech552_3xdown", "sma_eotech552_3xdown_des"]; |
| 28 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 29 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 30 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 31 | +}; |
| 32 | + |
| 33 | +// Team leader |
| 34 | +if (_role == "SL") then |
| 35 | +{ |
| 36 | + _availableUniforms = []; |
| 37 | + _availableWeapons = ["rhsusf_bino_lerca_1200_tan", "rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d"]; |
| 38 | + _availableMagazines = []; |
| 39 | + _availableVests = ["CUP_V_CPC_tlbelt_mc"]; |
| 40 | + _availableItems = ["ACRE_PRC152", "rhsusf_acc_eotech_xps3", "rhsusf_acc_nt4_black", "rhsusf_acc_nt4_tan", "cup_optic_elcan_specterdr_coyote", "cup_optic_elcan_specterdr_black", "sma_eotech", "sma_eotechg33_3xdown", "sma_eotech552", "sma_eotech552_3xdown", "sma_eotech552_3xdown_des"]; |
| 41 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 42 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 43 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 44 | +}; |
| 45 | + |
| 46 | +// Medic |
| 47 | +if (_role == "MED") then |
| 48 | +{ |
| 49 | + player setVariable ["ace_medical_medicclass", 2, true]; |
| 50 | + _availableUniforms = []; |
| 51 | + _availableWeapons = ["rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d"]; |
| 52 | + _availableMagazines = []; |
| 53 | + _availableVests = ["CUP_V_CPC_medicalbelt_mc"]; |
| 54 | + _availableItems = ["ACE_personalAidKit", "ACE_plasmaIV", "ACE_plasmaIV_250", "ACE_plasmaIV_500", "ACE_surgicalKit", "rhsusf_acc_eotech_xps3", "rhsusf_acc_nt4_black", "rhsusf_acc_nt4_tan", "cup_optic_elcan_specterdr_coyote", "cup_optic_elcan_specterdr_black", "sma_eotech", "sma_eotechg33_3xdown", "sma_eotech552", "sma_eotech552_3xdown", "sma_eotech552_3xdown_des"]; |
| 55 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 56 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 57 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 58 | +}; |
| 59 | + |
| 60 | +// SAW/LMG |
| 61 | +if (_role == "AR") then |
| 62 | +{ |
| 63 | + _availableUniforms = []; |
| 64 | + _availableWeapons = ["hlc_lmg_minimi_railed"]; |
| 65 | + _availableMagazines = []; |
| 66 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]; |
| 67 | + _availableItems = ["rhsusf_acc_ardec_m240", "rhsusf_acc_elcan"]; |
| 68 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 69 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 70 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 71 | +}; |
| 72 | + |
| 73 | +// MMG |
| 74 | +if (_role == "MMG") then |
| 75 | +{ |
| 76 | + _availableUniforms = []; |
| 77 | + _availableWeapons = []; |
| 78 | + _availableMagazines = []; |
| 79 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]]; |
| 80 | + _availableItems = []; |
| 81 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 82 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 83 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 84 | +}; |
| 85 | + |
| 86 | +// Grenadier |
| 87 | +if (_role == "GRD") then |
| 88 | +{ |
| 89 | + _availableUniforms = []; |
| 90 | + _availableWeapons = []; |
| 91 | + _availableMagazines = []; |
| 92 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]]; |
| 93 | + _availableItems = []; |
| 94 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 95 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 96 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 97 | +}; |
| 98 | + |
| 99 | +// LAT |
| 100 | +if (_role == "LAT") then |
| 101 | +{ |
| 102 | + _availableUniforms = []; |
| 103 | + _availableWeapons = ["rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d"]; |
| 104 | + _availableMagazines = []; |
| 105 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]]; |
| 106 | + _availableItems = []; |
| 107 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 108 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 109 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 110 | +}; |
| 111 | + |
| 112 | +// MAT |
| 113 | +if (_role == "MAT") then |
| 114 | +{ |
| 115 | + _availableUniforms = []; |
| 116 | + _availableWeapons = ["rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d"]; |
| 117 | + _availableMagazines = []; |
| 118 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]]; |
| 119 | + _availableItems = []; |
| 120 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 121 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 122 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 123 | +}; |
| 124 | + |
| 125 | +// HAT // no real sources for AT loadouts |
| 126 | +if (_role == "HAT") then |
| 127 | +{ |
| 128 | + _availableUniforms = []; |
| 129 | + _availableWeapons = ["rhs_weap_maaws", "rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d"]; |
| 130 | + _availableMagazines = []; |
| 131 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]]; |
| 132 | + _availableItems = []; |
| 133 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 134 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 135 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 136 | +}; |
| 137 | + |
| 138 | +// Engineer |
| 139 | +if (_role == "ENG") then |
| 140 | +{ |
| 141 | + player setVariable ["ACE_IsEngineer", 2, true]; |
| 142 | + _availableUniforms = []; |
| 143 | + _availableWeapons = ["rhs_weap_hk416d10", "rhs_weap_hk416d10_LMT_d"]; |
| 144 | + _availableMagazines = []; |
| 145 | + _availableVests = ["CUP_V_CPC_weaponsbelt_mc", "CUP_V_CPC_Fastbelt_mc", "CUP_V_CPC_Fast_mc", "CUP_V_CPC_lightbelt_mc"]]; |
| 146 | + _availableItems = ["rhsusf_acc_eotech_xps3", "rhsusf_acc_nt4_black", "rhsusf_acc_nt4_tan", "cup_optic_elcan_specterdr_coyote", "cup_optic_elcan_specterdr_black", "sma_eotech", "sma_eotechg33_3xdown", "sma_eotech552", "sma_eotech552_3xdown", "sma_eotech552_3xdown_des"]; |
| 147 | + _availableBackpacks = ["TAC_MTAP_MTP2"]; |
| 148 | + _availableHeadgear = ["rhsusf_opscore_mc_pelt", "rhsusf_opscore_mc_pelt_nsw", "rhsusf_opscore_ut_pelt_nsw_cam", "rhsusf_opscore_ut_pelt_nsw", "rhsusf_opscore_ut_pelt_cam", "rhsusf_opscore_ut_pelt"]; |
| 149 | + _availableFacewear = ["rhs_googles_clear", "CUP_RUS_Balaclava_tan", "CUP_G_ESS_BLK", "CUP_G_WristWatch"]; |
| 150 | +}; |
| 151 | + |
| 152 | +//Populate with predefined items and whatever is already in the crate |
| 153 | +_backpacks = (_availableBackpacks + _defBackpacks); |
| 154 | +_items = (_availableVests + _availableItems + _availableUniforms + _defUniforms + _defVests + _defItems + _defFacewear + _availableFacewear + _defHeadgear + _availableHeadgear); |
| 155 | +_magazines = (_availableMagazines + _defGrenades + _defMagazines); |
| 156 | +_weapons = (_availableWeapons + _defWeapons); |
| 157 | + |
| 158 | +if (!_rearmOnly) then { |
| 159 | + [_obj, _backpacks] call BIS_fnc_addVirtualBackpackCargo; |
| 160 | + [_obj, _items ] call BIS_fnc_addVirtualItemCargo; |
| 161 | + [_obj, _magazines] call BIS_fnc_addVirtualMagazineCargo; |
| 162 | + [_obj, _weapons ] call BIS_fnc_addVirtualWeaponCargo; |
| 163 | +} else { |
| 164 | + [_obj, _magazines] call BIS_fnc_addVirtualMagazineCargo; |
| 165 | + [_obj, (_availableItems + _defItems)] call BIS_fnc_addVirtualItemCargo; |
| 166 | +}; |
| 167 | + |
| 168 | + |
| 169 | +player setVariable ["EMF_KA_permittedGear", [_backpacks, _items, _magazines, _weapons], true]; |
0 commit comments