A3A_BRIEFING\briefing_BLUEFOR_ENEMY.html ZV A3A_BRIEFING\briefing_BLUEFOR_TASKS.html DW A3A_BRIEFING\briefing_MISSC.html W A3A_BRIEFING\briefing_MISSION_DESCRIPTION.html 8|W A3A_BRIEFING\briefing_OPFOR_ENEMY.html >ZV A3A_BRIEFING\briefing_OPFOR_TASKS.html XW a3a_client_scripts.sqf ֚Wu A3A_EQUIPMENT\equip_aaf.sqf kVT A3A_EQUIPMENT\equip_csat.sqf kVY A3A_EQUIPMENT\equip_fia.sqf kV) A3A_EQUIPMENT\equip_nato.sqf kVW A3A_EQUIPMENT\vehicles_aaf.sqf kVq A3A_EQUIPMENT\vehicles_csat.sqf kV A3A_EQUIPMENT\vehicles_fia.sqf kVx A3A_EQUIPMENT\vehicles_nato.sqf kV{ a3a_modules.hpp kV A3A_MODULES\AddonsCheck\init.sqf kV, A3A_MODULES\NamesInVehicle\a3ru_onMouseZChanged.sqf kVw A3A_MODULES\NamesInVehicle\fn_namesInVehicle.sqf kV A3A_MODULES\NamesInVehicle\init.sqf kV A3A_MODULES\PlayerTags\init.sqf kV A3A_MODULES\StaticDrag\fn_onKeyDown.sqf kV A3A_MODULES\StaticDrag\fn_staticCanDrag.sqf kV A3A_MODULES\StaticDrag\fn_staticDrag.sqf kVs A3A_MODULES\StaticDrag\fn_staticRelease.sqf kV A3A_MODULES\StaticDrag\fn_staticRotate.sqf kV A3A_MODULES\StaticDrag\init.sqf kV a3a_server_scripts.sqf WP A3A_SETUP\a3a_header.hpp kV A3A_SETUP\a3a_parameters.hpp #WA add_med.sqf PxVt add_med_med.sqf ZVV bn_crew_control.sqf kVf description.ext IwV detach.sqf WE Equipment\BLU_F\AT.sqf WW Equipment\BLU_F\CREW.sqf Wt Equipment\BLU_F\GL.sqf W Equipment\BLU_F\LAR_TL.sqf W Equipment\BLU_F\MED.sqf Wq Equipment\BLU_F\MG.sqf eWS Equipment\BLU_F\MG_AST.sqf W Equipment\BLU_F\MGH.sqf
W Equipment\BLU_F\MGH_AB.sqf W Equipment\BLU_F\MGH_AST.sqf W Equipment\BLU_F\PILOT.sqf W Equipment\BLU_F\REC_AR.sqf W` Equipment\BLU_F\REC_AT.sqf Wx Equipment\BLU_F\REC_RM.sqf We Equipment\BLU_F\REC_SL.sqf W Equipment\BLU_F\REC_SN.sqf W Equipment\BLU_F\REC_TL.sqf WQ Equipment\BLU_F\SL.sqf W Equipment\BLU_F\SMAW.sqf #W Equipment\BLU_F\SMAW_AST.sqf lW( Equipment\BLU_F\SN.sqf ɅW Equipment\BLU_F\SNP.sqf WH Equipment\BLU_F\SPT.sqf W' Equipment\BLU_F\TL.sqf
W Equipment\OP_F\CREW.sqf &W Equipment\OP_F\KO.sqf W Equipment\OP_F\MED.sqf [W Equipment\OP_F\MED_KO.sqf /WS Equipment\OP_F\MG.sqf ދW Equipment\OP_F\MG_AST.sqf yWv Equipment\OP_F\RPG.sqf MWS Equipment\OP_F\RPG_AST.sqf lW Equipment\OP_F\SN.sqf W Equipment\OP_F\ZKO.sqf WR Equipment\unitprocessor.sqf ZV Equipment\veh_RU\BMP.sqf {WT Equipment\veh_RU\BMP3.sqf W Equipment\veh_RU\GAZ_MED.sqf ZV Equipment\veh_RU\OPU.sqf W Equipment\veh_RU\OTD.sqf lV Equipment\veh_RU\ZSU.sqf mW Equipment\veh_RU\ZU.sqf NKW Equipment\veh_US\HELI.sqf W Equipment\veh_US\HELI_AMMO.sqf W_ Equipment\veh_US\HMW.sqf W: Equipment\veh_US\HMW2.sqf -W Equipment\veh_US\HMW_HQ.sqf W Equipment\veh_US\HMW_MG.sqf pWo Equipment\veh_US\HMW_SMAW.sqf W Equipment\veh_US\HMWM2.sqf :KWu Equipment\veh_US\HMWMK19.sqf |Vo Equipment\veh_US\LAV.sqf |VC Equipment\veh_US\REC_AMMO.sqf V? Equipment\veh_US\SNP_AMMO.sqf ZV Equipment\vehprocessor.sqf ZVH fnc_inCrew_a3.sqf ZVn init.sqf UW^ loadscreen.jpg ZV local_objects.sqf lW#6 med_co.paa ZVa mis_funcs\fn_preinit.sqf ZV mission.sqm Wj mission_description.hpp ZV mission_parameters.hpp kV6
В районе фабрики боеприпасов расположены 2 мотострелковых взвода пехоты противника. Также известно о взводе на БМП, движущихся к фабрике с юго-запада.
Захватить фабрику боеприпасов. Время на проведение операции - 120 минут.
- Вертолеты CH-53E имеют возможность сбрасывать ящики со снаряжением на парашютах.
- Занимать место наводчика-оператора в LAV-25A2 могут только командиры отделений LAR и члены экипажей LAV-25A2.
Общие условности:
- Для захвата фабрики необходимо присутствие в зоне не менее 7 бойцов синей стороны и не более 2 бойцов красной стороны.
- Всем бойцам запрещено стрелять по месту появления противника (respawn) первые 3 минуты боя (сигнал War begin).
- Всем бойцам запрещено надевать форму, каски (головные уборы и шлемы), бронежилеты и разгрузки противника.
- Летная модель на выбор пилотов.
Условности для синей стороны.
- Вертолетная высадка разрешена только к северо-востоку от синего маркера (в этой зоне средства ПВО нейтрализованы силами разведки). Вертолетам СН-53Е запрещено пересекать синий маркер с десантом на борту и техникой на тросах.
- Пехоте запрещено садиться и находиться в технике, подцепленной к вертолету.
- Вертолету AH-1Z запрещен взлет в течение 14 минут после начала игры (сигнал War begin).
- Всем бойцам синей стороны запрещено взаимодействовать с катерами до уничтожения/выведения из строя обоих вертолетов CH-53E.
- Всем бойцам синей стороны запрещено намеренно уничтожать/выводить из строя вертолеты CH-53E.
- Тепловизор в вертолете AH-1Z отключен.
Условности для красной стороны.
- Всем бойцам красной стороны запрещено стрелять по авианосцу противника.
- Всем бойцам красной стороны запрещено находиться в красном сетчатом маркере.
Фабрика боеприпасов
Версия: 8
Автор: [ODK]AimFire
Описание миссии:
Операция морской пехоты США по захвату фабрики, проиводящей боеприпасы для частей РА, расположенных на острове Алтис. Прекращение поставок боеприпасов должно значительно ослабить противника и предоставит дальнейшую возможность по захвату всего острова, поэтому в командовании ВС США приняли решение атаковать эту фабрику.
С авианосца в 3 км от берега в нашу сторону выдвинулись 2 взвода морской пехоты США на вертолетах. Также ожидается поддержка в виде взвода разведки на машинах LAV-25 и поддержка с воздуха.
На протяжении 120 минут удерживать оборону фабрики боеприпасов. В нашем распоряжении имеются ЗУ-23-2.// Клиентские скрпты, выполняются после инициализации платформы// INDEPENDENT EQUIPMENT
private ["_e_prim", "_e_prim_mag", "_e_mod1", "_e_mod2", "_e_mod3", "_e_sec", "_e_sec_mag", "_e_sec_mods", "_e_side", "_e_side_mag", "_e_items", "_e_back", "_wrong"];
_wrong = false;
private ["_standartMed", "_extendedMed"];
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_standartMed = [["FirstAidKit", 3]];
_extendedMed = [["FirstAidKit", 15], "Medikit"];
};
case 1: {
_standartMed = [["ACE_fieldDressing", 10], ["ACE_morphine", 3], "ACE_epinephrine"];
_extendedMed = [["ACE_fieldDressing", 20], ["ACE_morphine", 17], ["ACE_epinephrine", 10]];
};
case 2: {
_standartMed = [["ACE_fieldDressing", 3], ["ACE_elasticBandage", 3], ["ACE_packingBandage", 3], ["ACE_quikclot", 3], "ACE_morphine", "ACE_epinephrine", "ACE_tourniquet", "ACE_salineIV_250"];
_extendedMed = [["ACE_fieldDressing", 15], ["ACE_elasticBandage", 20], ["ACE_packingBandage", 20], ["ACE_quikclot", 15], ["ACE_atropine", 12], ["ACE_morphine", 8], ["ACE_epinephrine", 8], ["ACE_tourniquet", 5], ["ACE_salineIV_500", 6], ["ACE_surgicalKit", 3], ["ACE_personalAidKit", 3]];
};
};
switch toUpper(_this) do {
default {
hintC "WARNING! Wrong slot name in unit initialization! More in diag log";
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
_wrong = true;
};
case "UNARMED": {
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
};
// ------------------ Пехотное отделение ------------------------ //
case "SL": { // Командир отделения
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Rangefinder"] + _standartMed;
_e_back = ["tf_anprc155", "B_AssaultPack_rgr"];
};
case "TL": { // Старший стрелок
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_rgr"];
};
case "GL": { // Стрелок (ГП)
_e_prim = ["arifle_Mk20_GL_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["1Rnd_HE_Grenade_shell",6],["1Rnd_SmokePurple_Grenade_shell",2],["HandGrenade", 2],["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr"];
};
case "AR": { // Пулеметчик
_e_prim = ["LMG_Mk200_F"];
_e_prim_mag = [
[["200Rnd_65x39_cased_Box", 3],["200Rnd_65x39_cased_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_TacticalPack_rgr"];
};
case "AT": { // Стрелок (ПТ)
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_NLAW_F"];
_e_sec_mag = [[["NLAW_F", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_rgr"];
};
case "ATT": { // Оператор ПТРК (Titan Compact)
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_I_Titan_short_F"];
_e_sec_mag = [[["Titan_AT", 1],["Titan_AP", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_Bergen_rgr"];
};
case "AA": { // Оператор ПЗРК (Titan Launcher)
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_I_Titan_F"];
_e_sec_mag = [[["Titan_AA", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_Bergen_rgr"];
};
case "RM": { // Стрелок
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr"];
};
case "DM": { // Снайпер (Marksman)
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_MRCO","optic_SOS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "Binocular", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr"];
};
case "MED": { // Медик
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _extendedMed;
_e_back = ["B_Kitbag_rgr"];
};
// -------------------- Отряд дайверов ----------------- //
case "D_TL": { // Дайвер - Командир отряда
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular"] + _standartMed;
_e_back = ["tf_anprc155","B_FieldPack_blk","B_AssaultPack_blk"];
};
case "D": { // Дайвер
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_FieldPack_blk","B_AssaultPack_blk"];
};
case "D_ES": { // Дайвер - Специалист по взрывчатке
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_FieldPack_blk","B_AssaultPack_blk"];
};
// ----------------- Отделение СпН --------------------- //
case "SPN_SL": { // СпН - Командир отделения
_e_prim = ["arifle_Mk20C_F","arifle_Mk20_GL_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2],["1Rnd_Smoke_Grenade_shell", 2], ["1Rnd_HE_Grenade_shell", 8], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_M"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_tws","optic_MRCO","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Rangefinder"] + _standartMed;
_e_back = ["tf_anprc155","B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SPN_AR": { // СпН - Пулеметчик
_e_prim = ["LMG_Mk200_F"];
_e_prim_mag = [
[["200Rnd_65x39_cased_Box", 3],["200Rnd_65x39_cased_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_tws_mg","optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SPN_AT": { // СпН - Стрелок (ПТ)
_e_prim = ["arifle_Mk20C_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_M"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_NLAW_F"];
_e_sec_mag = [[["NLAW_F", 2]]];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SPN_DM": { // СпН - Снайпер (Marksman)
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 10], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_B"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_MRCO","optic_SOS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS","ItemMap", "ItemWatch", "Rangefinder", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SPN_ES": { // СпН - Специалист по взрывчатке
_e_prim = ["arifle_Mk20C_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2],["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2],["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_M"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_MRCO","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SPN_OP": { // СпН - Стрелок
_e_prim = ["arifle_Mk20C_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_M"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_MRCO","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SPN_MED": { // СпН - Медик
_e_prim = ["arifle_Mk20C_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_M"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_MRCO","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP","Binocular"] + _extendedMed;
_e_back = ["B_Kitbag_rgr"];
};
case "SPN_JTAC": { // СпН - Наводчик-наблюдатель
_e_prim = ["arifle_Mk20C_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Laserbatteries",1],["Chemlight_green",2]],
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Laserbatteries",1],["Chemlight_green",2]]
];
_e_mod1 = ["muzzle_snds_M"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_MRCO","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Laserdesignator"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
// ----------------- Снайперский отряд ---------------- //
case "SNIPER": { // Снайпер
_e_prim = ["srifle_GM6_F"];
_e_prim_mag = [
[["5Rnd_127x108_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_LRPS","optic_DMS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = [];
};
case "SPOTTER": { // Наводчик
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 9], ["HandGrenade", 2], ["SmokeShell", 2], ["5Rnd_127x108_Mag", 4],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_DMS","optic_MRCO"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Rangefinder", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_Kitbag_rgr"];
};
case "SNIPER_AS": { // Помощник
_e_prim = ["arifle_Mk20_GL_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["30Rnd_556x45_Stanag_Tracer_Yellow", 2], ["1Rnd_HE_Grenade_shell", 6],["1Rnd_SmokePurple_Grenade_shell",2], ["HandGrenade", 2], ["SmokeShell", 2], ["ClaymoreDirectionalMine_Remote_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["Laserbatteries",1],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_MRCO","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_snds_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS","ItemMap", "ItemWatch", "NVGoggles_INDEP", "Laserdesignator", "ACE_EarPlugs"] + _standartMed;
_e_back = ["tf_anprc155","B_AssaultPack_rgr","B_Kitbag_rgr"];
};
// ------------------ Остальные классы -------------------//
case "CREW": { // Экипаж
_e_prim = ["arifle_Mk20C_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2],["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = [];
};
case "PILOT": { // Пилот / Экипаж вертолета
_e_prim = ["arifle_Mk20C_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellYellow",1],["SmokeShellRed",1],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = [];
};
case "PILOT_P": { // Пилот самолета
_e_prim = ["hgun_PDW2000_F"];
_e_prim_mag = [
[["30Rnd_9x21_Mag", 2], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellYellow",1],["SmokeShellRed",1],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_Parachute"];
};
case "UAV_OP": { // Оператор БПА
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","O_UavTerminal", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["I_UAV_01_backpack_F","B_AssaultPack_rgr"];
};
case "SAP": { // Сапер
_e_prim = ["arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_green",2],["ATMine_Range_Mag",1],["APERSMine_Range_Mag",2],["APERSBoundingMine_Range_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["APERSTripMine_Wire_Mag",4]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_Kitbag_rgr"];
};
};
if (_wrong) then {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back, _wrong]
} else {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back]
};// OPFOR EQUIPMENT
private ["_e_prim", "_e_prim_mag", "_e_mod1", "_e_mod2", "_e_mod3", "_e_sec", "_e_sec_mag", "_e_sec_mods", "_e_side", "_e_side_mag", "_e_items", "_e_back", "_wrong"];
_wrong = false;
private ["_standartMed", "_extendedMed"];
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_standartMed = [["FirstAidKit", 3]];
_extendedMed = [["FirstAidKit", 15], "Medikit"];
};
case 1: {
_standartMed = [["ACE_fieldDressing", 10], ["ACE_morphine", 3], "ACE_epinephrine"];
_extendedMed = [["ACE_fieldDressing", 20], ["ACE_morphine", 17], ["ACE_epinephrine", 10]];
};
case 2: {
_standartMed = [["ACE_fieldDressing", 3], ["ACE_elasticBandage", 3], ["ACE_packingBandage", 3], ["ACE_quikclot", 3], "ACE_morphine", "ACE_epinephrine", "ACE_tourniquet", "ACE_salineIV_250"];
_extendedMed = [["ACE_fieldDressing", 15], ["ACE_elasticBandage", 20], ["ACE_packingBandage", 20], ["ACE_quikclot", 15], ["ACE_atropine", 12], ["ACE_morphine", 8], ["ACE_epinephrine", 8], ["ACE_tourniquet", 5], ["ACE_salineIV_500", 6], ["ACE_surgicalKit", 3], ["ACE_personalAidKit", 3]];
};
};
switch toUpper(_this) do {
default {
hintC "WARNING! Wrong slot name in unit initialization! More in diag log";
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
_wrong = true;
};
case "UNARMED": {
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
};
// ------------------ Пехотное отделение ------------------------ //
case "SL": { // Командир отделения
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 6],["30Rnd_65x39_caseless_green_mag_Tracer", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Nightstalker","optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Rangefinder"] + _standartMed;
_e_back = ["tf_mr3000", "B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "TL": { // Старший стрелок
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 6],["30Rnd_65x39_caseless_green_mag_Tracer", 3], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "GL": { // Стрелок (ГП)
_e_prim = ["arifle_Katiba_GL_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["1Rnd_HE_Grenade_shell",6],["1Rnd_SmokePurple_Grenade_shell",2],["HandGrenade", 2],["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "AR": { // Пулеметчик
_e_prim = ["LMG_Zafir_F"];
_e_prim_mag = [
[["150Rnd_762x51_Box", 3],["150Rnd_762x51_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_TacticalPack_ocamo"];
};
case "AT": { // Стрелок (ПТ)
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_RPG32_F"];
_e_sec_mag = [[["RPG32_F", 1],["RPG32_HE_F", 1]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "ATT": { // Оператор ПТРК (Titan Compact)
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_O_Titan_short_F"];
_e_sec_mag = [[["Titan_AT", 1],["Titan_AP", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_OPFOR", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_BergenG","B_Bergen_sgg"];
};
case "AA": { // Оператор ПЗРК (Titan Launcher)
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_O_Titan_F"];
_e_sec_mag = [[["Titan_AA", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_OPFOR", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_BergenG","B_Bergen_sgg"];
};
case "RM": { // Стрелок
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "DM": { // Снайпер (Marksman)
_e_prim = ["srifle_DMR_01_F"];
_e_prim_mag = [
[["10Rnd_762x51_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_DMS","optic_Hamr"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "Binocular","NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "MED": { // Медик
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_OPFOR"] + _extendedMed;
_e_back = ["B_Kitbag_cbr","B_Kitbag_sgg"];
};
// -------------------- Отряд дайверов ----------------- //
case "D_TL": { // Дайвер - Командир отряда
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular"] + _standartMed;
_e_back = ["tf_mr3000","B_FieldPack_blk","B_AssaultPack_blk"];
};
case "D": { // Дайвер
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_FieldPack_blk","B_AssaultPack_blk"];
};
case "D_ES": { // Дайвер - Специалист по взрывчатке
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_FieldPack_blk","B_AssaultPack_blk"];
};
// ----------------- Отделение СпН --------------------- //
case "SPN_SL": { // СпН - Командир отделения
_e_prim = ["arifle_Katiba_C_F","arifle_Katiba_GL_F","arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2],["1Rnd_Smoke_Grenade_shell", 2], ["1Rnd_HE_Grenade_shell", 8], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Nightstalker","optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Rangefinder"] + _standartMed;
_e_back = ["tf_mr3000","B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_AR": { // СпН - Пулеметчик
_e_prim = ["LMG_Zafir_F"];
_e_prim_mag = [
[["150Rnd_762x51_Box", 3],["150Rnd_762x51_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_AT": { // СпН - Стрелок (ПТ)
_e_prim = ["arifle_Katiba_C_F","arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_RPG32_F"];
_e_sec_mag = [[["RPG32_F", 1],["RPG32_HE_F",1]]];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_DM": { // СпН - Снайпер (Marksman)
_e_prim = ["srifle_DMR_01_F"];
_e_prim_mag = [
[["10Rnd_762x51_Mag", 10], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_B"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Hamr","optic_DMS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS","ItemMap", "ItemWatch", "Rangefinder", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_ES": { // СпН - Специалист по взрывчатке
_e_prim = ["arifle_Katiba_C_F","arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2],["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2],["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_OP": { // СпН - Стрелок
_e_prim = ["arifle_Katiba_C_F","arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_MED": { // СпН - Медик
_e_prim = ["arifle_Katiba_C_F","arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR","Binocular"] + _extendedMed;
_e_back = ["B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SPN_JTAC": { // СпН - Наводчик-наблюдатель
_e_prim = ["arifle_Katiba_C_F","arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Laserbatteries",1],["Chemlight_red",2]],
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Laserbatteries",1],["Chemlight_red",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_02_Yorris_F"];
_e_side_mag = [[["6Rnd_45ACP_Cylinder", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Laserdesignator"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
// ----------------- Снайперский отряд ---------------- //
case "SNIPER": { // Снайпер
_e_prim = ["srifle_GM6_F"];
_e_prim_mag = [
[["5Rnd_127x108_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_LRPS","optic_DMS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = [];
};
case "SPOTTER": { // Наводчик
_e_prim = ["srifle_DMR_01_F"];
_e_prim_mag = [
[["10Rnd_762x51_Mag", 9], ["HandGrenade", 2], ["SmokeShell", 2], ["5Rnd_127x108_Mag", 4],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_DMS","optic_Hamr"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Rangefinder", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
case "SNIPER_AS": { // Помощник
_e_prim = ["arifle_Katiba_GL_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8],["30Rnd_65x39_caseless_green_mag_Tracer", 2], ["1Rnd_HE_Grenade_shell", 6],["1Rnd_SmokePurple_Grenade_shell",2], ["HandGrenade", 2], ["SmokeShell", 2], ["ClaymoreDirectionalMine_Remote_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["Laserbatteries",1],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS","ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Laserdesignator", "ACE_EarPlugs"] + _standartMed;
_e_back = ["tf_mr3000","B_AssaultPack_dgtl","B_AssaultPack_sgg","B_Carryall_cbr","B_Carryall_ocamo","B_Kitbag_cbr","B_Kitbag_sgg"];
};
// ------------------ Остальные классы -------------------//
case "CREW": { // Экипаж
_e_prim = ["arifle_Katiba_C_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 6], ["HandGrenade", 2],["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = [];
};
case "PILOT": { // Пилот / Экипаж вертолета
_e_prim = ["arifle_Katiba_C_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 6], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellYellow",1],["SmokeShellRed",1],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = [];
};
case "PILOT_P": { // Пилот самолета
_e_prim = ["SMG_02_F"];
_e_prim_mag = [
[["30Rnd_9x21_Mag", 2], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellYellow",1],["SmokeShellRed",1],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_Parachute"];
};
case "UAV_OP": { // Оператор БПА
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","O_UavTerminal", "ItemMap", "ItemWatch", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["O_UAV_01_backpack_F","B_AssaultPack_dgtl","B_AssaultPack_sgg"];
};
case "SAP": { // Сапер
_e_prim = ["arifle_Katiba_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_green", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_red",2],["ATMine_Range_Mag",1],["APERSMine_Range_Mag",2],["APERSBoundingMine_Range_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["APERSTripMine_Wire_Mag",4]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch","NVGoggles_OPFOR"] + _standartMed;
_e_back = ["B_Carryall_ocamo","B_Carryall_cbr","B_Kitbag_sgg","B_Kitbag_cbr"];
};
};
if (_wrong) then {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back, _wrong]
} else {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back]
};// FIA EQUIPMENT
private ["_e_prim", "_e_prim_mag", "_e_mod1", "_e_mod2", "_e_mod3", "_e_sec", "_e_sec_mag", "_e_sec_mods", "_e_side", "_e_side_mag", "_e_items", "_e_back", "_wrong"];
_wrong = false;
private ["_standartMed", "_extendedMed"];
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_standartMed = [["FirstAidKit", 3]];
_extendedMed = [["FirstAidKit", 15], "Medikit"];
};
case 1: {
_standartMed = [["ACE_fieldDressing", 10], ["ACE_morphine", 3], "ACE_epinephrine"];
_extendedMed = [["ACE_fieldDressing", 20], ["ACE_morphine", 17], ["ACE_epinephrine", 10]];
};
case 2: {
_standartMed = [["ACE_fieldDressing", 3], ["ACE_elasticBandage", 3], ["ACE_packingBandage", 3], ["ACE_quikclot", 3], "ACE_morphine", "ACE_epinephrine", "ACE_tourniquet", "ACE_salineIV_250"];
_extendedMed = [["ACE_fieldDressing", 15], ["ACE_elasticBandage", 20], ["ACE_packingBandage", 20], ["ACE_quikclot", 15], ["ACE_atropine", 12], ["ACE_morphine", 8], ["ACE_epinephrine", 8], ["ACE_tourniquet", 5], ["ACE_salineIV_500", 6], ["ACE_surgicalKit", 3], ["ACE_personalAidKit", 3]];
};
};
switch toUpper(_this) do {
default {
hintC "WARNING! Wrong slot name in unit initialization! More in diag log";
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
_wrong = true;
};
case "UNARMED": {
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
};
// ------------------ Пехотное отделение ------------------------ //
case "SL": { // Командир отделения
_e_prim = ["arifle_TRG20_F","arifle_TRG21_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular"] + _standartMed;
_e_back = ["tf_rt1523g", "B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "TL": { // Старший стрелок
_e_prim = ["arifle_TRG20_F","arifle_TRG21_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 6],["30Rnd_556x45_Stanag_Tracer_Yellow", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "GL": { // Стрелок (ГП)
_e_prim = ["arifle_TRG21_GL_F","arifle_Mk20_GL_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8],["1Rnd_HE_Grenade_shell",6],["1Rnd_SmokePurple_Grenade_shell",2],["HandGrenade", 2],["SmokeShell", 2],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8],["1Rnd_HE_Grenade_shell",6],["1Rnd_SmokePurple_Grenade_shell",2],["HandGrenade", 2],["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn","optic_Holosight"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "AR": { // Пулеметчик
_e_prim = ["LMG_Mk200_F"];
_e_prim_mag = [
[["200Rnd_65x39_cased_Box", 3],["200Rnd_65x39_cased_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_MRCO","optic_Holosight","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "AT": { // Стрелок (ПТ)
_e_prim = ["arifle_TRG20_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_NLAW_F"];
_e_sec_mag = [[["NLAW_F", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "ATT": { // Оператор ПТРК (Titan Compact)
_e_prim = ["arifle_TRG20_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_I_Titan_short_F"];
_e_sec_mag = [[["Titan_AT", 1],["Titan_AP", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_Bergen_rgr"];
};
case "AA": { // Оператор ПЗРК (Titan Launcher)
_e_prim = ["arifle_TRG20_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = ["launch_I_Titan_F"];
_e_sec_mag = [[["Titan_AA", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_INDEP", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_Bergen_rgr"];
};
case "RM": { // Стрелок
_e_prim = ["arifle_TRG21_F","arifle_TRG20_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "DM": { // Снайпер (Marksman)
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_MRCO","optic_SOS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_ACPC2_F"];
_e_side_mag = [[["9Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "Binocular","NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_AssaultPack_rgr","B_FieldPack_khk","B_Kitbag_rgr","B_TacticalPack_rgr"];
};
case "MED": { // Медик
_e_prim = ["arifle_TRG20_F","arifle_TRG21_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_yellow",2]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_yellow",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_INDEP"] + _extendedMed;
_e_back = ["B_Kitbag_rgr"];
};
case "SAP": { // Сапер
_e_prim = ["arifle_TRG20_F","arifle_Mk20_F"];
_e_prim_mag = [
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2],["ATMine_Range_Mag",1],["APERSMine_Range_Mag",2],["APERSBoundingMine_Range_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["APERSTripMine_Wire_Mag",4]],
[["30Rnd_556x45_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_yellow",2],["ATMine_Range_Mag",1],["APERSMine_Range_Mag",2],["APERSBoundingMine_Range_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["APERSTripMine_Wire_Mag",4]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch","NVGoggles_INDEP"] + _standartMed;
_e_back = ["B_Kitbag_rgr"];
};
};
if (_wrong) then {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back, _wrong]
} else {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back]
};// BLUFOR EQUIPMENT
private ["_e_prim", "_e_prim_mag", "_e_mod1", "_e_mod2", "_e_mod3", "_e_sec", "_e_sec_mag", "_e_sec_mods", "_e_side", "_e_side_mag", "_e_items", "_e_back", "_wrong"];
_wrong = false;
private ["_standartMed", "_extendedMed"];
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_standartMed = [["FirstAidKit", 3]];
_extendedMed = [["FirstAidKit", 15], "Medikit"];
};
case 1: {
_standartMed = [["ACE_fieldDressing", 10], ["ACE_morphine", 3], "ACE_epinephrine"];
_extendedMed = [["ACE_fieldDressing", 20], ["ACE_morphine", 17], ["ACE_epinephrine", 10]];
};
case 2: {
_standartMed = [["ACE_fieldDressing", 3], ["ACE_elasticBandage", 3], ["ACE_packingBandage", 3], ["ACE_quikclot", 3], "ACE_morphine", "ACE_epinephrine", "ACE_tourniquet", "ACE_salineIV_250"];
_extendedMed = [["ACE_fieldDressing", 15], ["ACE_elasticBandage", 20], ["ACE_packingBandage", 20], ["ACE_quikclot", 15], ["ACE_atropine", 12], ["ACE_morphine", 8], ["ACE_epinephrine", 8], ["ACE_tourniquet", 5], ["ACE_salineIV_500", 6], ["ACE_surgicalKit", 3], ["ACE_personalAidKit", 3]];
};
};
switch toUpper(_this) do {
default {
hintC "WARNING! Wrong slot name in unit initialization! More in diag log";
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
_wrong = true;
};
case "UNARMED": {
_e_prim = [];
_e_prim_mag = [];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = [];
_e_back = [];
};
// ------------------ Infantry squad ------------------------ //
case "SL": { // Squad Leader
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 4],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Nightstalker","optic_Hamr","optic_ACO_grn"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Rangefinder"] + _standartMed;
_e_back = ["tf_rt1523g", "B_AssaultPack_mcamo"];
};
case "TL": { // Team Leader
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 6],["30Rnd_65x39_caseless_mag_Tracer", 3], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ARCO","optic_Holosight","optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo"];
};
case "GL": { // Grenadier
_e_prim = ["arifle_MX_GL_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["1Rnd_HE_Grenade_shell",6],["1Rnd_SmokePurple_Grenade_shell",2],["HandGrenade", 2],["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight","optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo"];
};
case "AR": { // Automatic Rifleman
_e_prim = ["LMG_Mk200_F"];
_e_prim_mag = [
[["200Rnd_65x39_cased_Box", 3],["200Rnd_65x39_cased_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_tws_mg","optic_ARCO","optic_Holosight","optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_TacticalPack_mcamo","B_TacticalPack_oli"];
};
case "AT": { // Rifleman (AT)
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight","optic_Aco"];
_e_sec = ["launch_NLAW_F"];
_e_sec_mag = [[["NLAW_F", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo"];
};
case "ATT": { // Rifleman (AT) (Titan Compact)
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight", "optic_Aco"];
_e_sec = ["launch_B_Titan_short_F"];
_e_sec_mag = [[["Titan_AT", 1],["Titan_AP", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_Bergen_mcamo"];
};
case "AA": { // Rifleman (AA) (Titan Launcher)
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight", "optic_Aco"];
_e_sec = ["launch_B_Titan_F"];
_e_sec_mag = [[["Titan_AA", 2]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_Bergen_mcamo"];
};
case "RM": { // Rifleman
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight", "optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo"];
};
case "DM": { // Designated Marksman
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_SOS","optic_ARCO"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "Binocular","NVGoggles"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo"];
};
case "MED": { // Medic
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight", "optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles"] + _extendedMed;
_e_back = ["B_Kitbag_mcamo","B_Kitbag_cbr"];
};
// -------------------- Diver Team ----------------- //
case "D_TL": { // Diver - Team Leader
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Binocular"] + _standartMed;
_e_back = ["tf_rt1523g","B_FieldPack_blk","B_AssaultPack_blk"];
};
case "D": { // Diver
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles"] + _standartMed;
_e_back = ["B_FieldPack_blk","B_AssaultPack_blk"];
};
case "D_ES": { // Diver - Explosive Specialist
_e_prim = ["arifle_SDAR_F"];
_e_prim_mag = [
[["20Rnd_556x45_UW_mag", 4], ["30Rnd_556x45_Stanag", 6], ["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_snds_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles"] + _standartMed;
_e_back = ["B_FieldPack_blk","B_AssaultPack_blk"];
};
// ----------------- Recon Team --------------------- //
case "SPN_SL": { // Recon - Team Leader
_e_prim = ["arifle_MXC_F","arifle_MX_GL_F","arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2],["1Rnd_Smoke_Grenade_shell", 2], ["1Rnd_HE_Grenade_shell", 8], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_tws","optic_ARCO","optic_Holosight","optic_Aco","optic_NVS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Rangefinder"] + _standartMed;
_e_back = ["tf_rt1523g","B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_AR": { // Recon - Automatic Rifleman
_e_prim = ["LMG_Mk200_F"];
_e_prim_mag = [
[["200Rnd_65x39_cased_Box", 3],["200Rnd_65x39_cased_Box_Tracer", 1], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H_MG"];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_tws_mg","optic_ARCO","optic_Holosight","optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch", "NVGoggles","Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_AT": { // Recon - Rifleman (AT)
_e_prim = ["arifle_MXC_F","arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_Holosight","optic_Aco"];
_e_sec = ["launch_NLAW_F"];
_e_sec_mag = [[["NLAW_F", 1]]];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles","Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_DM": { // Recon - Designated Marksman
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 10], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_B"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_tws","optic_ARCO","optic_SOS","optic_NVS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS","ItemMap", "ItemWatch", "Rangefinder","NVGoggles"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_ES": { // Recon - Explosive Specialist
_e_prim = ["arifle_MXC_F","arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2],["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2],["DemoCharge_Remote_Mag", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_ARCO","optic_Holosight","optic_Aco","optic_NVS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_OP": { // Recon - Operator
_e_prim = ["arifle_MXC_F","arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_ARCO","optic_Holosight","optic_Aco","optic_NVS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles","Binocular"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_MED": { // Recon - Medic
_e_prim = ["arifle_MXC_F","arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_ARCO","optic_Holosight","optic_Aco","optic_NVS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles","Binocular"] + _extendedMed;
_e_back = ["B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SPN_JTAC": { // Recon - JTAC
_e_prim = ["arifle_MXC_F","arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Laserbatteries",1],["Chemlight_blue",2]],
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["HandGrenade", 2], ["SmokeShell", 2],["Laserbatteries",1],["Chemlight_blue",2]]
];
_e_mod1 = ["muzzle_snds_H"];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_ARCO","optic_Holosight","optic_Aco","optic_NVS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles","Laserdesignator"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
// ----------------- Sniper Team ---------------- //
case "SNIPER": { // Sniper
_e_prim = ["srifle_LRR_F"];
_e_prim_mag = [
[["7Rnd_408_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_LRPS","optic_SOS"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_snds_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = [];
};
case "SPOTTER": { // Spotter
_e_prim = ["srifle_EBR_F"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 9], ["HandGrenade", 2], ["SmokeShell", 2], ["7Rnd_408_Mag", 4],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_pointer_IR","acc_flashlight"];
_e_mod3 = ["optic_SOS","optic_ARCO"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_snds_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles","Rangefinder", "ACE_EarPlugs"] + _standartMed;
_e_back = ["B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
case "SNIPER_AS": { // Sniper Assistant
_e_prim = ["arifle_MX_GL_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8],["30Rnd_65x39_caseless_mag_Tracer", 2], ["1Rnd_HE_Grenade_shell", 6],["1Rnd_SmokePurple_Grenade_shell",2], ["HandGrenade", 2], ["SmokeShell", 2], ["ClaymoreDirectionalMine_Remote_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["Laserbatteries",1],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_ARCO","optic_Holosight","optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Pistol_heavy_01_MRD_F"];
_e_side_mag = [[["11Rnd_45ACP_Mag", 3]]];
_e_items = ["ItemCompass", "ItemGPS","ItemMap", "ItemWatch", "NVGoggles","Laserdesignator", "ACE_EarPlugs"] + _standartMed;
_e_back = ["tf_rt1523g","B_AssaultPack_mcamo","B_Carryall_cbr","B_Carryall_mcamo","B_Kitbag_cbr","B_Kitbag_mcamo"];
};
// ------------------ Other -------------------//
case "CREW": { // Crewman
_e_prim = ["arifle_MXC_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 6], ["HandGrenade", 2],["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["optic_Holosight"];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = [];
};
case "PILOT": { // Helicopter Pilot / Crew
_e_prim = ["SMG_01_F"];
_e_prim_mag = [
[["30Rnd_45ACP_Mag_SMG_01", 6], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellPurple",1],["SmokeShellGreen",1],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["optic_Holosight_smg"];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_P07_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = ["B_Parachute"];
};
case "PILOT_P": { // Pilot Plane
_e_prim = ["SMG_01_F"];
_e_prim_mag = [
[["30Rnd_45ACP_Mag_SMG_01", 2], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellPurple",1],["SmokeShellGreen",1],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["optic_Holosight_smg"];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = ["B_Parachute"];
};
case "UAV_OP": { // UAV Operator
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight", "optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","B_UavTerminal", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = ["B_UAV_01_backpack_F","B_AssaultPack_mcamo"];
};
case "SAP": { // Sapper
_e_prim = ["arifle_MX_F"];
_e_prim_mag = [
[["30Rnd_65x39_caseless_mag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ATMine_Range_Mag",1],["APERSMine_Range_Mag",2],["APERSBoundingMine_Range_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["APERSTripMine_Wire_Mag",4]]
];
_e_mod1 = [];
_e_mod2 = ["acc_flashlight", "acc_pointer_IR"];
_e_mod3 = ["optic_Holosight", "optic_Aco"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = ["B_Carryall_mcamo","B_Carryall_cbr","B_Kitbag_mcamo","B_Kitbag_cbr"];
};
};
if (_wrong) then {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back, _wrong]
} else {
[_e_prim, _e_prim_mag, _e_mod1, _e_mod2, _e_mod3, _e_sec, _e_sec_mag, _e_sec_mods, _e_side, _e_side_mag, _e_items, _e_back]
};_veh = _this select 0;
_template = _this select 1;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh disableTIEquipment true; // Отключаем тепловизор
_medical_vehicle = {
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_this addItemCargoGlobal ["FirstAidKit", 50];
_this addItemCargoGlobal ["Medikit", 5];
};
case 1: {
_this addItemCargoGlobal ["ACE_fieldDressing", 50];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
};
case 2: {
_this addItemCargoGlobal ["ACE_fieldDressing", 30];
_this addItemCargoGlobal ["ACE_elasticBandage", 30];
_this addItemCargoGlobal ["ACE_packingBandage", 30];
_this addItemCargoGlobal ["ACE_quikclot", 25];
_this addItemCargoGlobal ["ACE_atropine", 20];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
_this addItemCargoGlobal ["ACE_tourniquet", 15];
_this addItemCargoGlobal ["ACE_salineIV_500", 20];
_this addItemCargoGlobal ["ACE_surgicalKit", 10];
_this addItemCargoGlobal ["ACE_personalAidKit", 15];
};
};
};
switch toLower(_template) do {
default {
if (!isDedicated) then { hint format["WRONG TEMPLATE\nVehicle> %1\nTemplate> %2", _veh, _template] };
};
case "empty": {}; // Empty CargoGlobal
case "mini": { // Minimum ammo
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 10];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 5];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 2];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_green", 6];
};
case "ba": { // Basic Ammo
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 20];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 10];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box", 4];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["NLAW_F", 2];
_veh addWeaponCargoGlobal ["launch_I_Titan_short_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 1];
_veh addMagazineCargoGlobal ["Titan_AP", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 8];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_green", 6];
_veh addBackPackCargoGlobal ["tf_anprc155", 1];
};
case "ammo_l": { // Ammobox Launchers
_veh addWeaponCargoGlobal ["launch_I_Titan_short_F",2];
_veh addWeaponCargoGlobal ["launch_I_Titan_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 4];
_veh addMagazineCargoGlobal ["Titan_AP", 6];
_veh addMagazineCargoGlobal ["Titan_AA", 4];
_veh addWeaponCargoGlobal ["launch_NLAW_F",2];
_veh addMagazineCargoGlobal ["NLAW_F", 6];
};
case "ammo_b": { // Simple Ammobox
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 30];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 15];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box", 5];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["NLAW_F", 2];
_veh addMagazineCargoGlobal ["Titan_AT", 1];
_veh addMagazineCargoGlobal ["Titan_AP", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 10];
_veh addMagazineCargoGlobal ["SmokeShell", 10];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 10];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_green", 6];
};
case "ammo_expl": { // Explosives Ammobox
_veh addWeaponCargoGlobal ["MineDetector", 3];
_veh addMagazineCargoGlobal ["DemoCharge_Remote_Mag", 4];
_veh addMagazineCargoGlobal ["SatchelCharge_Remote_Mag", 2];
_veh addMagazineCargoGlobal ["ATMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["ClaymoreDirectionalMine_Remote_Mag", 6];
_veh addMagazineCargoGlobal ["SLAMDirectionalMine_Wire_Mag", 4];
_veh addMagazineCargoGlobal ["APERSBoundingMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSTripMine_Wire_Mag", 10];
};
case "med": { // Medical equipment
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 10];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 2];
_veh call _medical_vehicle;
};
};_veh = _this select 0;
_template = _this select 1;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh disableTIEquipment true; // Отключаем тепловизор
_medical_vehicle = {
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_this addItemCargoGlobal ["FirstAidKit", 50];
_this addItemCargoGlobal ["Medikit", 5];
};
case 1: {
_this addItemCargoGlobal ["ACE_fieldDressing", 50];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
};
case 2: {
_this addItemCargoGlobal ["ACE_fieldDressing", 30];
_this addItemCargoGlobal ["ACE_elasticBandage", 30];
_this addItemCargoGlobal ["ACE_packingBandage", 30];
_this addItemCargoGlobal ["ACE_quikclot", 25];
_this addItemCargoGlobal ["ACE_atropine", 20];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
_this addItemCargoGlobal ["ACE_tourniquet", 15];
_this addItemCargoGlobal ["ACE_salineIV_500", 20];
_this addItemCargoGlobal ["ACE_surgicalKit", 10];
_this addItemCargoGlobal ["ACE_personalAidKit", 15];
};
};
};
switch toLower(_template) do {
default {
if (!isDedicated) then { hint format["WRONG TEMPLATE\nVehicle> %1\nTemplate> %2", _veh, _template] };
};
case "empty": {}; // Empty CargoGlobal
case "mini": { // Minimum ammo
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green", 10];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green_mag_Tracer", 5];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 2];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_red", 6];
};
case "ba": { // Basic Ammo
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green", 20];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green_mag_Tracer", 10];
_veh addMagazineCargoGlobal ["150Rnd_762x51_Box", 4];
_veh addMagazineCargoGlobal ["150Rnd_762x51_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["10Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["RPG32_F", 2];
_veh addMagazineCargoGlobal ["RPG32_HE_F", 2];
_veh addWeaponCargoGlobal ["launch_O_Titan_short_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 1];
_veh addMagazineCargoGlobal ["Titan_AP", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 8];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_red", 6];
_veh addBackPackCargoGlobal ["tf_mr3000", 1];
};
case "ammo_l": { // Ammobox Launchers
_veh addWeaponCargoGlobal ["launch_O_Titan_short_F",2];
_veh addWeaponCargoGlobal ["launch_O_Titan_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 4];
_veh addMagazineCargoGlobal ["Titan_AP", 6];
_veh addMagazineCargoGlobal ["Titan_AA", 4];
_veh addWeaponCargoGlobal ["launch_RPG32_F",2];
_veh addMagazineCargoGlobal ["RPG32_F", 2];
_veh addMagazineCargoGlobal ["RPG32_HE_F", 2];
};
case "ammo_b": { // Simple Ammobox
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green", 20];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green_mag_Tracer", 10];
_veh addMagazineCargoGlobal ["150Rnd_762x51_Box", 4];
_veh addMagazineCargoGlobal ["150Rnd_762x51_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["10Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["RPG32_F", 2];
_veh addMagazineCargoGlobal ["RPG32_HE_F", 2];
_veh addMagazineCargoGlobal ["Titan_AT", 1];
_veh addMagazineCargoGlobal ["Titan_AP", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 8];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_red", 6];
};
case "ammo_expl": { // Explosives Ammobox
_veh addWeaponCargoGlobal ["MineDetector", 3];
_veh addMagazineCargoGlobal ["DemoCharge_Remote_Mag", 4];
_veh addMagazineCargoGlobal ["SatchelCharge_Remote_Mag", 2];
_veh addMagazineCargoGlobal ["ATMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["ClaymoreDirectionalMine_Remote_Mag", 6];
_veh addMagazineCargoGlobal ["SLAMDirectionalMine_Wire_Mag", 4];
_veh addMagazineCargoGlobal ["APERSBoundingMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSTripMine_Wire_Mag", 10];
};
case "med": { // Medical equipment
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green", 10];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_green_mag_Tracer", 2];
_veh call _medical_vehicle;
};
};_veh = _this select 0;
_template = _this select 1;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh disableTIEquipment true; // Отключаем тепловизор
_medical_vehicle = {
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_this addItemCargoGlobal ["FirstAidKit", 50];
_this addItemCargoGlobal ["Medikit", 5];
};
case 1: {
_this addItemCargoGlobal ["ACE_fieldDressing", 50];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
};
case 2: {
_this addItemCargoGlobal ["ACE_fieldDressing", 30];
_this addItemCargoGlobal ["ACE_elasticBandage", 30];
_this addItemCargoGlobal ["ACE_packingBandage", 30];
_this addItemCargoGlobal ["ACE_quikclot", 25];
_this addItemCargoGlobal ["ACE_atropine", 20];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
_this addItemCargoGlobal ["ACE_tourniquet", 15];
_this addItemCargoGlobal ["ACE_salineIV_500", 20];
_this addItemCargoGlobal ["ACE_surgicalKit", 10];
_this addItemCargoGlobal ["ACE_personalAidKit", 15];
};
};
};
switch toLower(_template) do {
default {
if (!isDedicated) then { hint format["WRONG TEMPLATE\nVehicle> %1\nTemplate> %2", _veh, _template] };
};
case "empty": {}; // Empty CargoGlobal
case "mini": { // Minimum ammo
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 10];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 5];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 2];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_yellow", 6];
};
case "ba": { // Basic Ammo
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 20];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 10];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box", 4];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["NLAW_F", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 8];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_yellow", 6];
_veh addBackPackCargoGlobal ["tf_rt1523g", 1];
};
case "ammo_l": { // Ammobox Launchers
_veh addWeaponCargoGlobal ["launch_I_Titan_short_F",2];
_veh addWeaponCargoGlobal ["launch_I_Titan_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 4];
_veh addMagazineCargoGlobal ["Titan_AP", 6];
_veh addMagazineCargoGlobal ["Titan_AA", 4];
_veh addWeaponCargoGlobal ["launch_NLAW_F",2];
_veh addMagazineCargoGlobal ["NLAW_F", 6];
};
case "ammo_b": { // Simple Ammobox
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 30];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 15];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box", 5];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["NLAW_F", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 10];
_veh addMagazineCargoGlobal ["SmokeShell", 10];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 10];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_yellow", 6];
};
case "ammo_expl": { // Explosives Ammobox
_veh addWeaponCargoGlobal ["MineDetector", 3];
_veh addMagazineCargoGlobal ["DemoCharge_Remote_Mag", 4];
_veh addMagazineCargoGlobal ["SatchelCharge_Remote_Mag", 2];
_veh addMagazineCargoGlobal ["ATMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["ClaymoreDirectionalMine_Remote_Mag", 6];
_veh addMagazineCargoGlobal ["SLAMDirectionalMine_Wire_Mag", 4];
_veh addMagazineCargoGlobal ["APERSBoundingMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSTripMine_Wire_Mag", 10];
};
case "med": { // Medical equipment
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag", 10];
_veh addMagazineCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Yellow", 2];
_veh call _medical_vehicle;
};
};_veh = _this select 0;
_template = _this select 1;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh disableTIEquipment true; // Отключаем тепловизор
_medical_vehicle = {
switch (missionNameSpace getVariable ["ace_medical_level", 0]) do {
case 0: {
_this addItemCargoGlobal ["FirstAidKit", 50];
_this addItemCargoGlobal ["Medikit", 5];
};
case 1: {
_this addItemCargoGlobal ["ACE_fieldDressing", 50];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
};
case 2: {
_this addItemCargoGlobal ["ACE_fieldDressing", 30];
_this addItemCargoGlobal ["ACE_elasticBandage", 30];
_this addItemCargoGlobal ["ACE_packingBandage", 30];
_this addItemCargoGlobal ["ACE_quikclot", 25];
_this addItemCargoGlobal ["ACE_atropine", 20];
_this addItemCargoGlobal ["ACE_morphine", 30];
_this addItemCargoGlobal ["ACE_epinephrine", 30];
_this addItemCargoGlobal ["ACE_tourniquet", 15];
_this addItemCargoGlobal ["ACE_salineIV_500", 20];
_this addItemCargoGlobal ["ACE_surgicalKit", 10];
_this addItemCargoGlobal ["ACE_personalAidKit", 15];
};
};
};
switch toLower(_template) do {
default {
if (!isDedicated) then { hint format["WRONG TEMPLATE\nVehicle> %1\nTemplate> %2", _veh, _template] };
};
case "empty": {}; // Empty CargoGlobal
case "mini": { // Minimum ammo
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag", 10];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag_Tracer", 5];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 2];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 2];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_blue", 6];
};
case "ba": { // Basic Ammo
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag", 20];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag_Tracer", 10];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box", 4];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["NLAW_F", 2];
_veh addWeaponCargoGlobal ["launch_B_Titan_short_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 1];
_veh addMagazineCargoGlobal ["Titan_AP", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 8];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_blue", 6];
_veh addBackPackCargoGlobal ["tf_rt1523g", 1];
};
case "ammo_l": { // Ammobox Launchers
_veh addWeaponCargoGlobal ["launch_B_Titan_short_F",2];
_veh addWeaponCargoGlobal ["launch_B_Titan_F",1];
_veh addMagazineCargoGlobal ["Titan_AT", 4];
_veh addMagazineCargoGlobal ["Titan_AP", 6];
_veh addMagazineCargoGlobal ["Titan_AA", 4];
_veh addWeaponCargoGlobal ["launch_NLAW_F",2];
_veh addMagazineCargoGlobal ["NLAW_F", 6];
};
case "ammo_b": { // Simple Ammobox
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag", 30];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag_Tracer", 15];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box", 5];
_veh addMagazineCargoGlobal ["200Rnd_65x39_cased_Box_Tracer", 2];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["NLAW_F", 2];
_veh addMagazineCargoGlobal ["Titan_AT", 1];
_veh addMagazineCargoGlobal ["Titan_AP", 2];
_veh addMagazineCargoGlobal ["HandGrenade", 10];
_veh addMagazineCargoGlobal ["SmokeShell", 10];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 10];
_veh addMagazineCargoGlobal ["1Rnd_Smoke_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["1Rnd_SmokeBlue_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeGreen_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeOrange_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokePurple_Grenade_shell", 3];
_veh addMagazineCargoGlobal ["1Rnd_SmokeRed_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["1Rnd_SmokeYellow_Grenade_shell", 1];
_veh addMagazineCargoGlobal ["UGL_FlareCIR_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareGreen_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareRed_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareWhite_F", 1];
_veh addMagazineCargoGlobal ["UGL_FlareYellow_F", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_blue", 6];
};
case "ammo_expl": { // Explosives Ammobox
_veh addWeaponCargoGlobal ["MineDetector", 3];
_veh addMagazineCargoGlobal ["DemoCharge_Remote_Mag", 4];
_veh addMagazineCargoGlobal ["SatchelCharge_Remote_Mag", 2];
_veh addMagazineCargoGlobal ["ATMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["ClaymoreDirectionalMine_Remote_Mag", 6];
_veh addMagazineCargoGlobal ["SLAMDirectionalMine_Wire_Mag", 4];
_veh addMagazineCargoGlobal ["APERSBoundingMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSMine_Range_Mag", 4];
_veh addMagazineCargoGlobal ["APERSTripMine_Wire_Mag", 10];
};
case "med": { // Medical equipment
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag", 10];
_veh addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag_Tracer", 2];
_veh call _medical_vehicle;
};
};
/// Specify modules to load
/// If you dont want any modules, use:
/// #define A3A_MODULES []
/// Disabled modules: "NamesInVehicle", "WeaponSafety", "PlayerTags", "StaticDrag"
#define A3A_MODULES ["AddonsCheck"]if (!isDedicated) then {
waitUntil { sleep 1.217; !isNil "a3ru_addons_check" };
{
if (!isClass (configFile >> "CfgPatches" >> _x)) then {
"Addon is missing" hintC [
"Required addon is missing:" + _x
];
sleep 3;
failMission "loser";
};
} forEach a3ru_addons_check;
};// Show player names in vehicles on mouse wheel up
if ((_this select 1) > 0) then { [] spawn fnc_a3ru_vehiclePlayers }#define a3ru_icon_driver "a3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_driver_ca.paa"
#define a3ru_icon_commander "a3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_commander_ca.paa"
#define a3ru_icon_gunner "a3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_gunner_ca.paa"
#define a3ru_icon_cargo "a3\ui_f\data\IGUI\RscIngameUI\RscUnitInfo\role_cargo_ca.paa"
#define a3ru_color_blue "#0000ff"
#define a3ru_color_red "#ff0000"
#define a3ru_color_white "#ffffff"
#define a3ru_color_green "#12be00"
// Show players in vehicle
_vehicle = vehicle player;
if (player != _vehicle) then {
_color = a3ru_color_white;
_vehName = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");
_vehSide = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "faction");
switch (_vehSide) do {
case "BLU_F": { _color = a3ru_color_blue };
case "OPF_F": { _color = a3ru_color_red };
case "IND_F": { _color = a3ru_color_green };
};
_output = format[" %2
", _color, _vehName];
{
_icon = a3ru_icon_cargo;
_additional = "";
if (driver _vehicle == _x) then {
_icon = a3ru_icon_driver;
};
if (gunner _vehicle == _x) then {
_icon = a3ru_icon_gunner;
};
if (commander _vehicle == _x) then {
_icon = a3ru_icon_commander;
};
if !(isPlayer _x) then { _additional = "[AI] " };
if (_x == player) then {
_output = _output + format[' %3
', _icon, _additional, name _x];
} else {
_output = _output + format[' %2%3
', _icon, _additional, name _x];
};
} forEach (crew _vehicle);
hintSilent parseText (_output + "");
};// Show player names in vehicles on mouse wheel up
if (!isDedicated) then {
waitUntil { sleep 1.617; a3a_var_cli_postInit };
a3ru_mod_fnc_namesInVehicle = compile preprocessFileLineNumbers "A3A_MODULES\NamesInVehicle\fn_namesInVehicle.sqf";
(findDisplay 46) displayAddEventHandler ["MouseZChanged", "if ((_this select 1) > 0) then { [] spawn a3ru_mod_fnc_namesInVehicle }"];
};if (!isDedicated) then {
private ["_enabled"];
_enabled = false;
if (!isNil "a3ru_tags") then {
if (a3ru_tags == 0) then {
_enabled = true;
};
};
if (_enabled) then {
waitUntil { sleep 1.121; a3a_var_cli_postInit };
disableSerialization;
_ui = uiNamespace getVariable "A3RU_HUD";
_playerTag = _ui displayCtrl 1002;
while {alive player} do {
_object = cursorTarget;
if !(isNull _object) then {
if ((_object in allUnits) && (side _object == side player) && (player distance _object <= 20) && (_object != player)) then {
_playerTag ctrlShow true;
if (isPlayer _object) then {
_playerTag ctrlSetStructuredText parseText format[" %1", name _object];
} else {
_playerTag ctrlSetStructuredText parseText format[" %1", name _object];
};
} else {
_playerTag ctrlShow false;
};
} else {
_playerTag ctrlShow false;
};
sleep 1.021;
};
_playerTag ctrlShow false;
};
};if !(alive player) exitWith {
(findDisplay 46) displayRemoveEventHandler ["KeyDown", a3ru_DEH_dogTag];
};
// Ctrl pressed
if (_this select 3) then { a3ru_var_static_rotate = true };
falseprivate ["_CT", "_return"];
_CT = _this;
_return = false;
if !(isNull _CT) then {
if (
(_CT isKindOf "StaticWeapon") &&
(player distance _CT <= 3) &&
isNull (_CT getVariable ["a3ru_canDrag", objNull]) &&
((count (crew _CT)) == 0)
) then { _return = true };
};
_returnprivate ["_CT", "_check", "_player", "_posY"];
_CT = _this;
_check = _CT call a3ru_mod_fnc_staticCanDrag;
if (_check) then {
hint parseText (localize "STR_A3RU_drag_desc");
a3ru_var_static_rotate = false;
a3ru_var_static_release = false;
a3ru_var_static_dragging = true;
_player = player;
a3ru_var_dragObject = _CT;
_posY = ((boundingBoxReal _CT) select 1) select 2;
_CT setVariable ["a3ru_canDrag", player, true];
//if (a3a_var_started) then { _CT lock 2 };
_player playMove "acinpknlmstpsraswrfldnon"; // \A3\anims_f\Data\Anim\Sdr\inj\AcinPknlMwlkSlowWrflDb_still
_CT attachTo [_player, [0, 2, _posY]];
// Helper
a3ru_var_static_helper = "Sign_Arrow_Direction_Green_F" createVehicleLocal (position _CT);
a3ru_var_static_helper attachTo [_CT, [0,0,0 - (_posY / 2)]];
a3ru_KeyEH_releaseStatic = _player addAction [format[(" " + localize "STR_A3RU_drag_release" + ""), getText (configFile >> "CfgVehicles" >> (typeOf _CT) >> "displayName")], { a3ru_var_static_release = true }, "", 0, false, true, "", "!(isNull a3ru_var_dragObject) && (player == vehicle player)"];
waitUntil { sleep 0.012; (isNull a3ru_var_dragObject) || !alive player || (player != vehicle player) || a3ru_var_static_release || (count (crew _CT) > 0) };
[] call a3ru_mod_fnc_staticRelease;
};private ["_pos", "_dir", "_vectorUp"];
if (!isNull a3ru_var_dragObject) then {
_pos = getPosATL a3ru_var_dragObject;
if ((_pos select 3) < 0) then { _pos SET [3, 0] };
_dir = getDir a3ru_var_static_helper;
};
detach a3ru_var_dragObject;
deleteVehicle a3ru_var_static_helper;
//if (a3a_var_started) then { _CT lock 0 };
if (!isNull a3ru_var_dragObject) then {
a3ru_var_dragObject setPos _pos;
[[a3ru_var_dragObject, _dir], "(_this select 0) setDir (_this select 1)"] call BIS_fnc_MP;
};
player removeAction a3ru_KeyEH_releaseStatic;
player playMove "amovpknlmstpsraswrfldnon";
a3ru_var_static_dragging = false;
a3ru_var_dragObject setVariable ["a3ru_canDrag", objNull, true];
a3ru_var_dragObject = objNullprivate ["_angle", "_dir"];
if (_this > 0) then {
_angle = 5;
} else {
_angle = -5;
};
if !(isNull a3ru_var_static_helper) then {
if (player distance a3ru_var_dragObject < 6 && alive player) then {
if (a3ru_var_static_rotate) exitWith {
_dir = (getDir a3ru_var_static_helper) + _angle;
_dir = _dir - getDir player;
a3ru_var_static_helper setDir _dir;
};
} else {
a3ru_var_static_release = true
};
};if (!isDedicated) then {
// Variables
a3ru_var_static_rotate = false;
a3ru_var_static_release = false;
a3ru_var_static_dragging = false;
a3ru_var_dragObject = objNull;
a3ru_var_static_helper = objNull;
// Functions
a3ru_mod_fnc_staticCanDrag = compile preprocessFileLineNumbers "A3A_MODULES\StaticDrag\fn_staticCanDrag.sqf";
a3ru_mod_fnc_staticRotate = compile preprocessFileLineNumbers "A3A_MODULES\StaticDrag\fn_staticRotate.sqf";
a3ru_mod_fnc_staticRelease = compile preprocessFileLineNumbers "A3A_MODULES\StaticDrag\fn_staticRelease.sqf";
a3ru_mod_fnc_staticDrag = compile preprocessFileLineNumbers "A3A_MODULES\StaticDrag\fn_staticDrag.sqf";
waitUntil { sleep 5; a3a_var_cli_postInit };
// Animation stuck fix
if (animationState player == "acinpknlmstpsraswrfldnon") then {
player playMove "amovpknlmstpsraswrfldnon";
};
a3ru_module_fnc_dogTag_onKeyDown = compile preprocessFileLineNumbers "A3A_MODULES\StaticDrag\fn_onKeyDown.sqf";
a3ru_DEH_dogTag = (findDisplay 46) displayAddEventHandler ["KeyDown", "_this call a3ru_module_fnc_dogTag_onKeyDown"];
(findDisplay 46) displayAddEventHandler ["MouseZChanged", "(_this select 1) spawn a3ru_mod_fnc_staticRotate"];
[] spawn {
private ["_entities", "_entity", "_actionAdded"];
while {alive player} do {
_entities = (position player) nearEntities ["StaticWeapon", 50];
for "_i" from 0 to ((count _entities) - 1) do {
_entity = _entities select _i;
_actionAdded = _entity getVariable ["a3ru_staticAction", false];
if !(_actionAdded) then {
_dragger = _entity getVariable ["a3ru_canDrag", objNull];
if (_dragger == player && a3ru_var_dragObject != _entity) then { detach _entity; _entity setVariable ["a3ru_canDrag", objNull, true]; };
_entity addAction [format[(" " + localize "STR_A3RU_drag_take" + ""), getText (configFile >> "CfgVehicles" >> (typeOf _entity) >> "displayName")], { (_this select 0) call a3ru_mod_fnc_staticDrag }, "", 0, false, true, "", "(player == vehicle player) && !a3ru_var_static_dragging && (player distance _target <= 3)"];
_entity setVariable ["a3ru_staticAction", true, false];
};
sleep 0.011;
};
sleep 5.817;
};
};
};// Серверные скрипты
// Выполняются после инициализации платформы
// Отличное место чтобы разместить какие-нибудь условия победы/поражения в миссии
// Например: waitUntil { sleep 1; a3a_var_started }; ["60 minutes have passed, NATO wins", 3600] spawn a3a_fnc_endMissionTimer;
// Или: waitUntil { sleep 1; a3a_var_started }; [[["marker1", "ZONE 1 NAME", 1, 1], ["marker2", "ZONE 2 NAME", 1, 1]], 0, true, "UNKNOWN"] spawn a3a_fnc_endMissionZonesCapture;atrium_version = 14;
respawn = 1;
respawndelay = 3;
class Header {
gameType = TEAM;
minPlayers = 1;
maxPlayers = 184;
};
enableItemsDropping = 0;
debriefing = 1;
briefing = 0;
aiKills = 0;
joinUnassigned = 1;
disableChannels[] = {0};class Params {
class a3a_params_startTime {
title = "$STR_A3RU_startTime";
values[] = {0,2,3,4,5,6,7,8,13};
texts[] = {$STR_A3RU_default, 0600, 0800, 1000, 1100, 1300, 1500, 1700, 0200};
default = 0;
};
class a3a_params_startFog {
title = "$STR_A3RU_startFog";
values[] = {0};
texts[] = {$STR_A3RU_Default};
default = 0;
};
class a3a_params_preTime {
title = "$STR_A3RU_preTime";
values[] = {60, 300, 420, 600, 900, 1200, 1500, 1800};
texts[] = {"1m", "5m", "7m", "10m", "15m", "20m", "25m", "30m"};
default = 900;
};
class a3a_params_slotReservation {
title = "$STR_A3RU_slotReservation";
values[] = {0,1};
texts[] = {$STR_A3RU_off,$STR_A3RU_on};
default = 0;
};
class a3a_params_spectatorSides {
title = "$STR_A3RU_spectatorSides";
values[] = {0,1};
texts[] = {$STR_A3RU_spectatorOwnSide, $STR_A3RU_spectatorAllSides};
default = 1;
};
class a3a_params_externalAddonsInit {
title = "$STR_A3RU_externalAddonsInit";
values[] = {0,1};
texts[] = {$STR_A3RU_off, $STR_A3RU_on};
default = 1;
};
};if (!isServer) exitWith {};
{
(uniformContainer _x) additemcargoGlobal ["ACE_fieldDressing", 3];
(uniformContainer _x) additemcargoGlobal ["ACE_elasticBandage", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_quikclot", 3];
(uniformContainer _x) additemcargoGlobal ["ACE_tourniquet", 1];
(uniformContainer _x) additemcargoGlobal ["ACE_morphine", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_epinephrine", 1];
if (_x == (leader group _x)) then {(uniformContainer _x) additemcargoGlobal ["ACE_MapTools", 1];};
if (_x getVariable "ACEMED" > 0) then {
clearItemCargoGlobal (backpackContainer _x);
clearMagazineCargoGlobal (backpackContainer _x);
clearWeaponCargoGlobal (backpackContainer _x);
(backpackContainer _x) additemcargoGlobal ["ACE_fieldDressing",15];
(backpackContainer _x) additemcargoGlobal ["ACE_elasticBandage",15];
(backpackContainer _x) additemcargoGlobal ["ACE_packingBandage",15];
(backpackContainer _x) additemcargoGlobal ["ACE_quikclot",15];
(backpackContainer _x) additemcargoGlobal ["ACE_atropine",10];
(backpackContainer _x) additemcargoGlobal ["ACE_epinephrine",10];
(backpackContainer _x) additemcargoGlobal ["ACE_morphine",10];
(backpackContainer _x) additemcargoGlobal ["ACE_salineIV_500",5];
(backpackContainer _x) additemcargoGlobal ["ACE_bloodIV_500",5];
(backpackContainer _x) additemcargoGlobal ["ACE_tourniquet",5];
(backpackContainer _x) additemcargoGlobal ["ACE_surgicalKit",2];
(backpackContainer _x) additemcargoGlobal ["ACE_personalAidKit",3];
};
} forEach playableUnits;if (!isServer) exitWith {};
_u = _this select 0;
_u setVariable ["ACEMED", 1, true];private ["_veh","_varname"];
_veh = _this select 0;
_varname = _this select 1;
_veh setVariable ["requiredPilot",_varname];
_veh addEventHandler ["getIn",{_this spawn {
diag_log _this;
private ["_veh","_varname"];
_veh = _this select 0;
_varname = _veh getVariable ["requiredPilot","default"];
while {player in _veh} do {
if ((player == driver _veh || player == _veh turretUnit [0]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];// Written by Blender
enableDebugConsole = 0;
// Disposable wrecks and corpses settings
// BIKI: https://community.bistudio.com/wiki/Description.ext#corpseLimit
corpseLimit = 300;
corpseRemovalMaxTime = 10000;
wreckLimit = 300;
wreckRemovalMaxTime = 10000;
// Extended flight model
// 0 - Player chosen, 1 - Force Enable, 2 - Force Disable
// BIKI: https://community.bistudio.com/wiki/Description.ext#forceRotorLibSimulation
forceRotorLibSimulation = 0;
#include "A3A_SETUP\a3a_header.hpp"
#include "mission_description.hpp"
#include "A3A_SETUP\a3a_parameters.hpp"
class A3A_MissionParams {
#include "mission_parameters.hpp"
};
class CfgFunctions
{
class mis
{
class Main
{
file="mis_funcs";
class preinit
{
preInit=1;
postInit=0;
};
};
};
};
_v = _this select 0;
_v removeaction (_this select 2);
detach _v;// fact: BLU_F
// desc: Rifleman AT
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit addWeapon "rhs_weap_M136";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
_unit addItemToVest "rhsusf_acc_anpeq15A";// fact: BLU_F
// desc: Crewman
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc";
_unit addHeadgear "rhsusf_cvc_green_helmet";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m4_carryhandle";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};// fact: BLU_F
// desc: Team Leader
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_teamleader";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addItemToVest "rhs_mag_M433_HEDP";
_unit addWeapon "rhs_weap_m16a4_carryhandle_M203";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 8 do {_unit addItemToVest "rhs_mag_M433_HEDP";};
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_mag_m714_White";};
_unit addItemToVest "rhsusf_acc_anpeq15A";// fact: BLU_F
// desc: Team Leader
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_squadleader";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_ACOG_USMC";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit linkItem "rhsusf_ANPVS_14";
_unit addItemToUniform "ACE_Flashlight_MX991";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
_unit addItemToVest "rhsusf_acc_anpeq15A";// fact: BLU_F
// desc: Medic
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_corpsman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "TRYK_B_Medbag_OD";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhsusf_ANPVS_14";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
_unit addItemToVest "rhsusf_acc_anpeq15A";// fact: BLU_F
// desc: Automatic Rifleman
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_mg";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "rhs_200rnd_556x45_B_SAW";
_unit addWeapon "rhs_weap_m249_pip_L";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addItemToUniform "ACE_EarPlugs";
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_200rnd_556x45_B_SAW";};
_unit addItemToBackpack "rhs_200rnd_556x45_B_SAW";
_unit addItemToBackpack "rhs_200rnd_556x45_T_SAW";
_unit addItemToUniform "rhsusf_acc_anpeq15A";// fact: BLU_F
// desc: Automatic Rifleman
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addWeapon "Binocular";
_unit addItemToVest "ACE_EarPlugs";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_200rnd_556x45_B_SAW";};
_unit addItemToVest "rhsusf_acc_anpeq15A";// fact: BLU_F
// desc: Machinegunner
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_mg";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "rhsusf_100Rnd_762x51_m993";
_unit addWeapon "rhs_weap_m240G";
_unit addPrimaryWeaponItem "rhsusf_acc_ELCAN";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addItemToVest "ACE_EarPlugs";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m993";};
_unit addItemToVest "rhsusf_100Rnd_762x51_m993";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};// fact: BLU_F
// desc: Machinegunner Ammo Bearer
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "30Rnd_556x45_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_anpeq15A";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addItemToVest "ACE_EarPlugs";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m993";};// fact: BLU_F
// desc: Assistant machinegunner
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "30Rnd_556x45_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_anpeq15A";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addWeapon "Binocular";
_unit addItemToVest "ACE_EarPlugs";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m993";};// fact: BLU_F
// desc: Pilot
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc";
_unit addHeadgear "rhsusf_hgu56p";
_unit addBackpack "B_Parachute";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m4_carryhandle";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};// fact: BLU_F
// desc: Automatic Rifleman Force recon
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_iar";
_unit addHeadgear "rhsusf_mich_bare_norotos";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToBackpack "RH_60Rnd_556x45_Mk318";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addWeapon "RH_M27IAR_tg";
_unit addPrimaryWeaponItem "RH_spr_mbs_tg";
_unit addPrimaryWeaponItem "RH_peq2";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addPrimaryWeaponItem "RH_HBLM_tg";
_unit addWeapon "RH_m9";
_unit addHandgunItem "RH_m9qd";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ACE_NVG_Wide";
_unit addItemToVest "ACE_EarPlugs";
for "_i" from 1 to 2 do {_unit addItemToVest "RH_15Rnd_9x19_M9";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "RH_60Rnd_556x45_Mk318";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};// fact: BLU_F
// desc: Rifleman AT Force Recon
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_mich_bare_norotos";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";
_unit addWeapon "RH_m16a4_tg";
_unit addPrimaryWeaponItem "RH_spr_mbs_tg";
_unit addPrimaryWeaponItem "RH_peq2_top";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "RH_m9";
_unit addHandgunItem "RH_m9qd";
_unit addWeapon "rhs_weap_M136";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ACE_NVG_Wide";
_unit addItemToUniform "ACE_Flashlight_MX991";
for "_i" from 1 to 2 do {_unit addItemToVest "RH_15Rnd_9x19_M9";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};// fact: BLU_F
// desc: Rifleman Force Recon
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_mich_bare_norotos";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";
_unit addWeapon "RH_m16a4_tg";
_unit addPrimaryWeaponItem "RH_spr_mbs_tg";
_unit addPrimaryWeaponItem "RH_peq2_top";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "RH_m9";
_unit addHandgunItem "RH_m9qd";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ACE_NVG_Wide";
_unit addItemToUniform "ACE_Flashlight_MX991";
for "_i" from 1 to 2 do {_unit addItemToVest "RH_15Rnd_9x19_M9";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
_unit addItemToVest "ACE_Clacker";
_unit addItemToVest "ACE_M26_Clacker";
_unit addItemToBackpack "SatchelCharge_Remote_Mag";
_unit addItemToBackpack "SatchelCharge_Remote_Mag";
_unit addItemToVest "DemoCharge_Remote_Mag";
_unit addItemToVest "DemoCharge_Remote_Mag";// fact: BLU_F
// desc: Squad Leader Force Recon
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_squadleader";
_unit addHeadgear "rhsusf_mich_bare_norotos";
_unit addBackpack "tfw_ilbe_dd_wd";
_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addWeapon "RH_m16a4_tg";
_unit addPrimaryWeaponItem "RH_spr_mbs_tg";
_unit addPrimaryWeaponItem "RH_peq2_top";
_unit addPrimaryWeaponItem "RH_eotech553mag";
_unit addWeapon "RH_m9";
_unit addHandgunItem "RH_m9qd";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "lerca_1200_tan";
_unit linkItem "ACE_NVG_Wide";
_unit addItemToUniform "ACE_Flashlight_MX991";
_unit addItemToVest "RH_anpvs4";
for "_i" from 1 to 2 do {_unit addItemToVest "RH_15Rnd_9x19_M9";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 7 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};// fact: BLU_F
// desc: Sniper Force Recon
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_mich_bare_norotos";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "rhsusf_20Rnd_762x51_m993_Mag";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addWeapon "rhs_weap_sr25";
_unit addPrimaryWeaponItem "rhsusf_acc_SR25S";
_unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4_2";
_unit addPrimaryWeaponItem "RH_HBLM";
_unit addPrimaryWeaponItem "rhsusf_acc_anpeq15A";
_unit addWeapon "RH_m9";
_unit addHandgunItem "RH_m9qd";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
_unit addWeapon "Rangefinder";
_unit addItemToUniform "ACE_Kestrel4500";
_unit addItemToUniform "ACE_RangeCard";
_unit addItemToVest "RH_anpvs4";
for "_i" from 1 to 2 do {_unit addItemToVest "RH_15Rnd_9x19_M9";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 7 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m993_Mag";};// fact: BLU_F
// desc: Team Leader Force Recon
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_teamleader";
_unit addHeadgear "rhsusf_mich_bare_norotos";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";
_unit addItemToVest "rhs_mag_M433_HEDP";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addWeapon "RH_m16a4gl_tg";
_unit addPrimaryWeaponItem "RH_spr_mbs_tg";
_unit addPrimaryWeaponItem "RH_peq2_top";
_unit addPrimaryWeaponItem "RH_eotech553mag";
_unit addWeapon "RH_m9";
_unit addHandgunItem "RH_m9qd";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
_unit addItemToUniform "ACE_Flashlight_MX991";
_unit addItemToVest "RH_anpvs4";
for "_i" from 1 to 2 do {_unit addItemToVest "RH_15Rnd_9x19_M9";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_Mk318_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 11 do {_unit addItemToVest "rhs_mag_M433_HEDP";};
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_mag_m714_White";};
// fact: BLU_F
// desc: Squad Leader
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_squadleader";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "tfw_ilbe_dd_wd";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_ACOG_USMC";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit linkItem "NVGoggles";
_unit addItemToUniform "ACE_Flashlight_MX991";
_unit addItemToVest "rhsusf_acc_anpeq15A";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};// fact: BLU_F
// desc: SMAW Gunner
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addItemToBackpack "rhs_mag_smaw_SR";
_unit addItemToBackpack "rhs_mag_smaw_HEAA";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit addWeapon "rhs_weap_smaw_green";
_unit addSecondaryWeaponItem "rhs_weap_optic_smaw";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addItemToVest "ACE_EarPlugs";
_unit addItemToVest "rhsusf_acc_anpeq15A";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
_unit addItemToBackpack "rhs_mag_smaw_HEAA";
_unit addItemToBackpack "rhs_mag_smaw_SR";// fact: BLU_F
// desc: SMAW Assistant
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "B_Carryall_khk";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addWeapon "rhs_weap_m16a4_carryhandle";
_unit addPrimaryWeaponItem "rhsusf_acc_compm4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhsusf_ANPVS_14";
_unit addWeapon "Binocular";
_unit addItemToVest "ACE_EarPlugs";
_unit addItemToVest "rhsusf_acc_anpeq15A";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
_unit addItemToBackpack "rhs_mag_smaw_HEAA";
_unit addItemToBackpack "rhs_mag_smaw_HEDP";
_unit addItemToBackpack "rhs_mag_smaw_SR";// fact: BLU_F
// desc: Marksman
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_marksman";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addItemToVest "rhsusf_20Rnd_762x51_m118_special_Mag";
_unit addWeapon "rhs_weap_sr25";
_unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4";
_unit addPrimaryWeaponItem "rhsusf_acc_harris_bipod";
_unit addPrimaryWeaponItem "rhsusf_acc_anpeq15A";
_unit addWeapon "RH_m9";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhsusf_ANPVS_14";
_unit addItemToVest "RH_anpvs4";
_unit addItemToVest "RH_15Rnd_9x19_M9";
_unit addItemToUniform "ACE_RangeCard";
_unit addItemToUniform "ACE_EarPlugs";
_unit addItemToUniform "ACE_MapTools";
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_m67";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m118_special_Mag";};
for "_i" from 1 to 5 do {_unit addItemToBackpack "rhsusf_20Rnd_762x51_m118_special_Mag";};// fact: BLU_F
// desc: Sniper
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "TRYK_R_CAP_OD_US";
_unit addBackpack "rhsusf_assault_eagleaiii_coy";
_unit addItemToVest "BWA3_10Rnd_127x99_G82";
_unit addItemToVest "BWA3_40Rnd_46x30_MP7";
_unit addWeapon "BWA3_G82";
_unit addPrimaryWeaponItem "rhsusf_acc_premier";
_unit addWeapon "BWA3_MP7";
_unit addHandgunItem "BWA3_muzzle_snds_MP7";
_unit addHandgunItem "BWA3_acc_VarioRay_irlaser";
_unit addHandgunItem "BWA3_optic_EOTech";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
_unit addItemToUniform "ACE_Kestrel4500";
_unit addItemToUniform "ACE_RangeCard";
_unit addItemToVest "ACE_Tripod";
_unit addItemToVest "rhsusf_acc_premier_anpvs27";
for "_i" from 1 to 2 do {_unit addItemToUniform "BWA3_40Rnd_46x30_MP7";};
for "_i" from 1 to 3 do {_unit addItemToVest "BWA3_10Rnd_127x99_G82";};
for "_i" from 1 to 7 do {_unit addItemToBackpack "BWA3_10Rnd_127x99_G82";};// fact: BLU_F
// desc: Spotter
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_rifleman";
_unit addHeadgear "TRYK_R_CAP_OD_US";
_unit addBackpack "tfw_ilbe_dd_wd";
_unit addItemToVest "rhsusf_20Rnd_762x51_m993_Mag";
_unit addItemToVest "BWA3_40Rnd_46x30_MP7";
_unit addWeapon "rhs_weap_sr25";
_unit addPrimaryWeaponItem "rhsusf_acc_SR25S";
_unit addPrimaryWeaponItem "rhsusf_acc_anpeq15A";
_unit addPrimaryWeaponItem "rhsusf_acc_LEUPOLDMK4";
_unit addPrimaryWeaponItem "RH_HBLM";
_unit addWeapon "BWA3_MP7";
_unit addHandgunItem "BWA3_muzzle_snds_MP7";
_unit addHandgunItem "BWA3_acc_VarioRay_irlaser";
_unit addHandgunItem "BWA3_optic_EOTech";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
_unit addWeapon "Rangefinder";
_unit addItemToUniform "ACE_Kestrel4500";
_unit addItemToUniform "ACE_RangeCard";
_unit addItemToVest "ACE_Tripod";
_unit addItemToVest "RH_anpvs4";
for "_i" from 1 to 3 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m993_Mag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 7 do {_unit addItemToBackpack "rhsusf_20Rnd_762x51_m993_Mag";};// fact: BLU_F
// desc: Team Leader
_unit addUniform "rhs_uniform_FROG01_wd";
_unit addVest "rhsusf_spc_teamleader";
_unit addHeadgear "rhsusf_lwh_helmet_marpatwd_headset";
_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";
_unit addItemToVest "rhs_mag_M433_HEDP";
_unit addWeapon "rhs_weap_m16a4_carryhandle_M203";
_unit addPrimaryWeaponItem "rhsusf_acc_ACOG_USMC";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhsusf_ANPVS_14";
_unit addWeapon "Binocular";
_unit addItemToUniform "ACE_Flashlight_MX991";
_unit addItemToUniform "ACE_EarPlugs";
_unit addItemToVest "rhsusf_acc_anpeq15A";
for "_i" from 1 to 6 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 8 do {_unit addItemToVest "rhs_mag_M433_HEDP";};
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_mag_m714_White";};// fact: OP_F
// desc: Член экипажа
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_crew";
_unit addHeadgear "rhs_tsh4_ess";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addWeapon "rhs_weap_ak74m_plummag_folded";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "ACE_NVG_Wide";
for "_i" from 1 to 3 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};// fact: OP_F
// desc: Командир отделения
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_6sh92_vog_headset";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "tf_mr3000_rhs";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addItemToVest "rhs_VOG25";
_unit addItemToVest "rhs_mag_9x19_17";
_unit addWeapon "rhs_weap_ak74m_gp25";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit addPrimaryWeaponItem "rhs_acc_1p78";
_unit addWeapon "rhs_weap_pya";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhs_1PN138";
_unit addItemToVest "rhs_mag_9x19_17";
_unit addItemToUniform "ACE_Flashlight_KSF1";
_unit addItemToVest "rhs_acc_1pn93_1";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};
for "_i" from 1 to 10 do {_unit addItemToBackpack "rhs_VOG25";};
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_VG40MD_White";};// fact: OP_F
// desc:
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_medic";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "B_Kitbag_rgr";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addWeapon "rhs_weap_ak74m";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhs_1PN138";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_mag_rdg2_white";};// fact: OP_F
// desc: Командир отделения
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_medic";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "tf_mr3000_rhs";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addWeapon "rhs_weap_ak74m";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhs_1PN138";
_unit addItemToUniform "ACE_Flashlight_KSF1";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};// fact: OP_F
// desc: Пулеметчик
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_rifleman";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "rhs_sidor";
_unit addItemToVest "rhs_100Rnd_762x54mmR";
_unit addWeapon "rhs_weap_pkp";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhs_1PN138";
_unit addItemToUniform "ACE_EarPlugs";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};
_unit addItemToVest "rhs_100Rnd_762x54mmR";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhs_100Rnd_762x54mmR";};// fact: OP_F
// desc:
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_6sh92";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "rhs_sidor";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addWeapon "rhs_weap_ak74m";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhs_1PN138";
_unit addItemToUniform "ACE_EarPlugs";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhs_100Rnd_762x54mmR";};// fact: OP_F
// desc: -7
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_6sh92";
_unit addBackpack "rhs_rpg_empty";
_unit addHeadgear "rhs_6b27m_digi";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addItemToBackpack "rhs_rpg7_PG7VL_mag";
_unit addWeapon "rhs_weap_ak74m";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit addWeapon "rhs_weap_rpg7";
_unit addSecondaryWeaponItem "rhs_acc_pgo7v";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhs_1PN138";
_unit addItemToUniform "ACE_EarPlugs";
_unit addItemToVest "rhs_acc_1pn93_2";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_rpg7_PG7VL_mag";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_rpg7_OG7V_mag";};// fact: OP_F
// desc:
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_6sh92";
_unit addBackpack "rhs_rpg_empty";
_unit addHeadgear "rhs_6b27m_digi";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addWeapon "rhs_weap_ak74m";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "rhs_1PN138";
_unit addItemToUniform "ACE_EarPlugs";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_rpg7_PG7VL_mag";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_rpg7_OG7V_mag";};// fact: OP_F
// desc: Снайпер
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_digi_sniper";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "rhs_sidor";
_unit addItemToVest "rhs_10Rnd_762x54mmR_7N1";
_unit addWeapon "rhs_weap_svdp";
_unit addPrimaryWeaponItem "rhs_acc_pso1m2";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhs_1PN138";
for "_i" from 1 to 2 do {_unit addItemToUniform "rhs_mag_rdg2_white";};
for "_i" from 1 to 8 do {_unit addItemToVest "rhs_10Rnd_762x54mmR_7N1";};
_unit addItemToVest "rhs_acc_1pn93_1";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
// fact: OP_F
// desc: Старший стрелок
_unit addUniform "rhs_uniform_msv_emr";
_unit addVest "rhs_6b23_6sh116_vog";
_unit addHeadgear "rhs_6b27m_digi";
_unit addBackpack "rhs_sidor";
_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";
_unit addItemToVest "rhs_VOG25";
_unit addWeapon "rhs_weap_ak74m_gp25";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit addPrimaryWeaponItem "rhs_acc_1p29";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit linkItem "rhs_1PN138";
_unit addItemToUniform "ACE_Flashlight_KSF1";
_unit addItemToVest "rhs_acc_1pn93_1";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7n10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rgd5";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rdg2_white";};
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_VOG25";};
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_VG40MD_White";};_unit = _this select 0;
_faction = _this select 1;
_loadout = _this select 2;
_AI_processor = {
_this setBehaviour "CARELESS";
_this allowFleeing 0;
_this disableAI "AUTOTARGET";
_this disableAI "PATHPLAN";
//_this setCombatMode "BLUE";
_this doWatch objNull;
_this disableAI "MOVE";
_this stop true;
_this setVariable ["BIS_noCoreConversations", true];
_this disableConversation true;
};
_item_processor = {
removeAllItems _this;
removeAllWeapons _this;
removeAllItemsWithMagazines _this;
removeAllAssignedItems _this;
removeUniform _this;
removeBackpack _this;
removeGoggles _this;
removeHeadgear _this;
removeVest _this;
/*_this removeWeapon "ItemGPS";*/
_this addWeapon "ItemMap";
_this addWeapon "ItemRadio";
};
if (!isNull _unit) then
{
_unit call _AI_processor;
};
if (!isServer) exitWith {};
_unit call _item_processor;
_svn = format ["SerP_equipment_codes_%1_%2",_faction, _loadout];
if (isNil _svn) then
{
missionNamespace setVariable [_svn,
compile preprocessFileLineNumbers format ["Equipment\%1\%2.sqf", _faction, _loadout]
];
};
[_unit] call (missionNamespace getVariable [_svn, {}]);
_veh = _this select 0;
_veh addItemcargoglobal ["rhs_30Rnd_545x39_7n10_AK", 27];
_veh addItemcargoglobal ["rhs_30Rnd_545x39_AK_green", 18];
_veh addItemcargoglobal ["rhs_mag_rgd5", 18];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 18];
_veh addItemcargoglobal ["rhs_VOG25", 16];
_veh addItemcargoglobal ["rhs_VG40OP_white", 8];
_veh addItemcargoglobal ["rhs_VG40OP_green", 4];
_veh addItemcargoglobal ["rhs_VG40OP_red", 4];
_veh addItemcargoglobal ["rhs_10Rnd_762x54mmR_7N1", 10];
_veh addItemcargoglobal ["rhs_rpg7_PG7VL_mag", 3];
_veh addItemcargoglobal ["rhs_rpg7_OG7V_mag", 2];
_veh addItemcargoglobal ["rhs_100Rnd_762x54mmR", 5];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_white", 9];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_red", 5];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_green", 5];
_veh addWeaponcargoGlobal ["rhs_weap_rpg26", 1];
_veh addItemCargoGlobal ["ACE_elasticBandage",18];
_veh addItemCargoGlobal ["ACE_packingBandage",18];
_veh addItemCargoGlobal ["ACE_quikclot",18];
_veh addItemCargoGlobal ["ACE_epinephrine",9];
_veh addItemCargoGlobal ["ACE_fieldDressing",18];
_veh addItemCargoGlobal ["ACE_morphine",9];
_veh addWeaponcargoGlobal ["rhs_weap_igla", 1];
_veh addItemcargoglobal ["rhs_mag_9k38_rocket", 1];
_veh addBackpackCargoGlobal ["rhs_sidor", 3];
_veh addItemcargoglobal ["ToolKit", 1];_veh = _this select 0;
_veh addItemcargoglobal ["rhs_30Rnd_545x39_7n10_AK", 27];
_veh addItemcargoglobal ["rhs_30Rnd_545x39_AK_green", 18];
_veh addItemcargoglobal ["rhs_mag_rgd5", 18];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 18];
_veh addItemcargoglobal ["rhs_VOG25", 16];
_veh addItemcargoglobal ["rhs_VG40OP_white", 8];
_veh addItemcargoglobal ["rhs_VG40OP_green", 4];
_veh addItemcargoglobal ["rhs_VG40OP_red", 4];
_veh addItemcargoglobal ["rhs_10Rnd_762x54mmR_7N1", 10];
_veh addItemcargoglobal ["rhs_rpg7_PG7VL_mag", 3];
_veh addItemcargoglobal ["rhs_rpg7_OG7V_mag", 2];
_veh addItemcargoglobal ["rhs_100Rnd_762x54mmR", 5];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_white", 9];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_red", 5];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_green", 5];
_veh addWeaponcargoGlobal ["rhs_weap_rpg26", 1];
_veh addItemCargoGlobal ["ACE_elasticBandage",18];
_veh addItemCargoGlobal ["ACE_packingBandage",18];
_veh addItemCargoGlobal ["ACE_quikclot",18];
_veh addItemCargoGlobal ["ACE_epinephrine",9];
_veh addItemCargoGlobal ["ACE_fieldDressing",18];
_veh addItemCargoGlobal ["ACE_morphine",9];
_veh addWeaponcargoGlobal ["rhs_weap_igla", 1];
_veh addItemcargoglobal ["rhs_mag_9k38_rocket", 1];
_veh addBackpackCargoGlobal ["rhs_sidor", 3];
_veh addItemcargoglobal ["ToolKit", 1];
_veh setMagazineTurretAmmo ["rhs_mag_3UOF191_22", 10, [0]];
_veh setMagazineTurretAmmo ["rhs_mag_9m117_8", 2, [0]];_veh = _this select 0;
_veh addItemcargoGlobal ["rhs_30Rnd_545x39_7n10_AK",12];
_veh addItemcargoGlobal ["rhs_30Rnd_545x39_AK_green",6];
_veh addItemcargoGlobal ["rhs_mag_rdg2_white",12];
_veh addItemCargoGlobal ["ACE_fieldDressing",45];
_veh addItemCargoGlobal ["ACE_elasticBandage",25];
_veh addItemCargoGlobal ["ACE_packingBandage",25];
_veh addItemCargoGlobal ["ACE_quikclot",25];
_veh addItemCargoGlobal ["ACE_morphine",25];
_veh addItemCargoGlobal ["ACE_atropine",25];
_veh addItemCargoGlobal ["ACE_epinephrine",20];
_veh addItemCargoGlobal ["ACE_bloodIV_500",15];
_veh addItemCargoGlobal ["ACE_salineIV_500",15];
_veh addItemCargoGlobal ["ACE_personalAidKit",15];
_veh addBackpackCargoGlobal ["B_Kitbag_rgr",1];_veh = _this select 0;
_veh addMagazineCargoGlobal ["rhs_mag_9k38_rocket", 2];
_veh addBackpackCargoGlobal ["rhs_sidor", 1];_veh = _this select 0;
_veh addItemcargoglobal ["rhs_30Rnd_545x39_7n10_AK", 27];
_veh addItemcargoglobal ["rhs_30Rnd_545x39_AK_green", 18];
_veh addItemcargoglobal ["rhs_mag_rgd5", 18];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 18];
_veh addItemcargoglobal ["rhs_VOG25", 16];
_veh addItemcargoglobal ["rhs_VG40OP_white", 8];
_veh addItemcargoglobal ["rhs_VG40OP_green", 4];
_veh addItemcargoglobal ["rhs_VG40OP_red", 4];
_veh addItemcargoglobal ["rhs_10Rnd_762x54mmR_7N1", 10];
_veh addItemcargoglobal ["rhs_rpg7_PG7VL_mag", 3];
_veh addItemcargoglobal ["rhs_rpg7_OG7V_mag", 2];
_veh addItemcargoglobal ["rhs_100Rnd_762x54mmR", 5];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_white", 9];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_red", 5];
_veh addWeaponCargoGlobal ["rhs_weap_rsp30_green", 5];
_veh addWeaponcargoGlobal ["rhs_weap_rpg26", 1];
_veh addItemCargoGlobal ["ACE_elasticBandage",18];
_veh addItemCargoGlobal ["ACE_packingBandage",18];
_veh addItemCargoGlobal ["ACE_quikclot",18];
_veh addItemCargoGlobal ["ACE_epinephrine",9];
_veh addItemCargoGlobal ["ACE_fieldDressing",18];
_veh addItemCargoGlobal ["ACE_morphine",9];_veh = _this select 0;
_veh addItemcargoglobal ["rhs_30Rnd_545x39_7n10_AK", 9];
_veh addItemcargoglobal ["rhs_30Rnd_545x39_AK_green", 6];
_veh addItemcargoglobal ["rhs_mag_rgd5", 9];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 9];
_veh addItemCargoGlobal ["ACE_elasticBandage",9];
_veh addItemCargoGlobal ["ACE_packingBandage",9];
_veh addItemCargoGlobal ["ACE_quikclot",9];
_veh addItemCargoGlobal ["ACE_epinephrine",6];
_veh addItemCargoGlobal ["ACE_fieldDressing",9];
_veh addItemCargoGlobal ["ACE_morphine",6];
_veh addBackpackCargoGlobal ["rhs_sidor", 1];
_veh addItemcargoglobal ["ToolKit", 1];
_veh removemagazinesturret ["RHS_mag_AZP23_250", [0]];
_veh addmagazineturret ["RHS_mag_AZP23_250", [0]];
_veh setmagazineturretammo ["RHS_mag_AZP23_250", 2000, [0]];_veh = _this select 0;
_veh addMagazineCargoGlobal ["BN_40Rnd_23mm", 9];
_veh addBackpackCargoGlobal ["rhs_sidor", 1];
_veh addItemCargoGlobal ["ACE_EarPlugs", 2];_veh = _this select 0;
_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",6];
_veh addItemcargoglobal ["ACE_fieldDressing",9];
_veh addItemCargoGlobal ["ACE_elasticBandage",9];
_veh addItemCargoGlobal ["ACE_packingBandage",9];
_veh addItemCargoGlobal ["ACE_quikclot",9];
_veh addItemCargoGlobal ["ACE_epinephrine",6];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",9];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",6];
_veh addItemcargoGlobal ["rhs_mag_m67",6];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",9];
_veh addBackpackCargoGlobal ["tfw_ilbe_dd_wd",3];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",4];
_veh addItemcargoglobal ["ACE_fieldDressing",8];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",8];
_veh addItemcargoGlobal ["rhs_200rnd_556x45_B_SAW",5];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",8];
_veh addItemcargoGlobal ["rhs_mag_M714_white",4];
_veh addItemcargoGlobal ["rhs_mag_m67",8];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",12];
_veh addItemcargoGlobal ["rhs_weap_M136",1];
_veh addBackpackCargoGlobal ["rhsusf_assault_eagleaiii_coy",1];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",4];
_veh addItemcargoglobal ["ACE_fieldDressing",8];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",8];
_veh addItemcargoGlobal ["rhs_200rnd_556x45_B_SAW",5];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",8];
_veh addItemcargoGlobal ["rhs_mag_M714_white",4];
_veh addItemcargoGlobal ["rhs_mag_m67",8];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",12];
_veh addItemcargoGlobal ["rhs_weap_M136",1];
_veh addItemcargoglobal ["rhsusf_20Rnd_762x51_m118_special_Mag", 5];
_veh addBackpackCargoGlobal ["rhsusf_assault_eagleaiii_coy",3];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",4];
_veh addItemcargoglobal ["ACE_fieldDressing",8];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemCargoGlobal ["ACE_personalAidKit",15];
_veh addItemCargoGlobal ["ACE_bloodIV_500",15];
_veh addItemCargoGlobal ["ACE_salineIV_500",15];
_veh addItemCargoGlobal ["ACE_tourniquet",15];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",8];
_veh addItemcargoGlobal ["rhs_200rnd_556x45_B_SAW",5];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",8];
_veh addItemcargoGlobal ["rhs_mag_M714_white",4];
_veh addItemcargoGlobal ["rhs_mag_m67",8];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",12];
_veh addBackpackCargoGlobal ["rhsusf_assault_eagleaiii_coy",1];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",7];
_veh addItemcargoglobal ["ACE_fieldDressing",14];
_veh addItemCargoGlobal ["ACE_elasticBandage",14];
_veh addItemCargoGlobal ["ACE_packingBandage",14];
_veh addItemCargoGlobal ["ACE_quikclot",14];
_veh addItemCargoGlobal ["ACE_epinephrine",7];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",15];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",10];
_veh addItemcargoGlobal ["rhsusf_100Rnd_762x51_m993",10];
_veh addItemcargoGlobal ["rhs_mag_m67",14];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",14];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",4];
_veh addItemcargoglobal ["ACE_fieldDressing",8];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",6];
_veh addItemcargoGlobal ["rhs_mag_m67",8];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",12];
_veh addItemcargoGlobal ["rhs_mag_smaw_HEAA",2];
_veh addItemcargoGlobal ["rhs_mag_smaw_HEDP",2];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",5];
_veh addItemcargoglobal ["ACE_fieldDressing",10];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",8];
_veh addItemcargoGlobal ["rhs_200rnd_556x45_B_SAW",5];
_veh addItemcargoGlobal ["rhs_mag_m67",10];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",15];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",8];
_veh addItemcargoGlobal ["rhs_mag_M714_white",4];
_veh addItemcargoGlobal ["rhs_weap_M136",1];
_veh addItemcargoGlobal ["rhs_mag_100rnd_127x99_mag",4];
_veh addBackpackCargoGlobal ["rhsusf_assault_eagleaiii_coy",2];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",5];
_veh addItemcargoglobal ["ACE_fieldDressing",10];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",8];
_veh addItemcargoGlobal ["rhs_200rnd_556x45_B_SAW",5];
_veh addItemcargoGlobal ["rhs_mag_m67",10];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",15];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",8];
_veh addItemcargoGlobal ["rhs_mag_M714_white",4];
_veh addItemcargoGlobal ["RHS_48Rnd_40mm_MK19",2];
_veh addItemcargoGlobal ["rhs_weap_M136",1];
_veh addBackpackCargoGlobal ["rhsusf_assault_eagleaiii_coy",2];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",9];
_veh addItemcargoglobal ["ACE_fieldDressing", 18];
_veh addItemCargoGlobal ["ACE_elasticBandage",18];
_veh addItemCargoGlobal ["ACE_packingBandage",18];
_veh addItemCargoGlobal ["ACE_quikclot",18];
_veh addItemCargoGlobal ["ACE_epinephrine",9];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",27];
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",18];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",16];
_veh addItemcargoGlobal ["rhs_mag_M714_white",8];
_veh addItemcargoGlobal ["rhs_200rnd_556x45_B_SAW",10];
_veh addItemcargoGlobal ["rhs_mag_m67",18];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",18];
_veh addItemcargoGlobal ["rhs_weap_M136",2];
_veh addBackpackCargoGlobal ["rhsusf_assault_eagleaiii_coy",4];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",12];
_veh addItemcargoglobal ["ACE_fieldDressing",24];
_veh addItemCargoGlobal ["ACE_elasticBandage",24];
_veh addItemCargoGlobal ["ACE_packingBandage",24];
_veh addItemCargoGlobal ["ACE_quikclot",24];
_veh addItemCargoGlobal ["ACE_epinephrine",12];
_veh addItemcargoglobal ["rhs_mag_30Rnd_556x45_Mk318_Stanag",20];
_veh addItemcargoglobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",15];
_veh addItemcargoglobal ["RH_60Rnd_556x45_Mk318",10];
_veh addItemcargoglobal ["rhsusf_20Rnd_762x51_m993_Mag",10];
_veh addItemcargoGlobal ["rhs_mag_M433_HEDP",12];
_veh addItemcargoGlobal ["rhs_mag_m714_White",4];
_veh addItemcargoGlobal ["rhs_mag_m67",20];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",20];
_veh addItemcargoGlobal ["rhs_weap_M136",2];_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine",6];
_veh addItemcargoglobal ["ACE_fieldDressing",10];
_veh addItemCargoGlobal ["ACE_elasticBandage",10];
_veh addItemCargoGlobal ["ACE_packingBandage",10];
_veh addItemCargoGlobal ["ACE_quikclot",10];
_veh addItemCargoGlobal ["ACE_epinephrine",6];
_veh addItemcargoglobal ["BWA3_10Rnd_127x99_G82",10];
_veh addItemcargoglobal ["rhsusf_20Rnd_762x51_m993_Mag",10];
_veh addItemcargoglobal ["BWA3_40Rnd_46x30_MP7",4];
_veh addItemcargoGlobal ["rhs_mag_m67",8];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",8];
_veh addItemcargoGlobal ["rhsusf_mich_bare_norotos",2];
//
_veh = _this select 0;
_faction = _this select 1;
//call compile format ["if (isNil {SerP_veh_%1_processor}) then {SerP_veh_%1_processor = compile preprocessFileLineNumbers 'equipment\veh_%1.sqf'}",_faction];
_loadout = _this select 2;
_cargoBoxes = _this select 3;
//prepare functions
_common_processor = {
_veh = _this;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
};
if (isServer) then
{
if (_faction == "" && _loadout == "common") then {
//_veh addMagazineCargo ["HandGrenade_East",12];
//_veh addWeaponCargo ["ACE_Rucksack_RD90",2];
} else {
_veh call _common_processor;
[_veh] call compile format ["_this call compile preprocessFileLineNumbers 'Equipment\veh_%1\%2.sqf';",_faction,_loadout];
};
};
#define Cfgman (configFile >> "CfgVehicles" >>(typeOf _unitToCheck) >> "_generalmacro")
#define allcrew (typeOf _unitToCheck) in var_restrictedVeh_allcrew
#define iscrew (_vehicle iskindof "landvehicle" && (toLower(gettext Cfgman) find "crew" > -1 || toLower(gettext Cfgman) find "driver" > -1 || ((typeOf _unitToCheck) in var_restrictedVeh_commander)) || (_vehicle iskindof "air" && toLower(gettext Cfgman) find "pilot" > -1) || allcrew )
//======================= функция сканирования действий игрока внутри техники =====================//
fnc_Crewcontrol = {
private ["_typein", "_place", "_veh", "_move"];
if (crew_index) exitwith {};
crew_index = true; //переменная на случай двойного запуска скрипта
_typein = _this select 0;
_place = "";
_veh = (vehicle player); //фикисируем технику
_move=false;
_index = -1;
//цикл работает пока игрок жив и в технике
while {alive player && {player in _veh}} do {
//фикисируем место заниимаемое игроком
call {
if (player == commander _veh) exitwith {_place="commander"};
if (player == gunner _veh) exitwith {_place="gunner"};
if (player == driver _veh) exitwith {_place="driver"};
_place="cargo";
_index=_veh getCargoIndex player;
//hint str (allTurrets H1);
};
sleep 1;
_move = ((player == driver _veh || player == _veh turretUnit [0]) && {_typein in [0,2,3,5]})
|| {(player == gunner _veh && {_typein in [1,2,4,5]})}
|| {(player == commander _veh && {_typein in [3,4,5,6]})};
// если переменая _move активна то запускаем возврат игрока на предыдущее место.
if _move then { if (_place != "cargo") then {player action [format ["moveTo%1",_place], _veh];}else{player action ["moveTocargo", _veh,_index]}; _move = false;hint "Вы не уполномочены управлять данным видом техники."; };
};
crew_index = false;
};
//================= функция запускаемая при входе в технику ========================//
fnc_inCrewfilter = {
private ["_fromEH", "_type", "_vehicle", "_unitToCheck", "_balca", "_side", "_warningMsg", "_state"];
_fromEH = _this select 0;
_type = _this select 1;
_vehicle = _fromEH select 0;
_unitToCheck = _fromEH select 2;
_side = _this select 2;
_exit = false;
if (isnil {_vehicle getVariable "CREW_GETININDEX"}) then { _vehicle setVariable ["CREW_GETININDEX",_type,true];};
if !(local _unitToCheck) exitWith {};
//если необходимо то делаем проверку на сторону
if (count (_side)>0 && {!(toLower (str (side (group _unitToCheck))) in _side)}) exitwith {moveOut _unitToCheck; hint "Вы не уполномочены управлять данным видом техники.";};
//====================================================================
call {
if ((_type != 7 && iscrew) || {(_type == 7 && {allcrew})}) exitwith {}; // если игрок подошел заданным параметрам то выходим из скрипта
_exit = ((_unitToCheck == driver _vehicle || _unitToCheck == _vehicle turretUnit [0]) && {_type in [0,2,3,5]})
|| {_unitToCheck == gunner _vehicle && {_type in [1,2,4,5]}}
|| {_unitToCheck == commander _vehicle && {_type in [3,4,5,6]}}
|| {_unitToCheck in (crew _vehicle) && {_type == 7}};
if _exit exitwith {moveOut _unitToCheck;hint "Вы не уполномочены управлять данным видом техники.";_exit = false;};
[_type] spawn fnc_Crewcontrol; // если игрок занял не запретное место запускаем цикл с проверкой его перемещений в технике во время нахождения в этой технике
};
};
//============= функция форматирования переменных ================//
fnc_format = {
private ["_array"];
_array = [];
{
If (!([_x,_this select 0] call KK_fnc_isEqual)) then
{
if (typeName _x != "STRING") then { _x = str _x};
_array pushBack toLower (_x);
};
} foreach _this;
_array
};
//=================== функция сравнения массивов ================//
KK_fnc_isEqual = {
switch (_this select 0) do
{
case (_this select 1) : {true};
default {false};
};
};
//================== определение запроса ==========================//
private ["_object", "_closepos", "_result", "_side"];
_object = _this select 0; //фиксируем обьект
_closepos= objnull;
_this = _this call fnc_format; //проверяем/форматируем, отсеиваем _object
_pos = [_this, {_this in ["driver","gunner","commander","crew"]}] call CBA_fnc_select;//_result = [[1,2,3], {_this in [2,3]}] call CBA_fnc_select; _result = [2,3];
call {
if (count (_pos)>2) exitwith {_closepos =5};
if (count (_pos)==2) exitwith
{
call {
if ({if(!(_x in ["gunner","commander"])) exitwith {1};} count (_pos) ==0) exitwith {_closepos =4};
if ({if(!(_x in ["driver","commander"])) exitwith {1};} count (_pos) ==0) exitwith {_closepos =3};
if ({if(!(_x in ["driver","gunner"])) exitwith {1};} count (_pos) ==0) exitwith {_closepos =2};
};
};
if (count (_pos)==1) exitwith
{
call {
if ((_pos select 0) == "commander") exitwith {_closepos =6};
if ((_pos select 0) == "gunner") exitwith {_closepos =1};
if ((_pos select 0) == "driver") exitwith {_closepos =0};
if ((_pos select 0) == "crew") exitwith {_closepos =7};
};
};
if (count (_pos)==0) exitwith {_closepos =8};
};
_side = [_this, {_this in ["west","east","guer","civ"]}] call CBA_fnc_select;
_recoil = [_this, {_this in ["recoil"]}] call CBA_fnc_select;
_object setVariable ["BLOCKPOS", _closepos,true];
_object setVariable ["TRUESIDE", _side,true];
_object addEventHandler ["GetIn",{[_this,(_this select 0) getVariable "BLOCKPOS" ,(_this select 0) getVariable "TRUESIDE"] call fnc_inCrewfilter}];
// ARMA3.RU Mission Template
enableSaving [false, false];
0 = execVM "add_med.sqf";
// Init modules
#include "a3a_modules.hpp"
{
[] execVM "A3A_MODULES\" + _x + "\init.sqf";
} forEach A3A_MODULES;
//подключение скрипта ограничения посадки в технику
if (!isDedicated) then {
waitUntil{(player==player)};
waitUntil{alive player};
waitUntil{local player};
crew_index = false;
var_restrictedVeh_commander = ['rhsusf_usmc_marpat_wd_helipilot','rhs_msv_emr_combatcrew','rhsusf_usmc_marpat_wd_crewman'];
var_restrictedVeh_allcrew = [];
if (!isnil {isCrew} ) then { var_restrictedVeh_allcrew=var_restrictedVeh_allcrew + isCrew;};
if (vehicle player != player && {!isnil {(vehicle player) getVariable "CREW_GETININDEX"}}) then { [[(vehicle player),"",player],(vehicle player) getVariable "CREW_GETININDEX"] call fnc_inCrew};
};
//подлючение вкладки Условности миссии в брифинге
player createDiaryRecord ["diary", ["Условности миссии", loadFile "A3A_BRIEFING\briefing_MISSC.html"]];
if (!isDedicated) then {
a11 setObjectTextureGlobal [0, "med_co.paa"];
a12 setObjectTextureGlobal [0, "med_co.paa"];
a21 setObjectTextureGlobal [0, "med_co.paa"];
a22 setObjectTextureGlobal [0, "med_co.paa"];
};
setTerrainGrid 1; JFIF ` ` C
C "
} !1AQa"q2#BR$3br
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
w !1AQaq"2B #3Rbr
$4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? /WrhږpB?窮J}z{:."'#Z oO
iܱpoqoB0?w
=꾟O ~wOqf C }v*vJ7jRWL4ah#*X H?yETԴF&
c9'oQanlLx-x=5z=֣0dVTo~MIuo<>=3?:5٬R+1(w*EYϜK RJ;tG+WM cךN֮}9g]^ +{ypfF>N҃kX?}.8*=:x+