-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from PervonHarke/dev
v1.2.0
- Loading branch information
Showing
9 changed files
with
814 additions
and
75 deletions.
There are no files selected for viewing
151 changes: 151 additions & 0 deletions
151
PvH's EMF Kits/FICTIONAL/JSOK/JSOK_MODERN_FICTIONALNEARSOFUNIT_M81.sqf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
params["_role"]; | ||
private["_availableUniforms", "_availableWeapons", "_availableMagazines", "_availableVests", "_availableItems", "_availableBackpacks", "_availableHeadgear", "_availableFacewear", "_availableAttachments", "_availableGrenades"]; | ||
|
||
// Define default gear | ||
private _defItems = ["ACE_CableTie", "ACE_IR_Strobe_Item", "ACE_SpraypaintBlack", "ACE_SpraypaintBlue", "ACE_SpraypaintGreen", "ACE_SpraypaintRed", "ACE_wirecutter", "ItemcTabHCam", "ACE_rope12", "ACE_rope15", "ACE_rope18", "ACE_rope27", "ACE_rope36", "ItemAndroid", "rhsusf_ANPVS_15", "ACRE_PRC152", "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", "ACE_CableTie"]; | ||
private _defWeapons = ["Tier1_Glock22", "rhsusf_bino_lrf_Vector21", "rhs_weap_m72a7"]; | ||
private _defAttachments = []; | ||
private _defMagazines = ["Tier1_250Rnd_762x51_Belt_M80A1_EPR", "rhsusf_200Rnd_556x45_box", "rhs_mag_30Rnd_556x45_M855A1_PMAG", "Tier1_20Rnd_40SW_FMJ", "rhs_mag_M397_HET", "rhs_mag_M433_HEDP", "rhs_mag_M441_HE", "rhs_mag_M585_white", "rhs_mag_m661_green", "rhs_mag_m662_red", "rhs_mag_m713_Red", "rhs_mag_m714_White", "rhs_mag_m715_Green", "rhs_mag_m716_yellow"]; | ||
private _defGrenades = ["rhs_mag_m67", "rhs_mag_an_m8hc", "rhs_mag_an_m14_th3", "rhs_mag_m18_green", "rhs_mag_m18_purple", "rhs_mag_m18_red", "rhs_mag_m18_yellow", "ACE_CTS9", "ACE_M84", "ACE_Chemlight_IR", "ACE_Chemlight_Orange", "ACE_Chemlight_UltraHiOrange", "ACE_Chemlight_HiYellow", "ACE_Chemlight_HiWhite", "ACE_Chemlight_HiRed", "ACE_Chemlight_HiGreen", "ACE_Chemlight_HiBlue"]; | ||
private _defUniforms = ["CUP_U_CRYE_G3C_M81"]; | ||
private _defVests = []; | ||
private _defBackpacks = ["B_AssaultPack_rgr"]; | ||
private _defHeadgear = ["rhsusf_mich_bare_norotos_arc_alt"]; | ||
private _defFacewear = ["CUP_G_ESS_BLK"]; | ||
|
||
// | ||
// Made for Arma 3 Virtual MILSIM | ||
// | ||
// Made by Per_von_Harke | ||
// | ||
|
||
|
||
// Rifleman | ||
if (_role == "RFL") then { | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m4a1_blockII_KAC"]; | ||
_availableAttachments = ["tier1_eotech553_tan", "tier1_m4bii_la5_m300c_black_fl", "rhsusf_acc_grip2", "tier1_gangster_grip_black", "rhsusf_acc_rvg_blk"]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = []; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Team leader | ||
if (_role == "SL") then { | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m4a1_blockII_KAC"]; | ||
_availableAttachments = ["rhsusf_acc_su230a", "tier1_m4bii_la5_m300c_black_fl", "rhsusf_acc_grip2", "tier1_gangster_grip_black", "rhsusf_acc_rvg_blk"]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = []; | ||
_availableGrenades = []; | ||
_availableBackpacks = ["B_Kitbag_rgr"]; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Medic | ||
if (_role == "MED") then { | ||
player setVariable ["ace_medical_medicclass", 2, true]; | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m4a1_blockII_KAC"]; | ||
_availableAttachments = ["tier1_eotech553_tan", "tier1_m4bii_la5_m300c_black_fl", "rhsusf_acc_grip2", "tier1_gangster_grip_black", "rhsusf_acc_rvg_blk", ]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_medicalbelt_mc", "CUP_V_JPC_medicalbelt_rngr"]; | ||
_availableItems = ["ACE_personalAidKit", "ACE_plasmaIV", "ACE_plasmaIV_250", "ACE_plasmaIV_500", "ACE_surgicalKit", "kat_chestSeal", "kat_larynx", "kat_stethoscope", "adv_aceCPR_AED", "kat_stethoscope", "kat_Pulseoximeter", "kat_larynx", "kat_chestSeal"]; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// SAW/LMG | ||
if (_role == "AR") then { | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_minimi_para_railed"]; | ||
_availableAttachments = ["rhsusf_acc_su230a", "cup_acc_anpeq_15", "tier1_saw_bipod_kac", "tier1_gangster_grip_black"]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = []; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// MMG | ||
if (_role == "MMG") then { | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m240B"]; | ||
_availableAttachments = ["rhsusf_acc_su230a", "cup_acc_anpeq_15", "rhsusf_acc_ardec_m240", ""]; | ||
_availableMagazines = ["rhsusf_100Rnd_762x51_m80a1epr", "Tier1_100Rnd_762x51_Belt_M80A1_EPR"]; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = []; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Grenadier | ||
if (_role == "GRD") then { | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m4a1_blockII_M203"]; | ||
_availableAttachments = ["tier1_eotech553_tan", "tier1_m4bii_la5_m300c_black_fl", "rhsusf_acc_grip2", "tier1_gangster_grip_black", "rhsusf_acc_rvg_blk"]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = []; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// MAT | ||
if (_role == "MAT") then { | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m4a1_blockII_KAC", "launch_NLAW_F"]; | ||
_availableAttachments = ["tier1_eotech553_tan", "tier1_m4bii_la5_m300c_black_fl", "rhsusf_acc_grip2", "tier1_gangster_grip_black", "rhsusf_acc_rvg_blk"]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = []; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Engineer | ||
if (_role == "ENG") then { | ||
player setVariable ["ACE_IsEngineer", 2, true]; | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m4a1_blockII_KAC"]; | ||
_availableAttachments = ["tier1_eotech553_tan", "tier1_m4bii_la5_m300c_black_fl", "rhsusf_acc_grip2", "tier1_gangster_grip_black", "rhsusf_acc_rvg_blk"]; | ||
_availableMagazines = []; | ||
_availableVests = ["CUP_V_JPC_communicationsbelt_rngr", "CUP_V_JPC_Fastbelt_rngr", "CUP_V_JPC_communicationsbelt_mc", "CUP_V_JPC_Fastbelt_mc"]; | ||
_availableItems = ["ToolKit"]; | ||
_availableGrenades = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Return loadout arrays | ||
[ | ||
"1.0", // loadout version | ||
[ | ||
(_availableBackpacks + _defBackpacks), | ||
(_availableVests + _defVests), | ||
(_availableUniforms + _defUniforms), | ||
(_availableFacewear + _defFacewear), | ||
(_defHeadgear + _availableHeadgear), | ||
(_defAttachments + _availableAttachments), | ||
(_availableMagazines + _defGrenades + _defMagazines + _availableGrenades), | ||
(_availableWeapons + _defWeapons), | ||
(_availableItems + _defItems) | ||
] | ||
]; |
105 changes: 105 additions & 0 deletions
105
PvH's EMF Kits/FICTIONAL/MISC/CHERNARUS_1992_FSB_TTKSO.sqf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
private["_availableUniforms","_availableItems", "_availableFacewear", "_availableVests", "_availableWeapons", "_availableHeadgear", "_availableBackpacks", "_availableMagazines", "_defFacewear", "_defItems", "_defVests", "_defWeapons", "_defGrenades", "_defHeadgear", "_defUniforms", "_defBackpacks", "_defMagazines", "_magazines", "_weapons", "_backpacks", "_items"]; | ||
params["_role", "_obj", "_rearmOnly"]; | ||
_availableUniforms = []; _availableWeapons = []; _availableMagazines = []; _availableVests = []; _availableItems = []; _availableBackpacks = []; _availableHeadgear = []; _availableFacewear = []; | ||
|
||
// Define default gear | ||
_defItems = ["kat_guedel", "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"]; | ||
_defMagazines = ["CUP_30Rnd_545x39_AK_M", "CUP_45Rnd_TE4_LRT4_Green_Tracer_545x39_RPK_M", "CUP_5Rnd_127x108_KSVK_M"]; | ||
_defGrenades = ["rhs_mag_rgd5", "rhs_mag_f1", "rhs_mag_rdg2_white", "rhs_mag_rdg2_black", "rhs_mag_nspn_green", "rhs_mag_nspn_red", "rhs_mag_nspn_yellow"]; | ||
_defUniforms = ["rhs_uniform_afghanka_ttsko"]; | ||
_defWeapons = ["rhs_weap_makarov_pm"]; | ||
_defVests = []; | ||
_defBackpacks = []; | ||
_defHeadgear = ["UK3CB_H_Beanie_02_BLK", "UK3CB_H_Bandanna_Camo", "H_Bandanna_khk", "rhs_fieldcap_m88_ttsko"]; | ||
_defFacewear = ["rhs_scarf", "G_Balaclava_blk", "CUP_RUS_Balaclava_blk", "CUP_G_RUS_Balaclava_Ratnik"]; | ||
|
||
|
||
// | ||
// Loadout made by Per_von_Harke | ||
// | ||
|
||
// Rifleman | ||
if (_role == "RFL") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74_Early", "CUP_arifle_AKS74U", "CUP_arifle_AKS74_Early"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_6b2_lifchik", "rhs_6b2_chicom", "rhs_6b2_holster", "rhs_6b2"]; | ||
_availableItems = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["rhs_stsh81"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Squad Leader | ||
if (_role == "SL") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74_Early", "CUP_arifle_AKS74U", "CUP_arifle_AKS74_Early"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_6b2_lifchik", "rhs_6b2_chicom", "rhs_6b2_holster", "rhs_6b2"]; | ||
_availableItems = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["rhs_stsh81"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Medic | ||
if (_role == "MED") then | ||
{ | ||
[player, "UK3CB_BAF_Insignia_RedCross"] call BIS_fnc_setUnitInsignia; | ||
player setVariable ["ace_medical_medicclass", 2, true]; | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74_Early", "CUP_arifle_AKS74U", "CUP_arifle_AKS74_Early"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_6b2_lifchik", "rhs_6b2_chicom", "rhs_6b2_holster", "rhs_6b2"]; | ||
_availableItems = ["ACE_personalAidKit", "ACE_plasmaIV", "ACE_plasmaIV_250", "ACE_plasmaIV_500", "ACE_surgicalKit", "kat_stethoscope"]; | ||
_availableBackpacks = ["CUP_B_CivPack_WDL"]; | ||
_availableHeadgear = ["rhs_stsh81"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// SAW/LMG | ||
if (_role == "AR") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_RPK74_45"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_6b2_RPK"]; | ||
_availableItems = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["rhs_stsh81"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Marksman | ||
if (_role == "MRK") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["rhs_weap_m76", "CUP_srifle_ksvk"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_6b2_SVD"]; | ||
_availableItems = ["cup_optic_pso_3", "cup_optic_pso_1_1"]; | ||
_availableBackpacks = []; | ||
_availableHeadgear = []; | ||
_availableFacewear = []; | ||
}; | ||
|
||
//Populate with predefined items and whatever is already in the crate | ||
_backpacks = (_availableBackpacks + _defBackpacks); | ||
_items = (_availableVests + _availableItems + _availableUniforms + _defUniforms + _defVests + _defItems + _defFacewear + _availableFacewear + _defHeadgear + _availableHeadgear); | ||
_magazines = (_availableMagazines + _defGrenades + _defMagazines); | ||
_weapons = (_availableWeapons + _defWeapons); | ||
|
||
if (!_rearmOnly) then { | ||
[_obj, _backpacks] call BIS_fnc_addVirtualBackpackCargo; | ||
[_obj, _items ] call BIS_fnc_addVirtualItemCargo; | ||
[_obj, _magazines] call BIS_fnc_addVirtualMagazineCargo; | ||
[_obj, _weapons ] call BIS_fnc_addVirtualWeaponCargo; | ||
} else { | ||
[_obj, _magazines] call BIS_fnc_addVirtualMagazineCargo; | ||
[_obj, (_availableItems + _defItems)] call BIS_fnc_addVirtualItemCargo; | ||
}; | ||
|
||
|
||
player setVariable ["EMF_KA_permittedGear", [_backpacks, _items, _magazines, _weapons], true]; |
120 changes: 120 additions & 0 deletions
120
PvH's EMF Kits/FICTIONAL/MISC/FICT-AFRICAN_modern_SOF_Tan.sqf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
private["_availableUniforms","_availableItems", "_availableFacewear", "_availableVests", "_availableWeapons", "_availableHeadgear", "_availableBackpacks", "_availableMagazines", "_defFacewear", "_defItems", "_defVests", "_defWeapons", "_defGrenades", "_defHeadgear", "_defUniforms", "_defBackpacks", "_defMagazines", "_magazines", "_weapons", "_backpacks", "_items"]; | ||
params["_role", "_obj", "_rearmOnly"]; | ||
_availableUniforms = []; _availableWeapons = []; _availableMagazines = []; _availableVests = []; _availableItems = []; _availableBackpacks = []; _availableHeadgear = []; _availableFacewear = []; | ||
|
||
// Define default gear | ||
_defItems = ["cup_muzzle_tgpa_desert", "kat_guedel", "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"]; | ||
_defMagazines = ["CUP_30Rnd_545x39_AK74M_desert_M", "CUP_100Rnd_TE4_LRT4_762x54_PK_Tracer_Green_M", "rhs_VOG25P", "rhs_VOG25", "rhs_VG40TB", "rhs_VG40SZ", "rhs_VG40MD", "rhs_GRD40_Red", "rhs_GRD40_Green", "rhs_GRD40_White", "rhs_VG40OP_green", "rhs_VG40OP_red", "rhs_VG40OP_white"]; | ||
_defGrenades = ["rhs_mag_rgd5", "rhs_mag_f1", "rhs_mag_rdg2_white", "rhs_mag_rdg2_black", "rhs_mag_nspn_green", "rhs_mag_nspn_red", "rhs_mag_nspn_yellow"]; | ||
_defUniforms = ["rhs_uniform_gorka_1_a"]; | ||
_defWeapons = []; | ||
_defVests = []; | ||
_defBackpacks = ["rhs_rd54_vest", "rhs_rd54", "rhs_rd54_flora1", ""]; | ||
_defHeadgear = []; | ||
_defFacewear = ["FGN_CauR_Shemag_brown", "LEN_Ess1"]; | ||
|
||
// | ||
// Loadout made by Per_von_Harke | ||
// | ||
// Loadout is supposed to be some Angolan SOF unit that has pretty modern AK-74Ms. | ||
// All loadouts are pretty light for long distance travel in deserts. | ||
|
||
// Rifleman | ||
if (_role == "RFL") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74M_railed_afg_desert", "CUP_arifle_AK74M_railed_desert"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_lifchik", "rhs_lifchik_light", "rhs_6sh92_vsr"]; | ||
_availableItems = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["H_Bandanna_khk", "H_Bandanna_cbr", "H_Booniehat_khk", "H_Booniehat_tan", "usm_bdu_boonie_odg", "usm_bdu_boonie_wdl", "usm_bdu_boonie_portliz", "usm_bdu_boonie_tgrstp"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Squad Leader | ||
if (_role == "SL") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74M_railed_afg_desert", "CUP_arifle_AK74M_railed_desert", "rhssaf_zrak_rd7j"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_6sh92_vsr_radio", "rhs_lifchik_NCO"]; | ||
_availableItems = []; | ||
_availableBackpacks = ["rhs_r148"]; | ||
_availableHeadgear = ["CUP_H_Beret_HIL"]; | ||
_availableFacewear = ["TRYK_SBeard_BW", "TRYK_SBeard", "TRYK_SBeard_BK"]; | ||
}; | ||
|
||
// Medic | ||
if (_role == "MED") then | ||
{ | ||
[player, "UK3CB_BAF_Insignia_RedCross"] call BIS_fnc_setUnitInsignia; | ||
player setVariable ["ace_medical_medicclass", 2, true]; | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74M_railed_afg_desert", "CUP_arifle_AK74M_railed_desert"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_lifchik", "rhs_lifchik_light", "rhs_6sh92_vsr"]; | ||
_availableItems = ["ACE_personalAidKit", "ACE_plasmaIV", "ACE_plasmaIV_250", "ACE_plasmaIV_500", "ACE_surgicalKit", "kat_stethoscope", "kat_stethoscope", "kat_larynx", "kat_chestSeal"]; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["H_Bandanna_khk", "H_Bandanna_cbr", "H_Booniehat_khk", "H_Booniehat_tan", "usm_bdu_boonie_odg", "usm_bdu_boonie_wdl", "usm_bdu_boonie_portliz", "usm_bdu_boonie_tgrstp"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Grenadier | ||
if (_role == "GRD") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74M_GL_railed_desert"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_lifchik_vog", "rhs_6sh92_vsr_vog"]; | ||
_availableItems = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["H_Bandanna_khk", "H_Bandanna_cbr", "H_Booniehat_khk", "H_Booniehat_tan", "usm_bdu_boonie_odg", "usm_bdu_boonie_wdl", "usm_bdu_boonie_portliz", "usm_bdu_boonie_tgrstp"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// LAT | ||
if (_role == "LAT") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_arifle_AK74M_railed_afg_desert", "CUP_arifle_AK74M_railed_desert", "rhs_weap_rpg26"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_lifchik", "rhs_lifchik_light", "rhs_6sh92_vsr"]; | ||
_availableItems = []; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["H_Bandanna_khk", "H_Bandanna_cbr", "H_Booniehat_khk", "H_Booniehat_tan", "usm_bdu_boonie_odg", "usm_bdu_boonie_wdl", "usm_bdu_boonie_portliz", "usm_bdu_boonie_tgrstp"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
// Medium Machinegunner | ||
if (_role == "MMG") then | ||
{ | ||
_availableUniforms = []; | ||
_availableWeapons = ["CUP_lmg_Pecheneg_desert"]; | ||
_availableMagazines = []; | ||
_availableVests = ["rhs_lifchik_vog", "rhs_6sh92_vsr_vog"]; | ||
_availableItems = ["cup_muzzle_snds_kzrzp_pk_desert"]; | ||
_availableBackpacks = []; | ||
_availableHeadgear = ["H_Bandanna_khk", "H_Bandanna_cbr", "H_Booniehat_khk", "H_Booniehat_tan", "usm_bdu_boonie_odg", "usm_bdu_boonie_wdl", "usm_bdu_boonie_portliz", "usm_bdu_boonie_tgrstp"]; | ||
_availableFacewear = []; | ||
}; | ||
|
||
|
||
//Populate with predefined items and whatever is already in the crate | ||
_backpacks = (_availableBackpacks + _defBackpacks); | ||
_items = (_availableVests + _availableItems + _availableUniforms + _defUniforms + _defVests + _defItems + _defFacewear + _availableFacewear + _defHeadgear + _availableHeadgear); | ||
_magazines = (_availableMagazines + _defGrenades + _defMagazines); | ||
_weapons = (_availableWeapons + _defWeapons); | ||
|
||
if (!_rearmOnly) then { | ||
[_obj, _backpacks] call BIS_fnc_addVirtualBackpackCargo; | ||
[_obj, _items ] call BIS_fnc_addVirtualItemCargo; | ||
[_obj, _magazines] call BIS_fnc_addVirtualMagazineCargo; | ||
[_obj, _weapons ] call BIS_fnc_addVirtualWeaponCargo; | ||
} else { | ||
[_obj, _magazines] call BIS_fnc_addVirtualMagazineCargo; | ||
[_obj, (_availableItems + _defItems)] call BIS_fnc_addVirtualItemCargo; | ||
}; | ||
|
||
|
||
player setVariable ["EMF_KA_permittedGear", [_backpacks, _items, _magazines, _weapons], true]; |
Oops, something went wrong.