A3A_BRIEFING\briefing_BLUEFOR_ENEMY.html ^ A3A_BRIEFING\briefing_BLUEFOR_TASKS.html |:#^ A3A_BRIEFING\briefing_MISSION_CONV.html eH#^
A3A_BRIEFING\briefing_MISSION_DESCRIPTION.html G#^F A3A_BRIEFING\briefing_OPFOR_ENEMY.html 1^ A3A_BRIEFING\briefing_OPFOR_TASKS.html ^b a3a_client_scripts.sqf !]] A3A_EQUIPMENT\equip_aaf.sqf VT A3A_EQUIPMENT\equip_csat.sqf VY A3A_EQUIPMENT\equip_fia.sqf `V) A3A_EQUIPMENT\equip_nato.sqf VW A3A_EQUIPMENT\equip_OMSB_BTR.sqf V
) A3A_EQUIPMENT\equip_USAR.sqf VDP A3A_EQUIPMENT\vehicles_aaf.sqf |Vq A3A_EQUIPMENT\vehicles_csat.sqf V A3A_EQUIPMENT\vehicles_fia.sqf Vx A3A_EQUIPMENT\vehicles_nato.sqf V{ A3A_EQUIPMENT\vehicles_OMSB_BTR.sqf ąV
A3A_EQUIPMENT\vehicles_USAR.sqf V a3a_modules.hpp μT A3A_MODULES\AddonsCheck\init.sqf ϼT, A3A_MODULES\NamesInVehicle\a3ru_onMouseZChanged.sqf ʧVTw A3A_MODULES\NamesInVehicle\fn_namesInVehicle.sqf VT A3A_MODULES\NamesInVehicle\init.sqf lT A3A_MODULES\PlayerTags\init.sqf xT A3A_MODULES\StaticDrag\fn_onKeyDown.sqf VT A3A_MODULES\StaticDrag\fn_staticCanDrag.sqf GVT A3A_MODULES\StaticDrag\fn_staticDrag.sqf !Ts A3A_MODULES\StaticDrag\fn_staticRelease.sqf
T A3A_MODULES\StaticDrag\fn_staticRotate.sqf VT A3A_MODULES\StaticDrag\init.sqf T a3a_server_scripts.sqf 1:#^ A3A_SETUP\a3a_header.hpp j|[ A3A_SETUP\a3a_parameters.hpp ވ[ A3A_SETUP\infiSTAR_AdminMenu.hpp -Y+ add_equp.sqf 3#^E add_med_med.sqf ZVUV bn_crew_control.sqf Z delete_EH.sqf ^* description.ext ˠ|[ Equipment\macros.hpp V~ Equipment\unitprocessor.sqf :|[s Equipment\USA\AB.sqf 1#^J Equipment\USA\AR.sqf O#^< Equipment\USA\ASN.sqf 9/#^n Equipment\USA\FTL.sqf #^_ Equipment\USA\GP.sqf #^F Equipment\USA\KS.sqf #^
Equipment\USA\MED.sqf #^ Equipment\USA\MG.sqf 0#^ Equipment\USA\MGH.sqf 0#^h Equipment\USA\pilot.sqf u4#^ Equipment\USA\RTO.sqf #^ Equipment\USA\S.sqf #^a Equipment\USA\SL.sqf #^ Equipment\USA\SN.sqf /#^ Equipment\veh_USA\CH47.sqf 04#^ Equipment\veh_USA\UH.sqf /4#^ Equipment\veh_VTNM\AMO.sqf ^A Equipment\veh_VTNM\btr.sqf ^, Equipment\veh_VTNM\car.sqf #^ Equipment\veh_VTNM\MED_PACK.sqf ^ Equipment\veh_VTNM\medical.sqf {^{ Equipment\veh_VTNM\zu.sqf ^ Equipment\vehprocessor.sqf +V@ Equipment\VTNM\com_med.sqf #^ Equipment\VTNM\com_otd.sqf 8"^M Equipment\VTNM\commander.sqf #^ Equipment\VTNM\med.sqf #^ Equipment\VTNM\mg.sqf G#^ Equipment\VTNM\mg_sup.sqf G#^ Equipment\VTNM\riflmn.sqf N ^ Equipment\VTNM\rpk.sqf "^ Equipment\VTNM\sniper.sqf "^z Equipment\VTNM\strl.sqf "#^ flag.paa h^d flag.sqf h^ init.sqf Z:#^ loadScreen.jpg ^c mis_funcs\fn_preinit.sqf [I mission.sqm }j#^ۅ mission_description.hpp ^ mission_parameters.hpp kk]6
Повстанцы.
Наша задача уничтожить склад топлива повстанцев и захватить их полевой штаб.
Наша высадка пройдет вдоль берега рано утром, прогнозируют туман и дождь, но со временем погода должна улучшиться.
Высаживаться будем недалеко от недавно уничтоженной нами авиабазы, говорят повстанцы оставили для нам там сюрпризы, поэтому лучше туда не лезть.
Из-за тумана наша транспортировка вертолётами вглубь острова затрудняется, вертолёты будут ждать улучшения погоды, чтобы перебросить нас глубже.
Общие условности:
- Запрещено надевать элементы формы противника(кроме рюкзаков).
- Запрещено снимать форму/разгрузку.
- Всем запрещено входить на территорию уничтоженой авиабазы (черный маркер).
- Всем кроме пилотов синий стороны запрещено переходить мост.
- Всем запрещено находиться за границами карты.
Условности для синих:
- В течение 30 минут после варбегина вертолеты могут высаживать\подбирать отделения ТОЛЬКО в пределах красных маркеров.
- По истечении 30 минут после варбегина на уничтоженной авиабазе появится КРАСНЫЙ дым(Теперь вертолётам можно подбирать\высаживать отделения за пределами красных маркеров).
- Запрещено высаживать отделения севернее синего маркера.
- Пехотным отделениям запрещено пересекать синий маркер(Сетчатая зона заминирована).
- Пилоты могут оставить свои вертолеты в оранжевом маркере и, взяв транспорт, перебраться на материк.
Условности для зелёных:
- Запрещено покидать материк.
Технические условности:
- Флаг перезахватываемый.
- Менять время суток и погоду нельзя.
- Время на миссию 1 ч. 50 мин.
ПРИМЕЧАНИЕ!!!:
- Зона чёрного маркера визуально обозначена пальмами.
- Зона красных маркеров в некоторых местах на суше обозначена пальмами.
- Зона красных маркеров на воде обозначена лодками.
Условия победы сторон:
- Если по истечении времени американцы захватили базу повстнцев и уничтожили склад топлива, то они выигрывают, в противном случае выигрывают повстанцы.
- Количество живой силы для поражения американцами: 10; повстанцами - 5.
1966 год.
Американское вмешательство во Вьетнаме в самом разгаре.
При последней бомбардировке одного из аэродромов американскими военными, недалеко от него было замечено место скопления множества повстанцев.
Установленно, что в данном месте находится полевой штаб повстанцев. Недалеко от него имеется скрытое большое хранилище топлива.
Американцами было принято решение уничтожить данные объекты и все то, что может этому помешать.
Версия: 2
Автор: [FUNT]Bashelion
Армия США.
Нам нужно защитить склад топлива и полевой штаб от проклятых американцев.
Недавно они уничтожили нашу авиабазу, нельзя дать им добить нас!
Собираем силы со всех ближайших районов, чтобы дать отпор американскому вмешательству. Наши зенитки готовы встречать их вертолёты.
// Клиентские скрипты, выполняются после инициализации платформы
// Нельзя прописывать вложенные действия. Т.е. нельзя прописывать в действие создание предмета и потом этому предмету прописывать действия (речь о addAction). В такоем случае это будет работать только для того Игрока, который совершил первое действие. Для корректной работы, чтобы действия могли совершать все игроки нужно прописывать эти дейсвтия игрокам, при наведении и совпадении классов на предмете. В скриптах закомментирован неверный код - как делать Не надо. (т.к. не заработает так как вы хотели бы)
// 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]
};// OMSB (BTR) 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 "KOM_R": {
_e_prim = ["rhs_weap_ak74m"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_30Rnd_545x39_AK_green", 1], ["rhs_mag_rgd5", 2], ["rhs_mag_rdg2_white", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhs_acc_1p29","rhs_acc_1pn93_1"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Rangefinder", "ACE_MapTools"] + _standartMed;
_e_back = [];
};
case "TEH": { // Техник
_e_prim = ["rhs_weap_ak74m"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_mag_rdg2_white", 2],["rhs_mag_rdg2_black", 1],["SmokeShellGreen", 1]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_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", "NVGoggles_OPFOR", "ACE_Clacker", "ACE_DefusalKit"] + _standartMed;
_e_back = ["rhs_assault_umbts_engineer"]; // 1 инженерный набор в комплекте с рюкзаком RHS
};
case "MED_KOM": { // Медик, командир отделения
_e_prim = ["rhs_weap_ak74m"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4], ["rhs_mag_rgd5", 2], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_OPFOR"] + _extendedMed;
_e_back = ["tf_mr3000_rhs", "rhs_assault_umbts"];
};
case "MED": { // Медик
_e_prim = ["hlc_rifle_aks74u"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4], ["rhs_mag_rgd5", 2], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles_OPFOR"] + _extendedMed;
_e_back = ["rhs_assault_umbts"];
};
case "RAD": { // Радист
_e_prim = ["rhs_weap_ak74m"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4], ["rhs_mag_rgd5", 2], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_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", "NVGoggles_OPFOR"] + _standartMed;
_e_back = ["tf_mr3000_rhs"];
};
case "KO": { // Командир отделения
_e_prim = ["rhs_weap_ak74m_camo", "rhs_weap_ak74m_desert"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_30Rnd_545x39_AK_green", 2], ["rhs_mag_rgd5", 2], ["rhs_mag_rdg2_white", 2],["Chemlight_red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhs_acc_1p29","rhs_acc_1pn93_1"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular", "ACE_MapTools"] + _standartMed;
_e_back = ["tf_mr3000_rhs"];
};
case "CREW": { // Экипаж
_e_prim = ["hlc_rifle_aks74u"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch"];
_e_back = [];
};
case "KV": { // Ком. взвода
_e_prim = ["rhs_weap_ak74m_2mag", "rhs_weap_ak74m_camo", "rhs_weap_ak74m_desert"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_30Rnd_545x39_AK_green", 2], ["rhs_mag_rgd5", 2], ["rhs_mag_rdg2_white", 2],["rhs_mag_fakel",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhs_acc_1p29","rhs_acc_1pn93_1"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Rangefinder"] + _standartMed;
_e_back = ["tf_mr3000_rhs"];
};
case "ZKV": { // Зам. Ком. взвода
_e_prim = ["rhs_weap_ak74m_gp25"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_30Rnd_545x39_AK_green", 2], ["rhs_VOG25", 6], ["rhs_vg40op_white", 2],["rhs_GRD40_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhs_acc_pkas"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular", "ACE_CableTie"] + _standartMed;
_e_back = ["rhs_assault_umbts"];
};
case "STS": { // Старший Стрелок
_e_prim = ["rhs_weap_ak74m_gp25"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_30Rnd_545x39_AK_green", 2], ["rhs_VOG25", 6], ["rhs_vg40op_red", 2],["rhs_GRD40_white",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhs_acc_pkas"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular"] + _standartMed;
_e_back = ["rhs_sidor"];
};
case "MG": { // Пулеметчик
_e_prim = ["rhs_weap_pkp"];
_e_prim_mag = [
[["rhs_100Rnd_762x54mmR", 2],["rhs_100Rnd_762x54mmR_green", 1], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhs_assault_umbts"];
};
case "AMG": { // Помошник пулеметчика
_e_prim = ["rhs_weap_ak74m"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_100Rnd_762x54mmR", 3],["rhs_100Rnd_762x54mmR_green", 1], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhs_assault_umbts"];
};
case "RPG": { // Стрелок РПГ-7
_e_prim = ["hlc_rifle_aks74u"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = ["rhs_weap_rpg7"];
_e_sec_mag = [[["rhs_rpg7_PG7VL_mag", 1], ["rhs_rpg7_OG7V_mag", 1]]];
_e_sec_mods = ["rhs_acc_pgo7v"];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 3]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "ACE_EarPlugs"];
_e_back = ["rhs_assault_umbts"];
};
case "ARPG": { // Помошник гранатометчика
_e_prim = ["rhs_weap_ak74m"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4], ["rhs_mag_rdg2_white", 2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = [];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhs_rpg"]; // 3 ВЛ выстрела для РПГ в комплекте рюкзака RHS
};
case "STR": { // Стрелок (ГП)
_e_prim = ["rhs_weap_ak74m_gp25"];
_e_prim_mag = [
[["rhs_30Rnd_545x39_7N10_AK", 4],["rhs_30Rnd_545x39_AK_green", 2], ["rhs_VOG25", 6], ["rhs_vg40op_white", 2],["rhs_GRD40_green",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhs_acc_pkas"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = ["hgun_Rook40_F"];
_e_side_mag = [[["16Rnd_9x21_Mag", 2]]];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles_OPFOR", "Binocular"] + _standartMed;
_e_back = ["rhs_sidor"];
};
};
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]
};// US ARMY 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 "USAR_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 = [];
};
// ------------------ PLATOON HEADQUARTERS ------------------ //
case "RAT": { // RATELO
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles"] + _standartMed;
_e_back = ["tf_rt1523g_rhs", "rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "FO": { // Forward Observer
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["Laserbatteries",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["Laserbatteries",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles","Laserdesignator"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
// ------------------ Infantry squad ------------------------ //
case "SL": { // Squad Leader
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 6],["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 6],["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 3], ["HandGrenade", 2], ["SmokeShell", 2],["SmokeShellRed", 1],["SmokeShellGreen", 1],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_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","ACE_MapTools"] + _standartMed;
_e_back = ["tf_rt1523g_rhs", "rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "TL": { // Team Leader
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 6],["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 3], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2],["ACE_M84",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 6],["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 3], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2],["ACE_M84",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "Binocular","ACE_MapTools","ACE_CableTie"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "GL": { // Grenadier
_e_prim = ["rhs_m4a1_m320"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8],["rhs_mag_M433_HEDP",6],["rhs_mag_M713_red",2],["HandGrenade", 2],["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "AR": { // Automatic Rifleman
_e_prim = ["rhs_weap_m249_pip"];
_e_prim_mag = [
[["rhsusf_100Rnd_556x45_soft_pouch", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq15"];
_e_mod3 = ["rhsusf_acc_ELCAN","RH_eotech553"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "AT": { // Rifleman (AT)
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = ["rhs_weap_M136"];
_e_sec_mag = [[["rhs_m136_mag", 1]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "RM": { // Rifleman
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "DM": { // Designated Marksman
_e_prim = ["rhs_weap_m14ebrri"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq15"];
_e_mod3 = ["rhsusf_acc_LEUPOLDMK4","rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_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 = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
// -------------------- Weapons Squad ---------------//
case "MG": { // Machinegunner m240
_e_prim = ["rhs_weap_m240B"];
_e_prim_mag = [
[["rhsusf_100Rnd_762x51", 4], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["rhsusf_acc_ELCAN"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "MGA": { // Machinegunner Assistant
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2],["rhsusf_100Rnd_762x51",5]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2],["rhsusf_100Rnd_762x51",5]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "Binocular", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "ATT": { // Rifleman (Javelin)
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = ["rhs_weap_fgm148"];
_e_sec_mag = [[["rhs_fgm148_magazine_AT", 1]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
// ------------------ Medic Squad ------------------//
case "MED_SL": { // EMERG. CARE SGT.
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemGPS", "ItemMap", "ItemWatch", "NVGoggles", "Binocular","ACE_MapTools"] + _extendedMed;
_e_back = ["tf_rt1523g_rhs","rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "MED": { // Combat Medic
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 4],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles"] + _extendedMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
// ------------------ Sniper Team -------------//
case "SNP_H": { // Heavy Sniper
_e_prim = ["srifle_LRR_camo_F"];
_e_prim_mag = [
[["7Rnd_408_Mag", 6], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = [];
_e_mod3 = ["optic_SOS","optic_LRPS"];
_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", "Binocular", "NVGoggles", "ACE_EarPlugs"] + _standartMed;
_e_back = [];
};
case "SNP": { // Sniper
_e_prim = ["rhs_weap_m14ebrri"];
_e_prim_mag = [
[["20Rnd_762x51_Mag", 9], ["HandGrenade", 2], ["SmokeShell", 2], ["7Rnd_408_Mag", 4],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq15"];
_e_mod3 = ["rhsusf_acc_LEUPOLDMK4","rhsusf_acc_LEUPOLDMK4_2","rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_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_MapTools"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "SNP_AS": { // Sniper Assistant
_e_prim = ["rhs_m4a1_m320"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag",6],["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red",3],["rhs_mag_M433_HEDP",6],["rhs_mag_M713_red",2],["HandGrenade", 2],["SmokeShell", 2],["ClaymoreDirectionalMine_Remote_Mag",2],["SLAMDirectionalMine_Wire_Mag",2],["Laserbatteries",1],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_ACOG3","rhsusf_acc_ACOG2","rhsusf_acc_ACOG"];
_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_MapTools", "ACE_EarPlugs"] + _standartMed;
_e_back = ["tf_rt1523g_rhs","rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
// ------------------ Other -------------------//
case "CREW": { // Crewman
_e_prim = ["rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 6], ["HandGrenade", 2],["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_eotech553"];
_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 = [];
};
case "PILOT": { // Helicopter Pilot / Crew
_e_prim = ["rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 6], ["HandGrenade", 2],["SmokeShellOrange",1],["SmokeShellPurple",1],["SmokeShellGreen",1],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_eotech553"];
_e_mod3 = [];
_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"] + _standartMed;
_e_back = [];
};
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],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_eotech553_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 = ["rhs_weap_m4a1_grip"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_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","rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "AA": { // Rifleman (AA) (Titan Launcher)
_e_prim = ["rhs_weap_m4a1_grip","rhs_weap_m4a1"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]],
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = ["rhs_weap_fim92"];
_e_sec_mag = [[["rhs_fim92_mag", 1]]];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass", "ItemMap", "ItemWatch","NVGoggles"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
case "SAP": { // Sapper
_e_prim = ["rhs_weap_m4a1_grip"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 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],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch","NVGoggles","ACE_Clacker","ACE_DefusalKit"] + _standartMed;
_e_back = ["B_Carryall_mcamo","B_Carryall_cbr","B_Kitbag_mcamo","B_Kitbag_cbr"];
};
case "ENG": { // Engineer
_e_prim = ["rhs_weap_m4a1_grip"];
_e_prim_mag = [
[["rhs_mag_30Rnd_556x45_M855A1_Stanag", 8], ["HandGrenade", 2], ["SmokeShell", 2],["Chemlight_blue",2],["ACE_HandFlare_Red",2]]
];
_e_mod1 = [];
_e_mod2 = ["RH_peq2","RH_peq2_top","RH_peq15","RH_peq15_top"];
_e_mod3 = ["rhsusf_acc_compm4","RH_eotech553","rhsusf_acc_EOTECH"];
_e_sec = [];
_e_sec_mag = [];
_e_sec_mods = [];
_e_side = [];
_e_side_mag = [];
_e_items = ["ItemCompass","ItemGPS", "ItemMap", "ItemWatch","NVGoggles","ToolKit"] + _standartMed;
_e_back = ["rhsusf_assault_eagleaiii_ocp","rhsusf_assault_eagleaiii_ucp"];
};
};
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;
};
};
_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 ["rhs_30Rnd_545x39_7N10_AK", 10];
_veh addMagazineCargoGlobal ["rhs_30Rnd_545x39_AK_green", 5];
_veh addMagazineCargoGlobal ["rhs_mag_rgd5", 5];
_veh addMagazineCargoGlobal ["rhs_mag_rdg2_white", 2];
_veh addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell", 5];
_veh addMagazineCargoGlobal ["rhs_mag_nspn_yellow", 2];
_veh addMagazineCargoGlobal ["rhs_mag_nspn_red", 1];
_veh addMagazineCargoGlobal ["rhs_mag_nspn_green", 1];
_veh addMagazineCargoGlobal ["rhs_mag_nspd", 2];
_veh addMagazineCargoGlobal ["rhs_mag_fakel", 2];
_veh addMagazineCargoGlobal ["rhs_mag_fakels", 2];
_veh addMagazineCargoGlobal ["rhs_mag_zarya2", 2];
_veh addMagazineCargoGlobal ["rhs_mag_plamyam", 2];
};
case "med": { // Medical equipment
_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 ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 10];
_veh addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 5];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["rhs_mag_M433_HEDP", 5];
_veh addMagazineCargoGlobal ["rhs_mag_M714_white", 2];
_veh addMagazineCargoGlobal ["rhs_mag_M661_green", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M662_red", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M713_red", 2];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_blue", 6];
_veh addMagazineCargoGlobal ["ACE_HandFlare_Red", 6];
_veh addMagazineCargoGlobal ["ACE_M84", 2];
};
case "ba": { // Basic Ammo
_veh addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 20];
_veh addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 10];
_veh addMagazineCargoGlobal ["rhsusf_100Rnd_556x45_soft_pouch", 4];
_veh addMagazineCargoGlobal ["rhsusf_100Rnd_762x51", 3];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["rhs_m136_mag", 2];
_veh addWeaponCargoGlobal ["rhs_weap_fgm148",1];
_veh addMagazineCargoGlobal ["rhs_fgm148_magazine_AT", 1];
_veh addMagazineCargoGlobal ["HandGrenade", 5];
_veh addMagazineCargoGlobal ["SmokeShell", 5];
_veh addMagazineCargoGlobal ["rhs_mag_M433_HEDP", 8];
_veh addMagazineCargoGlobal ["rhs_mag_M714_white", 5];
_veh addMagazineCargoGlobal ["rhs_mag_M715_green", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M716_yellow", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M713_red", 3];
_veh addMagazineCargoGlobal ["rhs_mag_M585_white", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M662_red", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M661_green", 3];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_blue", 6];
_veh addMagazineCargoGlobal ["ACE_HandFlare_Red", 6];
_veh addMagazineCargoGlobal ["ACE_M84", 6];
_veh addBackPackCargoGlobal ["tf_rt1523g_rhs", 1];
};
case "ammo_l": { // Ammobox Launchers
_veh addWeaponCargoGlobal ["rhs_weap_fgm148",2];
_veh addWeaponCargoGlobal ["rhs_weap_fim92",1];
_veh addMagazineCargoGlobal ["rhs_fgm148_magazine_AT", 4];
_veh addMagazineCargoGlobal ["rhs_fim92_mag", 4];
_veh addWeaponCargoGlobal ["rhs_weap_M136",2];
_veh addMagazineCargoGlobal ["rhs_m136_mag", 6];
};
case "ammo_b": { // Simple Ammobox
_veh addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 30];
_veh addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 15];
_veh addMagazineCargoGlobal ["rhsusf_100Rnd_556x45_soft_pouch", 5];
_veh addMagazineCargoGlobal ["rhsusf_100Rnd_762x51", 5];
_veh addMagazineCargoGlobal ["20Rnd_762x51_Mag", 5];
_veh addMagazineCargoGlobal ["rhs_m136_mag", 2];
_veh addMagazineCargoGlobal ["rhs_fgm148_magazine_AT", 1];
_veh addMagazineCargoGlobal ["HandGrenade", 10];
_veh addMagazineCargoGlobal ["SmokeShell", 10];
_veh addMagazineCargoGlobal ["rhs_mag_M433_HEDP", 10];
_veh addMagazineCargoGlobal ["rhs_mag_M714_white", 5];
_veh addMagazineCargoGlobal ["rhs_mag_M715_green", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M716_yellow", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M713_red", 3];
_veh addMagazineCargoGlobal ["rhs_mag_M661_green", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M662_red", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M585_white", 1];
_veh addMagazineCargoGlobal ["rhs_mag_M662_red", 1];
_veh addMagazineCargoGlobal ["SmokeShellBlue", 2];
_veh addMagazineCargoGlobal ["SmokeShellGreen", 2];
_veh addMagazineCargoGlobal ["SmokeShellOrange", 2];
_veh addMagazineCargoGlobal ["SmokeShellRed", 2];
_veh addMagazineCargoGlobal ["Chemlight_blue", 6];
_veh addMagazineCargoGlobal ["ACE_M84", 6];
_veh addMagazineCargoGlobal ["ACE_HandFlare_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 ["rhs_mag_30Rnd_556x45_M855A1_Stanag", 10];
_veh addMagazineCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag_Tracer_Red", 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;
array_bchk = [bchk1,bchk2,bchk3,bchk4,bchk5,bchk6,bchk7,bchk8,bchk9,bchk10,bchk11,bchk12,bchk13,bchk14,bchk15,bchk16,bchk17,bchk18,bchk19,bchk20,bchk21,bchk22,bchk23,bchk24,bchk25,bchk26,bchk27];
{
_x addMPEventHandler ["MPKilled", {_this execVM "delete_EH.sqf";}]
} forEach array_bchk;
waitUntil{
if(time > (missionnamespace getVariable ["tu_platform_pauseMissionTime", 0]) + 60*15 + 60*110) exitWith { // 1.50ч + 15 мин на фриз
if(({alive _x} count array_bchk < 5) and (captured isEqualTo true))then{
sleep 5;
["База захвачена, склад топлива уничтожен. Победа Армии США.", west] call a3a_fnc_endMission;
} else {
sleep 5;
["Время вышло. Партизанам удалось отбить атаку. ", west] call a3a_fnc_endMission;
};
};
false;
};atrium_version = 14;
respawn = 1;
respawndelay = 3;
class Header {
gameType = TEAM;
minPlayers = 1;
maxPlayers = 184;
};
enableItemsDropping = 0;
debriefing = 1;
briefing = 1;
aiKills = 0;
joinUnassigned = 1;
disableChannels[] = {0};class Params {
class a3a_params_startTime {
title = "$STR_A3RU_startTime";
values[] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13};
texts[] = {$STR_A3RU_default, 0400, 0600, 0800, 1000, 1100, 1300, 1500, 1700, 1900, 2100, 2300, 0100, 0200};
default = 0;
};
class a3a_params_startFog {
title = "$STR_A3RU_startFog";
values[] = {0,1,2,3,4};
texts[] = {$STR_A3RU_Default, $STR_A3RU_fog_1, $STR_A3RU_fog_2, $STR_A3RU_fog_3, $STR_A3RU_fog_4};
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;
};
};/*
Antihack & AdminTools - Christian Lorenzen - www.infiSTAR.de
#3dafcba70fef
*/
class RscListBox_infiSTAR {
access=0;
type=5;
style=0;
font="PuristaLight";
sizeEx=0.03;
rowHeight=0;
colorText[]={1,1,1,1};
colorScrollbar[]={1,1,1,1};
colorSelect[]={0,0,0,1};
colorSelect2[]={1,0.5,0,1};
colorSelectBackground[]={0.6,0.6,0.6,1};
colorSelectBackground2[]={0.2,0.2,0.2,1};
colorBackground[]={0,0,0,0.8};
maxHistoryDelay=1.0;
soundSelect[]={"",0.1,1};
period=1;
autoScrollSpeed=-1;
autoScrollDelay=5;
autoScrollRewind=0;
arrowEmpty="#(argb,8,8,3)color(1,1,1,1)";
arrowFull="#(argb,8,8,3)color(1,1,1,1)";
shadow=0;
colorDisabled[]={1,1,1,0.25};
border=false;
borderSize=0;
class ScrollBar
{
arrowEmpty="#(argb,8,8,3)color(1,1,1,1)";
arrowFull="#(argb,8,8,3)color(1,1,1,1)";
border="#(argb,8,8,3)color(1,1,1,1)";
color[]={1,1,1,0.6};
colorActive[]={1,1,1,1};
colorDisabled[]={1,1,1,0.3};
thumb="#(argb,8,8,3)color(1,1,1,1)";
};
class ListScrollBar:ScrollBar
{
color[]={1,1,1,0.6};
colorActive[]={1,1,1,1};
colorDisabled[]={1,1,1,0.3};
thumb="#(argb,8,8,3)color(1,1,1,1)";
arrowEmpty="#(argb,8,8,3)color(1,1,1,1)";
arrowFull="#(argb,8,8,3)color(1,1,1,1)";
border="#(argb,8,8,3)color(1,1,1,1)";
shadow=0;
};
};
class RscText_infiSTAR {
access=0;
idc=-1;
type=0;
style=0;
linespacing=1;
colorBackground[]={0,0,0,0};
colorText[]={0.84,0.07,0,1};
shadow=1;
font="PuristaBold";
sizeex=0.0400;
fixedWidth=0;
};
class RscEdit_infiSTAR {
access=0;
type=2;
style=0;
colorBackground[]={0,0,0,0.6};
colorText[]={1,1,1,1};
colorSelection[]={1,1,1,0.25};
colorDisabled[]={1,1,1,0};
font="PuristaBold";
sizeEx=0.04;
autocomplete="";
text="";
size=0.2;
shadow=0;
};
class RscButton_infiSTAR {
access=0;
idc=-1;
type=1;
style=0;
text="";
action="";
colorText[]={1,1,1,0.9};
colorDisabled[]={0.6,0.1,0.3,0};
colorBackground[]={0,0,0,0.8};
colorBackgroundDisabled[]={0,0.0,0};
colorBackgroundActive[]={0.15,0.35,0.55,0.7};
colorFocused[]={0.58,0.05,0,0.7};
colorShadow[]={0.023529,0,0.0313725,1};
colorBorder[]={0.023529,0,0.0313725,1};
soundEnter[]={"\A3\ui_f\data\sound\RscButtonMenu\soundEnter",0.09,1};
soundPush[]={"\A3\ui_f\data\sound\RscButtonMenu\soundPush",0.09,1};
soundClick[]={"\A3\ui_f\data\sound\RscButtonMenu\soundClick",0.09,1};
soundEscape[]={"\A3\ui_f\data\sound\RscButtonMenu\soundEscape",0.09,1};
shadow=0;
font="PuristaMedium";
sizeEx=0.02921;
offsetX=0.003;
offsetY=0.003;
offsetPressedX=0.002;
offsetPressedY=0.002;
borderSize=0;
};
class RscHTML_infiSTAR {
colorText[]={1,1,1,1};
colorBold[]={1,1,1,0.75};
colorLink[]={"63/255","212/255","252/255",1};
colorLinkActive[]={"63/255","212/255","252/255",0.75};
colorBackground[]={0,0,0,0};
colorPicture[]={1,1,1,1};
colorPictureBorder[]={0,0,0,0};
colorPictureLink[]={1,1,1,1};
colorPictureSelected[]={1,1,1,1};
hppversion=3;
filename="";
sizeEx=0.03921;
type=9;
style=0;
prevPage="\ca\ui\data\arrow_left_ca.paa";
nextPage="\ca\ui\data\arrow_right_ca.paa";
shadow=2;
class def {
font="PuristaMedium";
fontBold="PuristaBold";
align="left";
};
class H1:def {
sizeEx="38 * pixelH";
};
class H2:def {
sizeEx="32 * pixelH";
};
class H3:def {
sizeEx="26 * pixelH";
};
class H4:def {
sizeEx="20 * pixelH";
};
class H5:def {
sizeEx="17 * pixelH";
};
class H6:def {
sizeEx="15 * pixelH";
};
class P:def {
sizeEx="18 * pixelH";
};
};
class RscEdit_infiSTAR_multi:RscEdit_infiSTAR {
idc=1339;
x=0.1 * safezoneW + safezoneX;
y=0.038 * safezoneH + safezoneY;
w=0.658333 * safezoneW;
h=(0.143 * safezoneH)*3;
font="EtelkaMonospacePro";
colorText[]={0.95,0.95,0.95,1};
style=16;
sizeEx="0.65 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
show=1;
};
class RscEdit_infiSTAR_ss:RscEdit_infiSTAR {
x=0;
y=(safeZoneY + 0.01)+1;
w=1;
h=0.05;
idc=1380;
font="EtelkaMonospacePro";
colorText[]={0.95,0.95,0.95,1};
sizeEx="0.65 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
show=1;
autocomplete="scripting";
};
class infiSTAR_EDITBOX
{
idd=-1341;
movingenable=true;
class controls
{
class RscEditMultiSTAR:RscEdit_infiSTAR_multi
{
idc=1336;
x=0.25;
y=0.25;
w=0.5;
h=0.5;
};
};
};
class infiSTAR_EDITBOX2
{
idd=-1341;
movingenable=true;
class controls
{
class RscEditMultiSTAR:RscEdit_infiSTAR_multi{autocomplete="scripting";};
class RscEditSingle1STAR:RscEdit_infiSTAR_ss{idc=1380;};
class RscEditSingle2STAR:RscEdit_infiSTAR_ss{idc=1381;};
class RscEditSingle3STAR:RscEdit_infiSTAR_ss{idc=1382;};
class RscEditSingle4STAR:RscEdit_infiSTAR_ss{idc=1383;};
class infi_LIST1384:RscListBox_infiSTAR{idc=1384;x=-0.25;y=0.2;w=0.25;h=0.9;sizeEx=0.027;};
};
};
class infiSTAR_CHAT
{
idd=-1340;
movingenable=false;
onKeyDown="call fnc_chat_onKeyDown;";
class controls
{
class RscListbox_1500:RscListBox_infiSTAR
{
idc = 1500;
x = 0.133846 * safezoneW + safezoneX;
y = 0.0929318 * safezoneH + safezoneY;
w = 0.165027 * safezoneW;
h = 0.792133 * safezoneH;
onLoad="uiNamespace setVariable ['chat_playerlist', _this select 0];call fnc_fill_chat_playerlist;(_this select 0) lbSetCurSel 0;";
onLBSelChanged="call fnc_chat_onLBSelChanged;";
};
class RscListbox_1501:RscListBox_infiSTAR
{
idc = 1501;
x = 0.298873 * safezoneW + safezoneX;
y = 0.0929318 * safezoneH + safezoneY;
w = 0.505396 * safezoneW;
h = 0.71512 * safezoneH;
sizeEx=0.03;
onLoad="uiNamespace setVariable ['chat_msgbox', _this select 0];call fnc_fill_chat_history;";
};
class RscEdit_1401:RscEdit_infiSTAR_multi
{
idc = 1401;
x = 0.298873 * safezoneW + safezoneX;
y = 0.808052 * safezoneH + safezoneY;
w = 0.505396 * safezoneW;
h = 0.0770129 * safezoneH;
onLoad="uiNamespace setVariable ['chat_inputfield', _this select 0];";
};
class RscButton_1600:RscButton_infiSTAR
{
idc = 1600;
text = "close";
x = 0.752698 * safezoneW + safezoneX;
y = 0.885064 * safezoneH + safezoneY;
w = 0.051571 * safezoneW;
h = 0.0330055 * safezoneH;
action = "(findDisplay -1340) closeDisplay 0;";
};
class RscButton_1601:RscButton_infiSTAR
{
idc = 1601;
text = "send";
x = (0.752698 * safezoneW + safezoneX)-((0.051571 * safezoneW)*1.1);
y = 0.885064 * safezoneH + safezoneY;
w = 0.051571 * safezoneW;
h = 0.0330055 * safezoneH;
action = "call fnc_chat_send;";
};
class RscButton_1602:RscButton_infiSTAR
{
idc = 1602;
text = "refresh list";
x = 0.133846 * safezoneW + safezoneX;
y = 0.885064 * safezoneH + safezoneY;
w = 0.051571 * safezoneW;
h = 0.0330055 * safezoneH;
action = "call fnc_fill_chat_playerlist;";
};
class RscText_1000:RscText_infiSTAR
{
idc = 1000;
x = 0.133846 * safezoneW + safezoneX;
y = 0.0599262 * safezoneH + safezoneY;
w = 0.670423 * safezoneW;
h = 0.0330055 * safezoneH;
colorText[]={1,1,1,0.9};
colorBackground[]={0,0,0,0.6};
text = "Chatpartner";
onLoad="uiNamespace setVariable ['chat_text1', _this select 0];";
};
};
};
class infiSTAR_AdminMenu
{
idd=-1338;
movingenable=false;
controls[]=
{
infi_TXT2,
infi_BTN10,
infi_BTN11,
infi_BTN12,
infi_LIST1500,
infi_LIST1501,
infi_BTN20,
infi_BTN21,
infi_BTN23,
infi_BTN24,
infi_BTN25,
infi_EDIT1,
infi_EDIT2,
infi_BTN36,
infi_BTN37,
infi_BTN38,
infi_HTML_1
};
class infi_LIST1500:RscListBox_infiSTAR
{
idc=1500;
x=4.99852e-005 * safezoneW + safezoneX;
y=0.0617197 * safezoneH + safezoneY;
w=0.189063 * safezoneW;
h=0.938333 * safezoneH;
};
class infi_LIST1501:RscListBox_infiSTAR
{
idc=1501;
x=0.188975 * safezoneW + safezoneX;
y=0.0617197 * safezoneH + safezoneY;
w=0.344271 * safezoneW;
h=0.945999 * safezoneH;
};
class infi_EDIT1:RscEdit_infiSTAR
{
idc=100;
text="";
x=0.1964 * safezoneW + safezoneX;
y=0.125933 * safezoneH + safezoneY;
w=0.326563 * safezoneW;
h=0.044 * safezoneH;
};
class infi_EDIT2:RscEdit_infiSTAR_multi
{
idc=103;
show=0;
};
class infi_TXT2:RscText_infiSTAR
{
idc=2;
text="infiSTAR.de";
x=-5.31323e-005 * safezoneW + safezoneX;
y=-7.50085e-005 * safezoneH + safezoneY;
w=1 * safezoneW;
h=0.0341667 * safezoneH;
colorText[]={1,1,1,0.9};
colorBackground[]={0.56,0.04,0.04,1};
};
class infi_HTML_1:RscHTML_infiSTAR
{
idc=1;
x=0.535 * safezoneW + safezoneX;
y=0.06 * safezoneH + safezoneY;
w=0.40 * safezoneW;
h=0.35 * safezoneH;
onLoad="uiNamespace setVariable ['RscHTML_infiSTAR_Admin', _this select 0]";
onUnload="uiNamespace setVariable ['RscHTML_infiSTAR_Admin', displayNull]";
};
class infi_BTN10:RscButton_infiSTAR
{
idc=10;
text="Alphabet";
x=0.005 + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.06 * safezoneW;
h=0.02 * safezoneH;
action="SortRangePlease=nil;SortAlphaPlease=true;SortGroupsPlease=nil;[] call fnc_fill_infiSTAR_Player;[] call fnc_setFocus;";
};
class infi_BTN11:RscButton_infiSTAR
{
idc=11;
text="Groups";
x=0.01 + safezoneX + (0.06 * safezoneW);
y=0.0379694 * safezoneH + safezoneY;
w=0.06 * safezoneW;
h=0.02 * safezoneH;
action="SortAlphaPlease=nil;SortRangePlease=nil;SortGroupsPlease=true;[] call fnc_fill_infiSTAR_Player;[] call fnc_setFocus;";
};
class infi_BTN12:RscButton_infiSTAR
{
idc=12;
text="Range";
x=0.015 + safezoneX + (0.06 * safezoneW)*2;
y=0.0379694 * safezoneH + safezoneY;
w=0.06 * safezoneW;
h=0.02 * safezoneH;
action="SortAlphaPlease=nil;SortRangePlease=true;SortGroupsPlease=nil;[] call fnc_fill_infiSTAR_Player;[] call fnc_setFocus;";
};
class infi_BTN20:RscButton_infiSTAR
{
idc=20;
default="true";
text="MainMenu";
x=0.202072 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN21:RscButton_infiSTAR
{
idc=21;
text="SpawnMenu";
x=0.287975 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN23:RscButton_infiSTAR
{
idc=23;
text="AHLog";
x=0.373981 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN24:RscButton_infiSTAR
{
idc=24;
text="AdminLog";
x=0.459884 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN25:RscButton_infiSTAR
{
idc=25;
x=0.535 * safezoneW + safezoneX + (0.15 * safezoneW);
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
action="call fnc_btn_html";
};
class infi_BTN36:RscButton_infiSTAR
{
idc=36;
text="Items";
x=0.219294 * safezoneW + safezoneX;
y=0.0819514 * safezoneH + safezoneY;
w=0.0916667 * safezoneW;
h=0.0329999 * safezoneH;
};
class infi_BTN37:RscButton_infiSTAR
{
idc=37;
text="Vehicles";
x=0.316644 * safezoneW + safezoneX;
y=0.0819514 * safezoneH + safezoneY;
w=0.0916667 * safezoneW;
h=0.0329999 * safezoneH;
};
class infi_BTN38:RscButton_infiSTAR
{
idc=38;
text="Trader";
x=0.414097 * safezoneW + safezoneX;
y=0.0819514 * safezoneH + safezoneY;
w=0.0916667 * safezoneW;
h=0.0329999 * safezoneH;
};
};
class CfgCommands
{
allowedHTMLLoadURIs[]={"http://*"};
};if (!isServer) exitWith {};
private "_rnd";
_rnd = floor random 2;
{
if (side _x == west) then
{
(uniformContainer _x) additemcargoGlobal ["ACE_tourniquet", 1];
(uniformContainer _x) additemcargoGlobal ["ACE_morphine", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_fieldDressing", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_elasticBandage", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_quikclot", 4];
(uniformContainer _x) additemcargoGlobal ["ACE_packingBandage", 2];
}
else
{
(uniformContainer _x) additemcargoGlobal ["ACE_tourniquet", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_morphine", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_fieldDressing", 3];
(uniformContainer _x) additemcargoGlobal ["ACE_elasticBandage", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_quikclot", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_packingBandage", 2];
};
(uniformContainer _x) additemcargoGlobal ["ACE_EarPlugs", 1];
switch (_x getVariable "Specific") do
{
case "MED":
{
(backpackContainer _x) additemcargoGlobal ['ACE_surgicalKit', 1];
(backpackContainer _x) additemcargoGlobal ['ACE_fieldDressing', 6];
(backpackContainer _x) additemcargoGlobal ['ACE_morphine', 6];
(backpackContainer _x) additemcargoGlobal ['ACE_Epinephrine', 6];
(backpackContainer _x) additemcargoGlobal ['ACE_tourniquet', 6];
(backpackContainer _x) additemcargoGlobal ['ACE_quikclot', 6];
(backpackContainer _x) additemcargoGlobal ['ACE_personalAidKit', 6];
};
case "DAGR":
{
_x linkItem "tf_microDAGR";
};
case "MG":
{
_arr_rifles = [
"hlc_lmg_MG42",
"CUP_lmg_UK59"
];
_arr_rifle_mags = [
["hlc_50Rnd_792x57_B_MG42"],
["CUP_50Rnd_UK59_762x54R_Tracer"]
];
private "_unit";
_unit = _x;
{
(backpackContainer _unit) addmagazinecargoGlobal [_x, 3];
} forEach (_arr_rifle_mags select _rnd);
_unit addWeapon (_arr_rifles select _rnd);
};
case "MG_SUP":
{
_arr_mg_mags = [
["hlc_50Rnd_792x57_B_MG42"],
["CUP_50Rnd_UK59_762x54R_Tracer"]
];
private "_unit";
_unit = _x;
{
(backpackContainer _unit) addmagazinecargoGlobal [_x, 2];
} forEach (_arr_mg_mags select _rnd);
};
};
} forEach playableUnits;if (!isServer) exitWith {};
_u = _this select 0;
_u setVariable ["ACEMED", 1, true];//Слегка поправил скрипт под себя
private ["_veh","_varname", "_role"];
_veh = _this select 0;
_varname = _this select 1;
_role = _this select 2;
_veh setVariable ["requiredCrew",_varname];
if (_role == "all") then
{
_veh addEventHandler ["getIn",{_this spawn {
diag_log _this;
private ["_veh","_varname"];
_veh = _this select 0;
_varname = _veh getVariable ["requiredCrew","default"];
while {player in _veh} do {
if ((player == driver _veh || player == _veh turretUnit [0]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};
if (_role == "heli") then
{
_veh addEventHandler ["getIn",{_this spawn {
diag_log _this;
private ["_veh","_varname"];
_veh = _this select 0;
_varname = _veh getVariable ["requiredCrew","default"];
while {player in _veh} do {
if ((player == driver _veh || player == _veh turretUnit [1]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};
if (_role == "tank") then
{
_veh addEventHandler ["getIn",{_this spawn {
diag_log _this;
private ["_veh","_varname"];
_veh = _this select 0;
_varname = _veh getVariable ["requiredCrew","default"];
while {player in _veh} do {
if ((player == driver _veh || player == _veh turretUnit [0] || player == _veh turretUnit [0,0]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};
if (_role == "m1a1") then
{
_veh addEventHandler ["getIn",{_this spawn {
diag_log _this;
private ["_veh","_varname"];
_veh = _this select 0;
_varname = _veh getVariable ["requiredCrew","default"];
while {player in _veh} do {
if ((player == driver _veh || player == _veh turretUnit [0] || player == _veh turretUnit [0,0] || player == _veh turretUnit [0,1]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};sleep 15;
deleteVehicle (_this select 0);// 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 = 2;
#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;
};
};
};
};#define addWeapons {_unit addWeapon _x} forEach
#define addMagazines(a,b) for "_i" from 1 to b do {_unit addMagazine a}
_unit = _this select 0;
_faction = _this select 1;
_loadout = _this select 2;
_item_processor = {
removeBackpack _this;
removeAllItems _this;
removeAllWeapons _this;
removeAllItemsWithMagazines _this;
removeAllAssignedItems _this;
removeUniform _this;
removeVest _this;
removeHeadgear _this;
removeGoggles _this;
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "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, {}]);
_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "usm_pack_alice";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
_unit addItemToVest "ACE_MapTools";
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m62_tracer"};
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "rhsgref_hidf_alicepack";
_unit addWeapon "hlc_rifle_M14_Bipod";
_unit addPrimaryWeaponItem "rhsusf_20Rnd_762x51_m118_special_Mag";
for "_i" from 1 to 4 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m118_special_Mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m62_Mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
for "_i" from 1 to 10 do {_unit addItemToBackpack "rhsusf_20Rnd_762x51_m118_special_Mag"};
for "_i" from 1 to 5 do {_unit addItemToBackpack "rhsusf_20Rnd_762x51_m62_Mag"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "rhsgref_uniform_tigerstripe";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "H_Bandanna_sgg";
_unit addBackpack "usm_pack_st138_prc77";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
_unit addWeapon "RH_m1911";
_unit addPrimaryWeaponItem "RH_7Rnd_45cal_m1911";
_unit addWeapon "binocular";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 3 do {_unit addItemToVest "RH_7Rnd_45cal_m1911"};
_unit addItemToVest "ACE_MapTools";
for "_i" from 1 to 4 do {_unit addItemToBackpack "SmokeShell"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
_unit addWeapon "RH_m1911";
_unit addPrimaryWeaponItem "RH_7Rnd_45cal_m1911";
_unit addWeapon "rhs_weap_m72a3";
_unit addWeapon "binocular";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 3 do {_unit addItemToVest "RH_7Rnd_45cal_m1911"};
_unit addItemToVest "ACE_MapTools";
for "_i" from 1 to 4 do {_unit addItemToBackpack "SmokeShell"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_gr";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "rhsgref_hidf_alicepack";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 3 do {_unit addItemToVest "RH_7Rnd_45cal_m1911"};
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
_unit addItemToBackpack "rhs_weap_m79";
for "_i" from 1 to 20 do {_unit addItemToBackpack "1Rnd_HE_Grenade_shell"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "usm_bdu_cap_odg";
_unit addBackpack "usm_pack_st138_prc77";
_unit addGoggles"G_Aviator";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
_unit addWeapon "RH_m1911";
_unit addPrimaryWeaponItem "RH_7Rnd_45cal_m1911";
_unit addWeapon "binocular";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 3 do {_unit addItemToVest "RH_7Rnd_45cal_m1911"};
_unit addItemToVest "ACE_MapTools";
for "_i" from 1 to 4 do {_unit addItemToBackpack "SmokeShell"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "SmokeShellRed"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "SmokeShellYellow"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "usm_pack_m5_medic";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 6 do {_unit addItemToVest "SmokeShell"};
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShellRed"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_mg";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "usm_pack_762x51_ammobelts";
_unit addWeapon "hlc_lmg_m60";
_unit addPrimaryWeaponItem "rhsusf_100Rnd_762x51";
_unit addItemToVest "rhsusf_100Rnd_762x51";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "SmokeShell"};
_unit addItemToBackpack "rhsusf_100Rnd_762x51_m62_tracer";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "usm_pack_alice";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
_unit addWeapon "binocular";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
_unit addItemToVest "ACE_MapTools";
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m62_tracer"};
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeAllWeapons _unit;
removeAllItems _unit;
removeAllAssignedItems _unit;
removeBackpack _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform 'usm_bdu_odg';
_unit addItemToUniform 'rhsusf_mag_7x45acp_MHP';
_unit addVest 'TRYK_V_harnes_blk_L';
for '_i' from 1 to 3 do {_unit addItemToVest 'rhsusf_mag_7x45acp_MHP';};
_unit addBackpack 'usm_pack_st138_prc77';
_unit addHeadgear 'rhsusf_hgu56p';
_unit addWeapon 'rhsusf_weap_m1911a1';
_unit linkItem 'ItemMap';
_unit linkItem 'ItemCompass';
_unit linkItem 'ItemRadio';
for '_i' from 1 to 10 do {_unit addItemToVest 'tu_rhs_mag_20Rnd_556x45_M193_Stanag';};
_unit addWeapon 'RH_M16a1';
_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "usm_pack_st138_prc77";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "usm_bdu_odg";
_unit addVest "usm_vest_LBE_rm_m";
_unit addHeadgear "rhsgref_helmet_M1_liner";
_unit addBackpack "usm_pack_st138_prc77";
_unit addGoggles"G_Aviator";
_unit addWeapon "RH_M16a1";
_unit addPrimaryWeaponItem "rhs_mag_20Rnd_556x45_M193_Stanag";
_unit addWeapon "RH_m1911";
_unit addPrimaryWeaponItem "RH_7Rnd_45cal_m1911";
_unit addWeapon "binocular";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M193_Stanag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_20Rnd_556x45_M196_Stanag_Tracer_Red"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_grenade_mkii_mag"};
for "_i" from 1 to 3 do {_unit addItemToVest "RH_7Rnd_45cal_m1911"};
_unit addItemToVest "ACE_MapTools";
for "_i" from 1 to 4 do {_unit addItemToBackpack "SmokeShell"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "SmokeShellRed"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "SmokeShellYellow"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_unit = _this select 0;
removeallassigneditems _unit;
removeallWeapons _unit;
removeallItems _unit;
removeBackpack _unit;
removeUniform _unit;
removeVest _unit;
removeHeadgear _unit;
removeGoggles _unit;
_unit forceAddUniform "rhsgref_uniform_tigerstripe";
_unit addVest "usm_vest_LBE_rm";
_unit addHeadgear "usm_bdu_boonie_tgrstp";
_unit addBackpack "rhsgref_hidf_alicepack";
_unit addWeapon "hlc_rifle_M14_Bipod";
_unit addPrimaryWeaponItem "hlc_optic_artel_m14";
_unit addPrimaryWeaponItem "rhsusf_20Rnd_762x51_m118_special_Mag";
_unit addWeapon "RH_python";
_unit addPrimaryWeaponItem "RH_6Rnd_357_Mag";
for "_i" from 1 to 4 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m118_special_Mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "rhsusf_20Rnd_762x51_m62_Mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "RH_6Rnd_357_Mag"};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_grenade_mkii_mag"};
for "_i" from 1 to 2 do {_unit addItemToVest "SmokeShell"};
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhsusf_20Rnd_762x51_m118_special_Mag"};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine", 10];
_veh addItemcargoglobal ["ACE_fieldDressing", 10];
_veh addItemCargoGlobal ["ACE_elasticBandage",10];
_veh addItemCargoGlobal ["ACE_packingBandage",10];
_veh addItemCargoGlobal ["ACE_quikclot",10];
_veh addItemCargoGlobal ["ACE_epinephrine",5];
_veh addItemcargoGlobal ["rhs_mag_m67",20];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",30];
_veh addItemcargoGlobal ["rhsusf_20Rnd_762x51_m118_special_Mag", 30];
_veh addItemcargoGlobal ["tu_rhs_mag_20Rnd_556x45_M193_Stanag", 60];
_veh addItemcargoGlobal ["rhsusf_100Rnd_762x51", 10];
_veh addItemcargoGlobal ["rhsusf_100Rnd_762x51_m62_tracer", 6];
_veh addItemcargoGlobal ["rhs_mag_M441_HE", 30];
_veh addWeaponCargoGlobal ["rhs_weap_m72a7",4];
_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine", 8];
_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_m67",10];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",15];
_veh addItemcargoGlobal ["tu_rhs_mag_20Rnd_556x45_M193_Stanag", 40];
_veh addItemcargoGlobal ["rhsusf_100Rnd_762x51", 8];
_veh addItemcargoGlobal ["rhsusf_100Rnd_762x51_m62_tracer", 4];
_veh addItemcargoGlobal ["rhs_mag_M441_HE", 15];
_veh addWeaponCargoGlobal ["rhs_weap_m72a7",2];
_veh = _this select 0;
clearItemCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh addItemCargoGlobal ["har_10Rnd_sks_mag",25];
_veh addItemCargoGlobal ["TU_10Rnd_303",25];
_veh addItemCargoGlobal ["rhsgref_5Rnd_762x54_m38",35];
_veh addItemCargoGlobal ["rhs_30Rnd_762x39mm",25];
_veh addItemCargoGlobal ["rhs_pzn_75Rnd_762x39mm",20];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1911B_SMG",20];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1T_SMG",20];
_veh addItemCargoGlobal ["pzn_f1",15];_veh = _this select 0;
clearItemCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh addItemCargoGlobal ["har_10Rnd_sks_mag",25];
_veh addItemCargoGlobal ["TU_10Rnd_303",25];
_veh addItemCargoGlobal ["rhsgref_5Rnd_762x54_m38",45];
_veh addItemCargoGlobal ["rhs_30Rnd_762x39mm",15];
_veh addItemCargoGlobal ["rhs_pzn_75Rnd_762x39mm", 10];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1911B_SMG",20];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1T_SMG",20];
_veh addItemCargoGlobal ["pzn_f1",15];
_veh addItemCargoGlobal ["rhs_mag_127x108mm_50",12];
_veh addItemCargoGlobal ["ace_earplugs",2];
_veh addItemCargoGlobal ["ACE_fieldDressing",15];
_veh addItemCargoGlobal ["ACE_elasticBandage",15];
_veh addItemCargoGlobal ["ACE_quikclot",15];
_veh addItemCargoGlobal ["ACE_packingBandage",15];
_veh addItemCargoGlobal ["ACE_morphine",15];
_veh addItemCargoGlobal ["ACE_epinephrine",15];
_veh addItemCargoGlobal ["ACE_tourniquet",15];
_veh addBackpackCargoGlobal ["rhs_sidor", 4];_veh = _this select 0;
clearItemCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh addItemCargoGlobal ["har_10Rnd_sks_mag",25];
_veh addItemCargoGlobal ["TU_10Rnd_303",25];
_veh addItemCargoGlobal ["rhsgref_5Rnd_762x54_m38",45];
_veh addItemCargoGlobal ["rhs_30Rnd_762x39mm",15];
_veh addItemCargoGlobal ["hlc_50Rnd_792x57_B_MG42",6];
_veh addItemCargoGlobal ["CUP_50Rnd_UK59_762x54R_Tracer",6];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1911B_SMG",20];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1T_SMG",20];
_veh addItemCargoGlobal ["pzn_f1",15];
_veh addItemCargoGlobal ["ACE_fieldDressing",15];
_veh addItemCargoGlobal ["ACE_elasticBandage",15];
_veh addItemCargoGlobal ["ACE_quikclot",15];
_veh addItemCargoGlobal ["ACE_packingBandage",15];
_veh addItemCargoGlobal ["ACE_morphine",15];
_veh addItemCargoGlobal ["ACE_epinephrine",15];
_veh addItemCargoGlobal ["ACE_tourniquet",15];
_veh addBackpackCargoGlobal ["rhs_sidor", 4];
_veh = _this select 0;
clearItemCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh addItemCargoGlobal ["ACE_fieldDressing",25];
_veh addItemCargoGlobal ["ACE_elasticBandage",25];
_veh addItemCargoGlobal ["ACE_quikclot",25];
_veh addItemCargoGlobal ["ACE_packingBandage",25];
_veh addItemCargoGlobal ["ACE_morphine",25];
_veh addItemCargoGlobal ["ACE_epinephrine",25];
_veh addItemCargoGlobal ["ACE_tourniquet",25];_veh = _this select 0;
clearItemCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh addItemCargoGlobal ["ACE_bloodIV",30];
_veh addItemCargoGlobal ["ACE_plasmaIV",30];
_veh addItemCargoGlobal ["ACE_elasticBandage",30];
_veh addItemCargoGlobal ["ACE_packingBandage",30];
_veh addItemCargoGlobal ["ACE_quikclot",30];
_veh addItemCargoGlobal ["ACE_fieldDressing",30];
_veh addItemCargoGlobal ["ACE_tourniquet",30];
_veh addItemCargoGlobal ["ACE_morphine",30];
_veh addItemCargoGlobal ['ACE_surgicalKit', 1];
_veh addItemCargoGlobal ['ACE_personalAidKit', 1];
_veh = _this select 0;
clearItemCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
_veh addItemCargoGlobal ["har_10Rnd_sks_mag",4];
_veh addItemCargoGlobal ["TU_10Rnd_303",4];
_veh addItemCargoGlobal ["rhsgref_5Rnd_762x54_m38",8];
_veh addItemCargoGlobal ["rhs_30Rnd_762x39mm",4];
_veh addItemCargoGlobal ["pzn_f1",5];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1911B_SMG",20];
_veh addItemCargoGlobal ["rhsgref_30rnd_1143x23_M1T_SMG",20];
_veh addItemCargoGlobal ["BN_40Rnd_23mm",12];
_veh addItemCargoGlobal ["ace_earplugs",2];
_veh addItemCargoGlobal ["ACE_fieldDressing",5];
_veh addItemCargoGlobal ["ACE_elasticBandage",5];
_veh addItemCargoGlobal ["ACE_quikclot",5];
_veh addItemCargoGlobal ["ACE_packingBandage",5];
_veh addItemCargoGlobal ["ACE_morphine",5];
_veh addItemCargoGlobal ["ACE_epinephrine",5];
_veh addItemCargoGlobal ["ACE_tourniquet",5];
_veh addBackpackCargoGlobal ["rhs_sidor", 4];
//
_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];
};
};
_unit = _this select 0;
_arr_rifles = [
"rhs_weap_m38",
"rhs_weap_m38",
"rhs_weap_m1garand_sa43",
"arifle_KA_SKS_F",
"TU_smle_no4mk1",
"CUP_arifle_TYPE_56_2",
"rhs_weap_m3a1"
];
_arr_rifle_mags = [
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_8Rnd_762x63_M2B_M1rifle"],
["tu_10Rnd_sks_mag","tu_10Rnd_sks_mag"],
["TU_10Rnd_303","TU_10Rnd_303_T"],
["rhs_30Rnd_762x39mm"],
["rhsgref_30rnd_1143x23_M1911B_SMG"]
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity (_this select 0);
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addWeapon "Binocular";
_unit addItem "ace_maptools";
_unit addBackpack "tf_anarc164";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
for "_i" from 1 to ((floor random 3) +1) do
{
(_this select 0) addItem "rhs_mag_f1";
};
private ["_rnd", "_count_mag"];
_rnd = floor (random count _arr_rifles);
if(_rnd == 6) then {_count_mag = 5} else {_count_mag = 7};
{
(vestContainer _unit) addmagazinecargoGlobal [_x, _count_mag];
} forEach (_arr_rifle_mags select _rnd);
_unit addWeapon (_arr_rifles select _rnd);
_unit = _this select 0;
_arr_rifles = [
"rhs_weap_m38",
"rhs_weap_m38",
"rhs_weap_m1garand_sa43",
"arifle_KA_SKS_F",
"TU_smle_no4mk1",
"CUP_arifle_TYPE_56_2",
"rhs_weap_m3a1"
];
_arr_rifle_mags = [
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_8Rnd_762x63_M2B_M1rifle"],
["tu_10Rnd_sks_mag","tu_10Rnd_sks_mag"],
["TU_10Rnd_303","TU_10Rnd_303_T"],
["rhs_30Rnd_762x39mm"],
["rhsgref_30rnd_1143x23_M1911B_SMG"]
];
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addWeapon "Binocular";
_unit addItem "ace_maptools";
_unit addBackpack "tf_anarc164";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
for "_i" from 1 to ((floor random 3) +1) do
{
(_this select 0) addItem "rhs_mag_f1";
};
private ["_rnd", "_count_mag"];
_rnd = floor (random count _arr_rifles);
{
if(_rnd == 6) then {_count_mag = 5} else {_count_mag = 7};
(vestContainer _unit) addmagazinecargoGlobal [_x, _count_mag];
} forEach (_arr_rifle_mags select _rnd);
_unit addWeapon (_arr_rifles select _rnd);
_unit = _this select 0;
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addWeapon "Binocular";
_unit addItem "ace_maptools";
_unit addBackpack "tf_anarc164";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
for "_i" from 1 to ((floor random 3) +1) do
{
(_this select 0) addItem "rhs_mag_f1";
};
(vestContainer _unit) addmagazinecargoGlobal ["TU_10Rnd_303",15];
_unit addWeapon "TU_smle_no4T";
_unit addPrimaryWeaponItem "smle_scope";
_unit = _this select 0;
_arr_rifles = [
"rhs_weap_m38",
"rhs_weap_m38",
"rhs_weap_m1garand_sa43",
"arifle_KA_SKS_F",
"TU_smle_no4mk1",
"CUP_arifle_TYPE_56_2",
"rhs_weap_m3a1"
];
_arr_rifle_mags = [
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_8Rnd_762x63_M2B_M1rifle"],
["tu_10Rnd_sks_mag","tu_10Rnd_sks_mag"],
["TU_10Rnd_303","TU_10Rnd_303_T"],
["rhs_30Rnd_762x39mm"],
["rhsgref_30rnd_1143x23_M1911B_SMG"]
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity (_this select 0);
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addBackpack "rhs_sidor";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
for "_i" from 1 to ((floor random 3) +1) do
{
(_this select 0) addItem "rhs_mag_f1";
};
private ["_rnd", "_count_mag"];
_rnd = floor (random count _arr_rifles);
if(_rnd == 6) then {_count_mag = 5} else {_count_mag = 7};
{
(vestContainer _unit) addmagazinecargoGlobal [_x, _count_mag];
} forEach (_arr_rifle_mags select _rnd);
_unit addWeapon (_arr_rifles select _rnd);
_unit = _this select 0;
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addBackpack "usm_pack_762x51_ammobelts";
clearItemCargoGlobal (backpackContainer _unit);
clearMagazineCargoGlobal (backpackContainer _unit);
clearWeaponCargoGlobal (backpackContainer _unit);
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
for "_i" from 1 to ((floor random 3) +1) do
{
(_this select 0) addItem "rhs_mag_f1";
};
_unit = _this select 0;
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_arr_rifles = [
"rhs_weap_m38",
"rhs_weap_m38",
"rhs_weap_m1garand_sa43",
"arifle_KA_SKS_F",
"TU_smle_no4mk1",
"CUP_arifle_TYPE_56_2",
"rhs_weap_m3a1"
];
_arr_rifle_mags = [
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_8Rnd_762x63_M2B_M1rifle"],
["tu_10Rnd_sks_mag","tu_10Rnd_sks_mag"],
["TU_10Rnd_303","TU_10Rnd_303_T"],
["rhs_30Rnd_762x39mm"],
["rhsgref_30rnd_1143x23_M1911B_SMG"]
];
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addBackpack "rhs_sidor";
clearItemCargoGlobal (backpackContainer _unit);
clearMagazineCargoGlobal (backpackContainer _unit);
clearWeaponCargoGlobal (backpackContainer _unit);
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
//for "_i" from 1 to ((floor random 3) +1) do
//{
(_this select 0) addItem "rhs_mag_f1";
//};
private ["_rnd", "_count_mag"];
_rnd = floor (random count _arr_rifles);
if(_rnd == 6) then {_count_mag = 5} else {_count_mag = 7};
{
(vestContainer _unit) addmagazinecargoGlobal [_x, _count_mag];
} forEach (_arr_rifle_mags select _rnd);
_unit addWeapon (_arr_rifles select _rnd);
_unit = _this select 0;
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
//for "_i" from 1 to ((floor random 3) + 1) do
//{
(_this select 0) addItemToVest "rhs_mag_f1";
//};
(vestContainer _unit) addmagazinecargoGlobal ["rhs_30Rnd_762x39mm",5];
_unit addWeapon "rhs_weap_akm";
_unit = _this select 0;
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addBackpack "rhs_sidor";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
for "_i" from 1 to ((floor random 3) +1) do
{
(_this select 0) addItem "rhs_mag_f1";
};
(vestContainer _unit) addmagazinecargoGlobal ["rhs_pzn_75Rnd_762x39mm", 6];
_unit addWeapon "rhs_pzn_weap_rpk75";_unit = _this select 0;
_arr_sn = [
"hlc_rifle_L1A1SLR",
"hlc_rifle_g3a3",
"hlc_rifle_M14",
"CUP_srifle_SVD"
];
_arr_sn_mags = [
["hlc_20Rnd_762x51_B_fal"],
["hlc_20rnd_762x51_b_G3"],
["hlc_20Rnd_762x51_B_M14"],
["rhs_10Rnd_762x54mmR_7N1"]
];
_arr_sn_scopes = [
"hlc_optic_suit",
"HLC_Optic_ZFSG1",
"hlc_optic_artel_m14",
"CUP_optic_PSO_1"
];
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
_unit addBackpack "rhs_sidor";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
//for "_i" from 1 to ((floor random 3) +1) do
//{
(_this select 0) addItem "rhs_mag_f1";
//};
_rnd = floor (random count _arr_sn);
{
(vestContainer _unit) addmagazinecargoGlobal [_x,12];
} forEach (_arr_sn_mags select _rnd);
_unit addWeapon (_arr_sn select _rnd);
_unit addPrimaryWeaponItem (_arr_sn_scopes select _rnd);
_unit = _this select 0;
_arr_rifles = [
"rhs_weap_m38",
"rhs_weap_m38",
"rhs_weap_m1garand_sa43",
"arifle_KA_SKS_F",
"TU_smle_no4mk1",
"CUP_arifle_TYPE_56_2",
"rhs_weap_m3a1"
];
_arr_rifle_mags = [
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_5Rnd_762x54_m38"],
["rhsgref_8Rnd_762x63_M2B_M1rifle"],
["tu_10Rnd_sks_mag","tu_10Rnd_sks_mag"],
["TU_10Rnd_303","TU_10Rnd_303_T"],
["rhs_30Rnd_762x39mm"],
["rhsgref_30rnd_1143x23_M1911B_SMG"]
];
_arr_faces = [
"AsianHead_A3_01",
"AsianHead_A3_02",
"AsianHead_A3_03",
"AsianHead_A3_04",
"AsianHead_A3_05"
];
_arr_uniforms = [
"TRYK_U_B_BLK_T_BK"
];
_arr_vests = [
"V_BandollierB_rgr",
"V_BandollierB_khk"
];
_arr_hats = [
"H_Bandanna_gry",
"usm_bdu_boonie_blk"
];
removeallweapons _unit;
removeallassigneditems _unit;
removeGoggles _unit;
removeUniform _unit;
removeVest _unit;
removeBackpack _unit;
_unit forceAddUniform (selectRandom _arr_uniforms);
_unit addVest (selectRandom _arr_vests);
_unit addHeadgear (selectRandom _arr_hats);
lockIdentity _unit;
_unit setFace (selectRandom _arr_faces);
_unit addWeapon "ItemWatch";
_unit addWeapon "ItemCompass";
_unit addWeapon "ItemRadio";
_unit linkItem "ItemMap";
clearItemCargoGlobal (vestContainer _unit);
clearMagazineCargoGlobal (vestContainer _unit);
clearWeaponCargoGlobal (vestContainer _unit);
//for "_i" from 1 to ((floor random 3) +1) do
//{
(_this select 0) addItemToVest "rhs_mag_f1";
//};
private ["_rnd", "_count_mag"];
_rnd = floor (random count _arr_rifles);
if(_rnd == 6) then {_count_mag = 5} else {_count_mag = 7};
{
(vestContainer _unit) addmagazinecargoGlobal [_x, _count_mag];
} forEach (_arr_rifle_mags select _rnd);
_unit addWeapon (_arr_rifles select _rnd);
GGATCGVA PGGATCXAM GGATSFFO@ p : xJ UO \_ cc jd d W: "iVVVتUUUe] ~
T@ %Ȫ@ $@ / \ l 6 o o G
G v}@ ~ ]% | < 2 G<" 6?% P