A3A_BRIEFING\briefing_BLUEFOR_ENEMY.html d_ A3A_BRIEFING\briefing_BLUEFOR_TASKS.html cr_ A3A_BRIEFING\briefing_MISSION_CONV.html _ A3A_BRIEFING\briefing_MISSION_DESCRIPTION.html SB_N A3A_BRIEFING\briefing_OPFOR_ENEMY.html i_4 A3A_BRIEFING\briefing_OPFOR_TASKS.html F~_- A3A_BRIEFING\briefing_TECH.html _ a3a_client_scripts.sqf `_m a3a_modules.hpp #nV A3A_MODULES\AddonsCheck\init.sqf #nV, A3A_MODULES\NamesInVehicle\a3ru_onMouseZChanged.sqf #nVw A3A_MODULES\NamesInVehicle\fn_namesInVehicle.sqf #nV A3A_MODULES\NamesInVehicle\init.sqf #nV A3A_MODULES\PlayerTags\init.sqf #nV A3A_MODULES\StaticDrag\fn_onKeyDown.sqf #nV A3A_MODULES\StaticDrag\fn_staticCanDrag.sqf #nV A3A_MODULES\StaticDrag\fn_staticDrag.sqf #nVs A3A_MODULES\StaticDrag\fn_staticRelease.sqf #nV A3A_MODULES\StaticDrag\fn_staticRotate.sqf #nV A3A_MODULES\StaticDrag\init.sqf #nV a3a_server_scripts.sqf [q_h A3A_SETUP\a3a_header.hpp +s_ A3A_SETUP\a3a_parameters.hpp cy_ A3A_SETUP\infiSTAR_AdminMenu.hpp 9^+ add_med.sqf 6_ add_med_med.sqf 9^V ALfire\fire.sqf SY ALfire\firedam.sqf "#DWd ALfire\vek_svr.sqf TA~W bn_crew_control.sqf z_: call.fsm 9^@ description.ext _ dynamis\box_init.sqf y_ dynamis\defines.hpp Y
J dynamis\fill_box.sqf b_0 dynamis\selectable_item.sqf 3=_ Equipment\FRE\KO.sqf ._ Equipment\FRE\KO_O.sqf 2_x Equipment\FRE\KO_U.sqf %_- Equipment\FRE\KS.sqf '_ Equipment\FRE\MED.sqf :_' Equipment\FRE\MED_KO.sqf N_" Equipment\FRE\NOOB_1.sqf I2_ Equipment\FRE\NOOB_2.sqf G2_ Equipment\FRE\NOOB_3.sqf D2_ Equipment\FRE\NOOB_KO.sqf n%_x Equipment\FRE\RF_1.sqf v%_Z Equipment\FRE\RF_2.sqf $_h Equipment\FRE\RPG.sqf _ Equipment\FRE\RPG_S.sqf V_ Equipment\FRE\RPK.sqf Z_ Equipment\FRE\SOV_INSTR.sqf _ Equipment\PT\DRV.sqf _ Equipment\PT\FTL.sqf _ Equipment\PT\KO.sqf _ Equipment\PT\KO_C.sqf A_x Equipment\PT\LGF.sqf _ Equipment\PT\LGF_C.sqf _ Equipment\PT\LGF_S.sqf _w Equipment\PT\LGF_S_C.sqf _| Equipment\PT\MEDIC.sqf _K Equipment\PT\MEDIC_C.sqf o_G Equipment\PT\MEDIC_KO.sqf _? Equipment\PT\MG.sqf _z Equipment\PT\MG_S.sqf C_y Equipment\PT\MG_S_C.sqf /_ Equipment\PT\MORTAR.sqf k_ Equipment\PT\MORTAR_S.sqf o_r Equipment\PT\PILOT.sqf o_ Equipment\PT\PILOT_H.sqf _ Equipment\PT\RF.sqf J_ Equipment\PT\RF_C.sqf {_ Equipment\PT\SIGNAL_C.sqf _? Equipment\unitprocessor.sqf 2_n Equipment\veh_FRE\BOX.sqf +_m Equipment\veh_FRE\BRDM.sqf c_ Equipment\veh_FRE\NOOB_BOX.sqf Gc_ Equipment\veh_FRE\SECRET_BOX1.sqf _ Equipment\veh_FRE\SECRET_BOX2.sqf b_- Equipment\veh_FRE\SECRET_BOX3.sqf b_! Equipment\veh_PT\HELI.sqf {p_N Equipment\veh_PT\HELI_MED.sqf y_G Equipment\veh_PT\LANDROVER.sqf lz_ Equipment\veh_PT\MED.sqf p_U Equipment\veh_PT\PRAGA.sqf p_ Equipment\veh_PT\T6.sqf }z_u Equipment\vehprocessor.sqf 9^: ini_fire.sqf WU init.sqf x_^
initplayerlocal.sqf
|_= loadscreen.jpg n=o_[8 mis_funcs\fn_preinit.sqf 9^ mission.sqm _ mission_description.hpp ,G{_, mission_parameters.hpp [x_ pics\attack.paa x_R pics\def.paa Yx_S' script.sqf >$\ scripts\ammo_truck.sqf n_H scripts\localobjects.sqf _ scripts\PilotView.sqf F~_z Sound\burned.ogg Vd Sound\furnal.ogg 2W Sound\tipat.ogg W$ text.sqf _
Боевики FRELIMO
ПРЕДИСТОРИЯ:
В рамках операции "Гордиев Узел" основной целью ВС Португалии в Мозамбике является контрнаступление и уничтожение лагерей и путей снабжения боевиков FRELIMO вблизи границы Мозамбика и Танзации
ТЕКУЩЕЕ ПОЛОЖЕНИЕ:
Несколько дней назад аэроразведка обнаружила крупный тренировочный лагерь террористов за рекой Рувуна на территории Танзании к северу от наших позиций. Мы приступили к проработке плана атаки, но как всегда все пошло через... Кхм... Вчера разведка доложила, что боевики перетягивают силы к лагерю. По всей видимости они поняли, что мы планируем атаку на него. Данные обстоятельства вынуждают нас начать действовать незамедлительно. Как назло 3-ая боевая группа была отправлена для сопровождения в тыл раненых бойцов, пострадавших в результате подрыва на мине. Так что придет обойтись оставшимися двумя группами. Но нет худа без добра, буквально час назад в наше расположение прибыла тяжелая группа коммандос на 5 птичках. К тому же удалось выбить для нас старичка Гарварда в качестве авиационной поддержки. Но назменые службы чего-то там перепутали и самолет оказался не обслужен. Так что потребуется время на дозаправку и перевооружение.
ЗАДАЧА:
В связи с изменившейся обстановкой мы начнем атаку на лагерь в 06.10 утра двумя группами легкой пехоты и группой коммандос.
ДЛЯ ПОБЕДЫ НЕОБХОДИМО:
Взять штурмом и закрепиться в лагере боевиков
Важно! Для захвата лагеря необходим 3-х кратный перевес сил атаки на территории лагеря при трех или меньшем количестве бойцов обороны.
Для авиации:
- Работает скрипт увеличения дальности отображения ландшафта. Дальность отображение меняется через ACE меню взаимодествия. Необходимо находиться в самолете/вертолете!
- Техника для обслуживания самолета. Заправка и пополнение БК самолета осуществляется черезе меню ACE взаимодествия. Самолет изначально не заправлен и не вооружен.
ОБЩАЯ ПАМЯТКА:
- На дворе 1971, так что до вывода первого блока спутников GPS еще целых 7 лет. Хотя каким-то образом эксперементальные образцы оказались встроены в вертолеты ВС Португалии и бронеавтомобили Bravia Chaimite(M1117)
- На дворе 1971, Португалия страна на тот момент бедная, а боевики FRELIMO и подавно. Так что об личных радиостанциях у каждого бойца приходится лишь мечтать.
- С картой и планом лучше ознакомиться на брифинге. Командир вряд ли доверит такую важную и дорогую вещь рядовому бойцу!
- Через реку есть несколько недавно возведенных переправ: здесь, здесь, здесь, здесь и здесь.
ПРАВИЛА ДЛЯ ВСЕХ ИГРОКОВ:
- Запрещено снимать/переодевать форму (даже если она своей фракции). Головные уборы менять можно.
- Внимание! Работает скрипт по блокировке головного убора.
- Запрещено надевать вражеские разгрузки и головные уборы.
- Запрещено выходить за пределы карты.
- Авиации, в том числе вертолетам с десантом на борту, разрешено вылетать за пределы, но запрещено производить высадку десанта за пределами карты.
ПРАВИЛА ДЛЯ СИНИХ:
- Всем игрокам синей стороны запрещено пересекать реку, обозначенную красными маркерами, до окончания фризтайма.
- LandRover 110 (MED) и вертолет 1º Aérospatiale Alouette III являются медицинским транспортом.
ПРАВИЛА ДЛЯ ЗЕЛЁНЫХ
- Всем игрокам зеленой стороны запрещено пересекать реку, обозначенную красными маркерами
и фиолетовую линию, обозначенную дымящейся сгоревшей техникой
- КС зеленых может выбрать усиление в ящиках (расположены в том же доме, где появляется КС).
- Дополнительный боезапас (рации, патроны, гранаты, оружие) лежит в тайнике, который появляется в случайно месте между лагерем и рекой (КС увидит маркер на ящик на фризтайме).
- Мед. пункт для зеленых обозначен табличкой перед зданием.
УСЛОВНОСТИ ПО ЗАХВАТУ ЛАГЕРЯ:
Синим необходимо захватить лагерь боевиков.
Для захвата лагеря необходим 3-х кратный перевес сил синих на территории лагеря при трех или меньшем количестве зелёных.
Время на миссию: 2 часа 10 минут.
УСЛОВНОСТИ ПО ПОТЕРЯМ:
- Синие отступят если осталось менее 8% бойцов атаки
- Зелёные отступят если осталось менее 8% бойцов обороны
Название миссии: Последние Колонии
Автор: Loran
Помощь: Drongo, Onttes, Linza
Описание миссии:
Вымышленное боестолкновение в рамках операции "Гордиев Узел" во время Португальских колониальных войн.
Нападение ВС Португалии на тренировочный лагерь боевиков FRELIMO.
Легкая пехота ВС Португалии + Португальские коммандос
ПРЕДИСТОРИЯ:
Португальские колонизаторы наращивают свои силы вдоль границы и всё чаще устраивают атаки на наши приграничные лагеря. Необходимо собрать все силы в кулак и дать отпор проклятым белым империалистам!
ТЕКУЩЕЕ ПОЛОЖЕНИЕ:
Наши разведчики и местные жители сообщают, что португальцы концентрируют свои силы в нашем регионе к югу от реки Рувума. Скорее всего они обнаружили наш тренировочный лагерь и он стал одной из основных целей для их удара. Мы запросили подкрепления у основных сил, но до их прибытия еще около двух часов.
ЗАДАЧА:
Нам необходи удерживать оборону лагеря до подхода наших соплеменников.
ДЛЯ ПОБЕДЫ НЕОБХОДИМО:
Необходимо удерживать территорию лагеря в течение двух часов и десяти минут.
ИГРОВЫЕ УСЛОВНОСТИ
Aérospatiale Alouette III
Из-за отсутсвия данного вертолета французского производства в нашей сборке его роль исполняет MH-6 Little Bird. Который очень схож как по назначению, так и по ТТХ.
Bravia Chaimite
Нелицензионная копия Cadillac Gage Commando, которого к сожалению тоже нет в сборке. Зато у нас есть M1117, его потомок. Который, с отключенным ПНВ и разряженным Mk.19 и выполняет роль Bravia Chaimite.
Минометы М2
Роль легкого миномета М2 выполняет его потомок М224.
T-6G Harvard
Единственный претендент на роль данного поршневого старичка второй мировой является турбо-винтовой A-29 Super Tucano с отключенным тепловизором.
// Клиентские скрпты, выполняются после инициализации платформы
[] spawn {
if (player == ks_green) then {
private _base_pos = [11093.711, 5857.815];
private _new_pos = [];
waitUntil {sleep 1; getClientStateNumber > 9};
waitUntil {sleep 1; _new_pos = getPos secret_box; _new_pos deleteAt 2; !(_base_pos isEqualTo _new_pos)};
_boxmark = createMarkerLocal ["secret_box_m", getPos secret_box];
"secret_box_m" setMarkerShapeLocal "ICON";
"secret_box_m" setMarkerTypeLocal "hd_objective";
"secret_box_m" setMarkerColorLocal "ColorGuer";
};
}; /// 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;
if (isServer) then {
waitUntil { sleep 10; a3a_var_started };
_trg1 = 0;
while {isNil "srv_triggerFinished"} do {
sleep 3;
if (_trg1 == 0) then {
if (((west countSide list trg1) > (resistance countSide list trg1)*3) && ((resistance countSide list trg1) < 4)) then {
_trg1 = 1;
flag1 setFlagTexture "pics\attack.paa";;
};
};
if (_trg1 == 1) then {
srv_triggerFinished = true;
["ВС Португалии захватили лагерь FRELIMO, победа атаки!", WEST] call a3a_fnc_endMission;
};
};
};atrium_version = 16;
respawn = 1;
respawndelay = 3;
class Header {
gameType = TEAM;
minPlayers = 1;
maxPlayers = 210;
};
enableItemsDropping = 0;
debriefing = 1;
briefing = 1;
aiKills = 0;
joinUnassigned = 1;
disableChannels[] = {0};class Params {
class a3a_params_startTime {
title = "$STR_A3RU_startTime";
values[] = {0};
texts[] = {$STR_A3RU_default};
default = 0;
};
class a3a_params_startFog {
title = "$STR_A3RU_startFog";
values[] = {0};
texts[] = {$STR_A3RU_Default};
default = 0;
};
class a3a_params_preTime {
title = "$STR_A3RU_preTime";
values[] = {60, 300, 420, 600, 900, 1200, 1500, 1800};
texts[] = {"1m", "5m", "7m", "10m", "15m", "20m", "25m", "30m"};
default = 1200;
};
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 {};
{
(uniformContainer _x) additemcargoGlobal ["ACE_quikclot", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_fieldDressing", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_elasticBandage", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_packingBandage", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_morphine", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_tourniquet", 1];
(uniformContainer _x) addItemCargoGlobal ["ACE_EarPlugs", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_epinephrine", 2];
if (_x == (leader group _x)) then {(uniformContainer _x) additemcargoGlobal ["ACE_MapTools", 1];};
if (_x getVariable "ACEMED" > 0) then {
clearItemCargoGlobal (backpackContainer _x);
clearMagazineCargoGlobal (backpackContainer _x);
clearWeaponCargoGlobal (backpackContainer _x);
(backpackContainer _x) additemcargoGlobal ["ACE_fieldDressing",6];
(backpackContainer _x) additemcargoGlobal ["ACE_elasticBandage",6];
(backpackContainer _x) additemcargoGlobal ["ACE_packingBandage",6];
(backpackContainer _x) additemcargoGlobal ["ACE_quikclot",6];
(backpackContainer _x) additemcargoGlobal ["ACE_epinephrine",6];
(backpackContainer _x) additemcargoGlobal ["ACE_morphine",6];
(backpackContainer _x) additemcargoGlobal ["ACE_salineIV_500",4];
(backpackContainer _x) additemcargoGlobal ["ACE_surgicalKit",1];
(backpackContainer _x) additemcargoGlobal ["ACE_personalAidKit",1];
};
} forEach playableUnits;if (!isServer) exitWith {};
_u = _this select 0;
_u setVariable ["ACEMED", 1, true];// by ALIAS
// null = [_object_name,_life_time,_radius,_damage_inflicted_surround,_kill_vehicle_in_fire,_human,_ground] spawn compile preprocessFile "ALfire\fire.sqf";
// Tutorial: https://www.youtube.com/watch?v=WKakf7yb2WM
/*
* Script MP and SP compatible.
** Script runs on client side only so the server is not loaded with unnecessary tasks.
*** However mind the number of fires they can still cause frames drop. Test and see what it works for you.
_object_name - the object name you want to set on fire, you can use "this" if you run the script from init field of the object
_life_time - seconds, fire will be put off after the time you set for life time
_radius - meters, works different than in fire.sqf, in this case only determines the radius in which players takes damage from fire, doesn't affect radius of fire
_damage_inflicted_surround - 0..1, amount of damage you to be inflicted upon objects close to fire, use smaller values and test damage is in loop
_kill_vehicle_in_fire - boolean, true if you want the vehicle blowing up when fire is gone, false if you want just to delete the vehicle
_human - boolean, true if the object set on fire is a footmobile, false if is an object (buildings, wrecks, vehicles etc)
*/
if (!hasInterface) exitWith {};
_obj = _this select 0;
_life_time = _this select 1;
_radius = _this select 2;
_damage_inflicted_surround = _this select 3;
_kill_vehicle_in_fire = _this select 4;
_human = _this select 5;
_ground = _this select 6;
if (_ground=="small") then {
[[[_life_time, _obj,_kill_vehicle_in_fire],"ALfire\vek_svr.sqf"],"BIS_fnc_execVM",true,true] spawn BIS_fnc_MP;
if (_damage_inflicted_surround>0) then {
[_obj,_radius,_damage_inflicted_surround] spawn {
_obje = _this select 0;
_radiux = _this select 1;
_dam = _this select 2;
_d = getdammage player;
while {!isNull _obje} do {
if((player distance _obje) < _radiux+1) then {
enableCamShake true;
addCamShake [5, 1, 17];
_d=_d+_dam;
player setdammage _d;
playsound "burned";
sleep 2.5+random 1;
};
enableCamShake false;
sleep 0.1;
};
};
};
// foc
_flacari = "#particlesource" createVehicleLocal (getPosATL _obj);
_flacari setParticleCircle [0, [-1, 1, -1]];
_flacari setParticleRandom [0.5, [0.25, 0.25, 0], [0.175, 0.175, 0.1], 5, 0.15, [0, 0, 0, 0.1], 0.5, 0];
_flacari setParticleParams [["\A3\data_f\cl_exp", 1, 0, 1], "", "Billboard", 1, 1.5, [0, 0, 0], [0.5,-0.5, 2], 50, 10, 7.9, 0.1, [2,1.5,0.5], [[1, 1, 1, 1], [1, 1, 1, 1], [0, 0, 0, 0]], [0.02], 1, 0, "", "", _obj];
_flacari setDropInterval 0.05;
// refract
_caldura = "#particlesource" createVehicleLocal (getPosATL _obj);
_caldura setParticleCircle [0, [0, 0, 0]];
_caldura setParticleRandom [0, [0.25, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_caldura setParticleParams [["\A3\data_f\ParticleEffects\Universal\Refract.p3d", 1, 0, 1], "", "Billboard", 1, 5, [0, 0, 0], [0, 0, 0.75], 30, 10.5, 7.9, 0.2, [3,2,3], [[0.1, 0.1, 0.1, 0.1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", _obj, /*angle*/ 1,true,/*bounce factor*/1,/*emissiveColor*/[[0,0,0,0]]];
_caldura setDropInterval 0.1;
// fum
_fum = "#particlesource" createVehicleLocal (getPosATL _obj);
_fum setParticleCircle [0, [-0.5, 0.5,-2]];
_fum setParticleRandom [7, [0.25, 0.25, 0], [0.175, 0.175, -1], 11, 0.15, [0, 0, 0, 0], 0, 0];
_fum setParticleParams [["\A3\data_f\cl_basic", 1, 0, 1], "", "Billboard", 1, 30, [0, 0, 1], [0.5, -0.5, 1.5], 50, 10, 7.9, 0.1, [3,7,11,17], [[0, 0, 0, 0.5], [0, 0, 0, 0.5], [0.05, 0.05, 0.05,0.5], [0, 0, 0, 0]], [0.08], 1, 0, "", "", _obj];
_fum setDropInterval 0.08;
_lite= [_obj,_radius] spawn {
// lumina
_objt = _this select 0;
_radiust = _this select 1;
_luminafoc = "#lightpoint" createVehicleLocal ([1,1,1]);
_luminafoc lightAttachObject [_objt, [0,0,-1]];
// _luminafoc setLightBrightness 10;
_luminafoc setLightAmbient [1,0.1,0];
_luminafoc setLightColor [1,0,0];
_luminafoc setLightUseFlare true;
// _luminafoc setLightAttenuation [/*start*/ 1, /*constant*/100, /*linear*/ 300, /*quadratic*/ 1, /*hardlimitstart*/2,/* hardlimitend*/500];
_luminafoc setLightDayLight true;
while {!isNull _objt} do {
_luminafoc setLightBrightness 8+ random 1;
_luminafoc setLightAttenuation [/*start*/ _radiust/4+random 0.5, /*constant*/90+random 10, /*linear*/ 290+random 10, /*quadratic*/ 1, /*hardlimitstart*/1+random 0.5,/* hardlimitend*/500];
sleep 0.1;
};
deletevehicle _luminafoc;
};
while {!isNull _obj} do {
if (_human) then {
_obj say3d ["tipat",300];
};
if !(_human) then {
_obj say3d ["furnal",300];
};
sleep 3.5;
};
} else {
[[[_life_time, _obj,_kill_vehicle_in_fire],"ALfire\vek_svr.sqf"],"BIS_fnc_execVM",true,true] spawn BIS_fnc_MP;
// if _damage_inflicted_surround is set to 0 fire damage can be done via trigger in editor if preferred
if (_damage_inflicted_surround>0) then {
[_obj,_radius,_damage_inflicted_surround] spawn {
_obje = _this select 0;
_radiux = _this select 1;
_dam = _this select 2;
_d = getdammage player;
while {!isNull _obje} do {
if((player distance _obje) < _radiux+1) then {
enableCamShake true;
addCamShake [5, 1, 17];
_d=_d+_dam;
player setdammage _d;
playsound "burned";
sleep 2.5+random 1;
};
enableCamShake false;
sleep 0.1;
};
};
};
// foc
_flacari = "#particlesource" createVehicleLocal (getPosATL _obj);
_flacari setParticleCircle [_radius-_radius/8, [-1, 1, -1]];
_flacari setParticleRandom [0.5, [0.25, 0.25, 0], [0.175, 0.175, 0.1], 5, 0.15, [0, 0, 0, 0.1], 0.5, 0];
_flacari setParticleParams [["\A3\data_f\cl_exp", 1, 0, 1], "", "Billboard", 1, 3, [0, 0, 0], [0.5,-0.5, 2], 50, 10, 7.9, 0.1, [_radius/2+2,_radius/2+1,_radius/2+0.5], [[1, 1, 1, 0], [1, 1, 1, 1], [0, 0, 0, 0]], [0.02], 1, 0, "", "", _obj];
_flacari setDropInterval 0.05;
// refract
_caldura = "#particlesource" createVehicleLocal (getPosATL _obj);
_caldura setParticleCircle [_radius+1, [0, 0, 0]];
_caldura setParticleRandom [0, [0.25, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_caldura setParticleParams [["\A3\data_f\ParticleEffects\Universal\Refract.p3d", 1, 0, 1], "", "Billboard", 1, 7, [0, 0, 0], [0, 0, 0.75], 30, 10.5, 7.9, 0.2, [_radius/2+3,_radius/2+2,_radius/2+1], [[0.1, 0.1, 0.1, 0.1], [0.25, 0.25, 0.25, 0.5], [0.5, 0.5, 0.5, 0]], [0.08], 1, 0, "", "", _obj, /*angle*/ 1,true,/*bounce factor*/1,/*emissiveColor*/[[0,0,0,0]]];
_caldura setDropInterval 0.1;
// fum
_fum = "#particlesource" createVehicleLocal (getPosATL _obj);
_fum setParticleCircle [_radius+5, [0, 0, 0]];
_fum setParticleRandom [30, [0.25, 0.25, 0], [0.175, 0.175, 0], 0, 0.25, [0, 0, 0, 0.1], 0, 0];
_fum setParticleParams [["\A3\data_f\cl_basic", 1, 0, 1], "", "Billboard", 1, 60, [0, 0, 0], [0, 0, 0.75], 50, 10, 7.9, 0.1, [_radius/2+1.5,_radius/2+2.5,_radius/2+4,_radius/2+7,_radius/2+9,_radius/2+15], [[0, 0, 0, 0.5], [0, 0, 0, 1], [0.01, 0.01, 0.01, 0.8], [0, 0, 0, 0.9], [0.01, 0.01, 0.01, 0.5], [0, 0, 0, 0.1]], [0.08], 1, 0, "", "", _obj];
_fum setDropInterval 0.1;
_lite= [_obj,_radius] spawn {
// lumina
_objt = _this select 0;
_radiust = _this select 1;
_luminafoc = "#lightpoint" createVehicleLocal ([1,1,1]);
_luminafoc lightAttachObject [_objt, [0,0,-1]];
// _luminafoc setLightBrightness 10;
_luminafoc setLightAmbient [1,0.1,0];
_luminafoc setLightColor [1,0,0];
_luminafoc setLightUseFlare true;
// _luminafoc setLightAttenuation [/*start*/ 1, /*constant*/100, /*linear*/ 300, /*quadratic*/ 1, /*hardlimitstart*/2,/* hardlimitend*/500];
_luminafoc setLightDayLight true;
while {!isNull _objt} do {
_luminafoc setLightBrightness 8+ random 1;
_luminafoc setLightAttenuation [/*start*/ _radiust+random 0.5, /*constant*/90+random 10, /*linear*/ 290+random 10, /*quadratic*/ 1, /*hardlimitstart*/1+random 0.5,/* hardlimitend*/500];
sleep 0.1;
};
deletevehicle _luminafoc;
};
while {!isNull _obj} do {
if (_human) then {
_obj say3d ["tipat",300];
};
if !(_human) then {
_obj say3d ["furnal",300];
};
sleep 3.5;
};
};// by ALIAS
// damage inflicted by fire
// obsolete but you can still use it if you want. Now damage is inflicted using setParticleFire
_d = 0.01;
while {fireexpunere} do {
enableCamShake true;
addCamShake [5, 1, 17];
_d=_d+0.02;
player setdammage _d;
playsound "burned";
sleep 2.5+random 1;
enableCamShake false;
};
// by ALIAS
if (!isServer) exitWith {};
_lft = _this select 0;
_obje = _this select 1;
_killv = _this select 2;
sleep _lft;
if (_killv) then {
_obje setDammage 1;
sleep 30+ random 60;
};
deletevehicle _obje;//Слегка поправил скрипт под себя
private ["_veh","_varname", "_role"];
_veh = _this select 0;
_varname = _this select 1;
_role = _this select 2;
_veh setVariable ["requiredCrew",_varname];
if (_role == "bmp") 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 == "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 == _veh turretUnit [0,1]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};
if (_role == "lav") 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 == _veh turretUnit [0]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};
if (_role == "m113") 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 getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};/*%FSM*/
/*%FSM*/
/*
item0[] = {"call_FSM",1,4346,100.000000,-75.000000,200.000000,-25.000000,0.000000,"call FSM"};
globals[] = {0.000000,0,0,0,0,640,480,1,22,6316128,1,-31.507059,261.199463,749.303589,-86.793678,202,577,1};
window[] = {0,-1,-1,-1,-1,836,458,1418,87,1,220};
*//*%FSM*/
class FSM
{
fsmName = "call.fsm";
class States
{
/*%FSM*/
class call_FSM
{
name = "call_FSM";
itemno = 0;
init = /*%FSM*/"(_this select 0) call (_this select 1)"/*%FSM*/;
precondition = /*%FSM*/""/*%FSM*/;
class Links
{
};
};
/*%FSM*/
};
initState="";
finalStates[] =
{
"call_FSM",
};
};
/*%FSM*/#include "A3A_SETUP\infiSTAR_AdminMenu.hpp"
enableDebugConsole = 0;
// Disposable wrecks and corpses settings
// BIKI: https://community.bistudio.com/wiki/Description.ext#corpseLimit
corpseLimit = 300;
corpseRemovalMaxTime = 10000;
wreckLimit = 300;
wreckRemovalMaxTime = 10000;
// Extended flight model
// 0 - Player chosen, 1 - Force Enable, 2 - Force Disable
// BIKI: https://community.bistudio.com/wiki/Description.ext#forceRotorLibSimulation
forceRotorLibSimulation = 0;
#include "A3A_SETUP\a3a_header.hpp"
#include "mission_description.hpp"
#include "A3A_SETUP\a3a_parameters.hpp"
class A3A_MissionParams {
#include "mission_parameters.hpp"
};
class Extended_GetIn_EventHandlers
{
class rhsusf_M1117_base
{
class rhsusf_M1117_base_getin
{
GetIn = "[] spawn {waitUntil {sleep 0.1; true}; 'rendertarget2' setPiPEffect [0];};";
};
};
};
class CfgFunctions
{
class mis
{
class Main
{
file="mis_funcs";
class preinit
{
preInit=1;
postInit=0;
};
};
};
class bn
{
class myCategory
{
class fill_box
{
file = "dynamis\fill_box.sqf";
};
};
};
};
#include "dynamis\defines.hpp"
#define BN_GUI_GRID_X (0)
#define BN_GUI_GRID_Y (0)
#define BN_GUI_GRID_W (0.03)
#define BN_GUI_GRID_H (0.04)
class ks_interface
{
idd = 1503;
duration = 1;
class controls
{
class RscText_1000: bn_RscText
{
idc = 1000;
text = "Выбери средство усиления:"; //--- ToDo: Localize;
x = 13 * BN_GUI_GRID_W + BN_GUI_GRID_X;
y = 0.5 * BN_GUI_GRID_H + BN_GUI_GRID_Y;
w = 14 * BN_GUI_GRID_W;
h = 2.5 * BN_GUI_GRID_H;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,1};
sizeEx = 1 * BN_GUI_GRID_H;
};
class RscCombo_2100: bn_RscCombo
{
idc = 2100;
x = 13 * BN_GUI_GRID_W + BN_GUI_GRID_X;
y = 3 * BN_GUI_GRID_H + BN_GUI_GRID_Y;
w = 14 * BN_GUI_GRID_W;
h = 1.5 * BN_GUI_GRID_H;
sizeEx = 1 * BN_GUI_GRID_H;
};
class RscButtonMenuOK_2600: bn_RscButton
{
idc = 2600;
x = 28.5 * BN_GUI_GRID_W + BN_GUI_GRID_X;
y = 1 * BN_GUI_GRID_H + BN_GUI_GRID_Y;
w = 4 * BN_GUI_GRID_W;
h = 1.5 * BN_GUI_GRID_H;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,1};
text="OK";
onButtonClick = "closeDialog 1; [lbData [2100, lbCurSel 2100], uiNamespace getVariable 'bn_current_box'] remoteExecCall ['bn_fnc_fill_box', 2, false];";
};
class RscButtonMenuCancel_2700: bn_RscButton
{
idc = 2700;
x = 28.5 * BN_GUI_GRID_W + BN_GUI_GRID_X;
y = 3 * BN_GUI_GRID_H + BN_GUI_GRID_Y;
w = 4 * BN_GUI_GRID_W;
h = 1.5 * BN_GUI_GRID_H;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,1};
text="Отмена";
onButtonClick = "closeDialog 2;";
};
};
};
class CfgSounds
{
class furnal
{
name = "furnal";
sound[] = {"\sound\furnal.ogg", 0.4, 1};
titles[] = {1, ""};
};
class burned
{
name = "burned";
sound[] = {"\sound\burned.ogg", 1, 1};
titles[] = {1, ""};
};
class tipat
{
name = "tipat";
sound[] = {"\sound\tipat.ogg", 0.8, 1};
titles[] = {1, ""};
};
};private ["_box","_random_list"];
_box = _this select 0;
_random_list = _this select 1;
_box setVariable ["bn_random_list",_random_list];
if (isServer) then {
clearWeaponCargoGlobal _box;
clearMagazineCargoGlobal _box;
clearItemCargoGlobal _box;
clearBackpackCargoGlobal _box;
};
_box addAction ["Выбрать средство усиления","dynamis\selectable_item.sqf"];// Control types
#define CT_STATIC 0
#define CT_BUTTON 1
#define CT_EDIT 2
#define CT_SLIDER 3
#define CT_COMBO 4
#define CT_LISTBOX 5
#define CT_TOOLBOX 6
#define CT_CHECKBOXES 7
#define CT_PROGRESS 8
#define CT_HTML 9
#define CT_STATIC_SKEW 10
#define CT_ACTIVETEXT 11
#define CT_TREE 12
#define CT_STRUCTURED_TEXT 13
#define CT_CONTEXT_MENU 14
#define CT_CONTROLS_GROUP 15
#define CT_SHORTCUTBUTTON 16
#define CT_XKEYDESC 40
#define CT_XBUTTON 41
#define CT_XLISTBOX 42
#define CT_XSLIDER 43
#define CT_XCOMBO 44
#define CT_ANIMATED_TEXTURE 45
#define CT_OBJECT 80
#define CT_OBJECT_ZOOM 81
#define CT_OBJECT_CONTAINER 82
#define CT_OBJECT_CONT_ANIM 83
#define CT_LINEBREAK 98
#define CT_USER 99
#define CT_MAP 100
#define CT_MAP_MAIN 101
#define CT_LISTNBOX 102
// Static styles
#define ST_POS 0x0F
#define ST_HPOS 0x03
#define ST_VPOS 0x0C
#define ST_LEFT 0x00
#define ST_RIGHT 0x01
#define ST_CENTER 0x02
#define ST_DOWN 0x04
#define ST_UP 0x08
#define ST_VCENTER 0x0C
#define ST_TYPE 0xF0
#define ST_SINGLE 0x00
#define ST_MULTI 0x10
#define ST_TITLE_BAR 0x20
#define ST_PICTURE 0x30
#define ST_FRAME 0x40
#define ST_BACKGROUND 0x50
#define ST_GROUP_BOX 0x60
#define ST_GROUP_BOX2 0x70
#define ST_HUD_BACKGROUND 0x80
#define ST_TILE_PICTURE 0x90
#define ST_WITH_RECT 0xA0
#define ST_LINE 0xB0
#define ST_SHADOW 0x100
#define ST_NO_RECT 0x200
#define ST_KEEP_ASPECT_RATIO 0x800
#define ST_TITLE ST_TITLE_BAR + ST_CENTER
// Slider styles
#define SL_DIR 0x400
#define SL_VERT 0
#define SL_HORZ 0x400
#define SL_TEXTURES 0x10
// progress bar
#define ST_VERTICAL 0x01
#define ST_HORIZONTAL 0
// Listbox styles
#define LB_TEXTURES 0x10
#define LB_MULTI 0x20
// Tree styles
#define TR_SHOWROOT 1
#define TR_AUTOCOLLAPSE 2
// MessageBox styles
#define MB_BUTTON_OK 1
#define MB_BUTTON_CANCEL 2
#define MB_BUTTON_USER 4
///////////////////////////////////////////////////////////////////////////
/// Base Classes
///////////////////////////////////////////////////////////////////////////
class bn_RscText
{
access = 0;
type = 0;
idc = -1;
colorBackground[] =
{
0,
0,
0,
0
};
colorText[] =
{
1,
1,
1,
1
};
text = "";
fixedWidth = 0;
x = 0;
y = 0;
h = 0.037;
w = 0.3;
style = 0;
shadow = 1;
colorShadow[] =
{
0,
0,
0,
0.5
};
font = "PuristaMedium";
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
linespacing = 1;
};
class bn_RscStructuredText
{
access = 0;
type = 13;
idc = -1;
style = 0;
colorText[] =
{
1,
1,
1,
1
};
class Attributes
{
font = "PuristaMedium";
color = "#ffffff";
align = "left";
shadow = 1;
};
x = 0;
y = 0;
h = 0.035;
w = 0.1;
text = "";
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
shadow = 1;
};
class bn_RscPicture
{
access = 0;
type = 0;
idc = -1;
style = 48;
colorBackground[] =
{
0,
0,
0,
0
};
colorText[] =
{
1,
1,
1,
1
};
font = "TahomaB";
sizeEx = 0;
lineSpacing = 0;
text = "";
fixedWidth = 0;
shadow = 0;
x = 0;
y = 0;
w = 0.2;
h = 0.15;
};
class bn_RscEdit
{
access = 0;
type = 2;
x = 0;
y = 0;
h = 0.04;
w = 0.2;
colorBackground[] =
{
0,
0,
0,
1
};
colorText[] =
{
0.95,
0.95,
0.95,
1
};
colorSelection[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",
1
};
autocomplete = "";
text = "";
size = 0.2;
style = "0x00 + 0x40";
font = "PuristaMedium";
shadow = 2;
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
colorDisabled[] =
{
1,
1,
1,
0.25
};
canModify = 1;
};
class bn_RscCombo
{
access = 0;
type = 4;
colorSelect[] =
{
0,
0,
0,
1
};
colorText[] =
{
0.95,
0.95,
0.95,
1
};
colorBackground[] =
{
0,
0,
0,
1
};
colorScrollbar[] =
{
1,
0,
0,
1
};
soundSelect[] =
{
"",
0.1,
1
};
soundExpand[] =
{
"",
0.1,
1
};
soundCollapse[] =
{
"",
0.1,
1
};
maxHistoryDelay = 1;
class ScrollBar
{
color[] =
{
1,
1,
1,
0.6
};
colorActive[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.3
};
shadow = 0;
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
};
style = 16;
x = 0;
y = 0;
w = 0.12;
h = 0.035;
shadow = 0;
colorSelectBackground[] =
{
1,
1,
1,
0.7
};
arrowEmpty = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_ca.paa";
arrowFull = "\A3\ui_f\data\GUI\RscCommon\rsccombo\arrow_combo_active_ca.paa";
wholeHeight = 0.45;
color[] =
{
1,
1,
1,
1
};
colorActive[] =
{
1,
0,
0,
1
};
colorDisabled[] =
{
1,
1,
1,
0.25
};
font = "PuristaMedium";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
class ComboScrollBar : 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 bn_RscListBox
{
access = 0;
type = 5;
w = 0.4;
h = 0.4;
rowHeight = 0;
colorText[] =
{
1,
1,
1,
1
};
colorScrollbar[] =
{
1,
0,
0,
0
};
colorSelect[] =
{
0,
0,
0,
1
};
colorSelect2[] =
{
0,
0,
0,
1
};
colorSelectBackground[] =
{
0.95,
0.95,
0.95,
1
};
colorSelectBackground2[] =
{
1,
1,
1,
0.5
};
colorBackground[] =
{
0,
0,
0,
0.3
};
soundSelect[] =
{
"",
0.1,
1
};
arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)";
arrowFull = "#(argb,8,8,3)color(1,1,1,1)";
class ScrollBar
{
color[] =
{
1,
1,
1,
0.6
};
colorActive[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.3
};
shadow = 0;
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
};
class ComboScrollBar : 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;
};
style = 16;
font = "PuristaMedium";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
shadow = 0;
colorShadow[] =
{
0,
0,
0,
0.5
};
color[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.25
};
period = 1.2;
maxHistoryDelay = 1;
autoScrollSpeed = -1;
autoScrollDelay = 5;
autoScrollRewind = 0;
};
class bn_RscButton
{
access = 0;
type = 1;
text = "";
colorText[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
0.4,
0.4,
0.4,
1
};
colorBackground[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",
0//0.7
};
colorBackgroundDisabled[] =
{
0.95,
0.95,
0.95,
0//1
};
colorBackgroundActive[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",
0//1
};
colorFocused[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",
0//1
};
colorShadow[] =
{
0,
0,
0,
0//1
};
colorBorder[] =
{
0,
0,
0,
0//1
};
soundEnter[] =
{
"\A3\ui_f\data\sound\onover",
0.09,
1
};
soundPush[] =
{
"\A3\ui_f\data\sound\new1",
0,
0
};
soundClick[] =
{
"\A3\ui_f\data\sound\onclick",
0.07,
1
};
soundEscape[] =
{
"\A3\ui_f\data\sound\onescape",
0.09,
1
};
style = 2;
x = 0;
y = 0;
w = 0.095589;
h = 0.039216;
shadow = 2;
font = "PuristaMedium";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
offsetX = 0.003;
offsetY = 0.003;
offsetPressedX = 0.002;
offsetPressedY = 0.002;
borderSize = 0;
};
class bn_RscShortcutButton
{
type = 16;
x = 0.1;
y = 0.1;
class HitZone
{
left = 0;
top = 0;
right = 0;
bottom = 0;
};
class ShortcutPos
{
left = 0;
top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
w = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
h = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
};
class TextPos
{
left = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
right = 0.005;
bottom = 0;
};
shortcuts[] =
{
};
textureNoShortcut = "#(argb,8,8,3)color(0,0,0,0)";
color[] =
{
1,
1,
1,
1
};
color2[] =
{
0.95,
0.95,
0.95,
1
};
colorDisabled[] =
{
1,
1,
1,
0.25
};
colorBackground[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",
1
};
colorBackground2[] =
{
1,
1,
1,
1
};
class Attributes
{
font = "PuristaMedium";
color = "#E5E5E5";
align = "left";
shadow = "true";
};
idc = -1;
style = 0;
default = 0;
shadow = 1;
w = 0.183825;
h = "((((safezoneW / safezoneH) min 1.2) / 1.2) / 20)";
animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa";
animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa";
animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa";
periodFocus = 1.2;
periodOver = 0.8;
period = 0.4;
font = "PuristaMedium";
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
text = "";
soundEnter[] =
{
"\A3\ui_f\data\sound\onover",
0.09,
1
};
soundPush[] =
{
"\A3\ui_f\data\sound\new1",
0,
0
};
soundClick[] =
{
"\A3\ui_f\data\sound\onclick",
0.07,
1
};
soundEscape[] =
{
"\A3\ui_f\data\sound\onescape",
0.09,
1
};
action = "";
class AttributesImage
{
font = "PuristaMedium";
color = "#E5E5E5";
align = "left";
};
};
class bn_RscShortcutButtonMain
{
idc = -1;
style = 0;
default = 0;
w = 0.313726;
h = 0.104575;
color[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.25
};
class HitZone
{
left = 0;
top = 0;
right = 0;
bottom = 0;
};
class ShortcutPos
{
left = 0.0145;
top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)) / 2";
w = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2) * (3/4)";
h = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
};
class TextPos
{
left = "(((safezoneW / safezoneH) min 1.2) / 32) * 1.5";
top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20)*2 - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)) / 2";
right = 0.005;
bottom = 0;
};
animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\normal_ca.paa";
animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\disabled_ca.paa";
animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\over_ca.paa";
animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\focus_ca.paa";
animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\down_ca.paa";
animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButtonMain\normal_ca.paa";
period = 0.5;
font = "PuristaMedium";
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
text = "";
soundEnter[] =
{
"\A3\ui_f\data\sound\onover",
0.09,
1
};
soundPush[] =
{
"\A3\ui_f\data\sound\new1",
0,
0
};
soundClick[] =
{
"\A3\ui_f\data\sound\onclick",
0.07,
1
};
soundEscape[] =
{
"\A3\ui_f\data\sound\onescape",
0.09,
1
};
action = "";
class Attributes
{
font = "PuristaMedium";
color = "#E5E5E5";
align = "left";
shadow = "false";
};
class AttributesImage
{
font = "PuristaMedium";
color = "#E5E5E5";
align = "false";
};
};
class bn_RscFrame
{
type = 0;
idc = -1;
style = 64;
shadow = 2;
colorBackground[] =
{
0,
0,
0,
0
};
colorText[] =
{
1,
1,
1,
1
};
font = "PuristaMedium";
sizeEx = 0.02;
text = "";
};
class bn_RscSlider
{
access = 0;
type = 3;
style = 1024;
w = 0.3;
color[] =
{
1,
1,
1,
0.8
};
colorActive[] =
{
1,
1,
1,
1
};
shadow = 0;
h = 0.025;
};
class IGUIBack
{
type = 0;
idc = 124;
style = 128;
text = "";
colorText[] =
{
0,
0,
0,
0
};
font = "PuristaMedium";
sizeEx = 0;
shadow = 0;
x = 0.1;
y = 0.1;
w = 0.1;
h = 0.1;
colorbackground[] =
{
"(profilenamespace getvariable ['IGUI_BCG_RGB_R',0])",
"(profilenamespace getvariable ['IGUI_BCG_RGB_G',1])",
"(profilenamespace getvariable ['IGUI_BCG_RGB_B',1])",
"(profilenamespace getvariable ['IGUI_BCG_RGB_A',0.8])"
};
};
class bn_RscCheckbox
{
idc = -1;
type = 7;
style = 0;
x = "LINE_X(XVAL)";
y = "LINE_Y";
w = "LINE_W(WVAL)";
h = 0.029412;
colorText[] =
{
1,
0,
0,
1
};
color[] =
{
0,
0,
0,
0
};
colorBackground[] =
{
0,
0,
1,
1
};
colorTextSelect[] =
{
0,
0.8,
0,
1
};
colorSelectedBg[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",
1
};
colorSelect[] =
{
0,
0,
0,
1
};
colorTextDisable[] =
{
0.4,
0.4,
0.4,
1
};
colorDisable[] =
{
0.4,
0.4,
0.4,
1
};
font = "PuristaMedium";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.8)";
rows = 1;
columns = 1;
strings[] =
{
"UNCHECKED"
};
checked_strings[] =
{
"CHECKED"
};
};
class bn_RscButtonMenu
{
idc = -1;
type = 16;
style = "0x02 + 0xC0";
default = 0;
shadow = 0;
x = 0;
y = 0;
w = 0.095589;
h = 0.039216;
animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
animTextureOver = "#(argb,8,8,3)color(1,1,1,0.5)";
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
colorBackground[] =
{
0,
0,
0,
0.8
};
colorBackground2[] =
{
1,
1,
1,
0.5
};
color[] =
{
1,
1,
1,
1
};
color2[] =
{
1,
1,
1,
1
};
colorText[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.25
};
period = 1.2;
periodFocus = 1.2;
periodOver = 1.2;
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
sizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
class TextPos
{
left = "0.25 * (((safezoneW / safezoneH) min 1.2) / 40)";
top = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - (((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
right = 0.005;
bottom = 0;
};
class Attributes
{
font = "PuristaLight";
color = "#E5E5E5";
align = "left";
shadow = "false";
};
class ShortcutPos
{
left = "(6.25 * (((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005";
top = 0.005;
w = 0.0225;
h = 0.03;
};
};
class bn_RscButtonMenuOK
{
idc = 1;
shortcuts[] =
{
"0x00050000 + 0",
28,
57,
156
};
default = 1;
text = "OK";
};
class bn_RscButtonMenuCancel
{
idc = 2;
shortcuts[] =
{
"0x00050000 + 1"
};
text = "Cancel";
};
class bn_RscControlsGroup
{
class VScrollbar
{
color[] =
{
1,
1,
1,
1
};
width = 0.021;
autoScrollSpeed = -1;
autoScrollDelay = 5;
autoScrollRewind = 0;
shadow = 0;
};
class HScrollbar
{
color[] =
{
1,
1,
1,
1
};
height = 0.028;
shadow = 0;
};
class ScrollBar
{
color[] =
{
1,
1,
1,
0.6
};
colorActive[] =
{
1,
1,
1,
1
};
colorDisabled[] =
{
1,
1,
1,
0.3
};
shadow = 0;
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
};
class Controls
{
};
type = 15;
idc = -1;
x = 0;
y = 0;
w = 1;
h = 1;
shadow = 0;
style = 16;
};private ["_box","_choice"];
_choice = _this select 0;
_box = _this select 1;
hint str (_choice);
diag_log "current box:";
diag_log _box;
//(player getVariable ["bn_current_box",objNull]);
if (_choice == "ПП мины") then {
_box addMagazineCargoGlobal ["APERSTripMine_Wire_Mag", 20];
_box addMagazineCargoGlobal ["rhs_mine_pmn2_mag", 20];
_box addBackpackCargoGlobal ["TRYK_B_Alicepack", 4];
_box addItemCargoGlobal ["ACE_DefusalKit", 4];
};
if (_choice == "2 ДШК") then {
_box addBackpackCargoGlobal ["RHS_DShkM_TripodHigh_Bag", 2];
_box addBackpackCargoGlobal ["RHS_DShkM_Gun_Bag", 2];
_box addMagazineCargoGlobal ["rhs_mag_127x108mm_50", 40];
_box addBackpackCargoGlobal ["TRYK_B_Alicepack", 4];
};
if (_choice == "4 РПГ-7") then {
_box addWeaponCargoGlobal ["rhs_weap_rpg7", 4];
_box addMagazineCargoGlobal ["rhs_rpg7_PG7V_mag", 12];
_box addBackpackCargoGlobal ["TRYK_B_Alicepack", 4];
};
if (_choice == "4 РПК") then {
_box addWeaponCargoGlobal ["rhs_pzn_weap_rpk75", 4];
_box addMagazineCargoGlobal ["rhs_75Rnd_762x39mm", 24];
_box addBackpackCargoGlobal ["TRYK_B_Alicepack", 4];
};
if (_choice == "Партия чехословацких автоматов") then {
_box addWeaponCargoGlobal ["rhs_weap_savz58p", 25];
_box addMagazineCargoGlobal ["rhs_30Rnd_762x39mm_Savz58", 150];
};
if (_choice == "Трофейное оружие") then {
_box addWeaponCargoGlobal ["hlc_lmg_mg3", 2];
_box addWeaponCargoGlobal ["hlc_rifle_g3a3", 12];
_box addWeaponCargoGlobal ["RH_ar10", 6];
_box addMagazineCargoGlobal ["hlc_100rnd_762x51_m_mg3", 10];
_box addMagazineCargoGlobal ["hlc_20rnd_762x51_b_G3", 60];
_box addMagazineCargoGlobal ["RH_20Rnd_762x51_AR10", 30];
};
if (_choice == "ПЗРК Стрела-2") then {
_box addWeaponCargoGlobal ["rhs_weap_strela", 1];
_box addWeaponCargoGlobal ["pzn_strela_Tube", 1];
_box addItemCargoGlobal ["pzn_strela_battery",4];
};
if (_choice == "") exitWith {};
[_box,"removeAllActions"] call BIS_fnc_MP;disableSerialization;
private ["_box","_random_list"];
_box = _this select 0;
_random_list = _box getVariable ["bn_random_list",[]];
_caller = _this select 1;
if (a3a_var_started) exitWith {hint "Поздно, батенька - фризтайм кончился."};
if (_caller getVariable ["bn_mission_ks",false]) then {
uiNamespace setVariable ["bn_current_box", _box];
_ok = createDialog "ks_interface";
diag_log "interface created:";
diag_log _ok;
_combo = (findDisplay 1503) displayCtrl 2100;
{
_index = _combo lbAdd _x;
_combo lbSetData [_index, _x];
diag_log _x;
} forEach _random_list;
} else {
hint "Позови командира стороны.";
};_unit forceAddUniform "FGN_M88_Khaki";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akm";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
_unit addHeadgear "rhsgref_hat_M1951";
_unit addBackpack "tf_anprc155_coyote";
for '_i' from 1 to 2 do { _unit addItemToBackpack'rhs_mag_rdg2_white';};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "FGN_M88_Khaki";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akms";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "Rain_M88";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akms";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "Rain_M88";
_unit addVest "rhs_vest_commander";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akms";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addItem "rhs_mag_762x25_8";
_unit addWeapon "rhs_weap_tt33";
_unit addBackpack "tf_anprc155_coyote";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_mag_762x25_8';};
for '_i' from 1 to 2 do { _unit addItemToBackpack'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToBackpack'rhs_mag_rdg2_white';};
for '_i' from 1 to 4 do { _unit addItemToBackpack'rhs_30Rnd_762x39mm';};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";_unit forceAddUniform "U_I_C_Soldier_Para_3_F";
_unit addItem "tu_10Rnd_sks_mag";
_unit addWeapon "arifle_KA_SKS_F";
_unit addVest "rhs_6sh46";
for '_i' from 1 to 5 do { _unit addItemToVest'tu_10Rnd_sks_mag';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addBackpack "TRYK_B_Alicepack";
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";
_unit forceAddUniform "U_I_C_Soldier_Para_3_F";
_unit addItem "tu_10Rnd_sks_mag";
_unit addWeapon "arifle_KA_SKS_F";
_unit addVest "rhs_6sh46";
for '_i' from 1 to 5 do { _unit addItemToVest'tu_10Rnd_sks_mag';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addBackpack "TRYK_B_Alicepack";
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform selectRandom random_FRELIMO_NOOB;
_unit addItem "tu_10Rnd_sks_mag";
_unit addWeapon "arifle_KA_SKS_F";
_unit addVest "rhs_6sh46";
for '_i' from 1 to 4 do { _unit addItemToVest'tu_10Rnd_sks_mag';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform selectRandom random_FRELIMO_NOOB;
_unit addItem "tu_10Rnd_sks_mag";
_unit addWeapon "arifle_KA_SKS_F";
_unit addVest "rhs_6sh46";
for '_i' from 1 to 4 do { _unit addItemToVest'tu_10Rnd_sks_mag';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit linkItem "ItemCompass";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemWatch";
_unit forceAddUniform selectRandom random_FRELIMO_NOOB;
_unit addItem "tu_10Rnd_sks_mag";
_unit addWeapon "arifle_KA_SKS_F";
_unit addVest "rhs_6sh46";
for '_i' from 1 to 4 do { _unit addItemToVest'tu_10Rnd_sks_mag';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit linkItem "ItemCompass";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemWatch";
_unit forceAddUniform "FGN_M88_Khaki";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akm";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addHeadgear "rhs_fieldcap_khk";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "Rain_M88";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akm";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addHeadgear "usm_bdu_cap_odg";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit forceAddUniform "LOP_U_TKA_Fatigue_02";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akm";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit forceAddUniform "U_BG_Guerilla2_3";
_unit addWeapon "rhs_weap_rpg7";
_unit addSecondaryWeaponItem "rhs_rpg7_PG7V_mag";
_unit addItem "tu_10Rnd_sks_mag";
_unit addWeapon "arifle_KA_SKS_F";
_unit addVest "rhsgref_chestrig";
_unit addBackpack "TRYK_B_Alicepack";
for '_i' from 1 to 4 do { _unit addItemToVest'tu_10Rnd_sks_mag';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
for "_i" from 1 to 2 do { _unit addItemToBackpack "rhs_rpg7_PG7V_mag";};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemCompass";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemWatch";
_unit forceAddUniform "FGN_M88_Khaki";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akm";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addVest "rhsgref_chicom_m88";
_unit addBackpack "TRYK_B_Alicepack";
for '_i' from 1 to 3 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_30Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
for "_i" from 1 to 2 do { _unit addItemToBackpack "rhs_rpg7_PG7V_mag";};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemCompass";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemWatch";
_unit forceAddUniform "rhsgref_uniform_TLA_2";
_unit addItem "rhs_75Rnd_762x39mm";
_unit addWeapon "rhs_pzn_weap_rpk75";
_unit addVest "rhsgref_chicom";
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_75Rnd_762x39mm';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_75Rnd_762x39mm_tracer';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit addBackpack "TRYK_B_Alicepack";
for '_i' from 1 to 1 do { _unit addItemToBackpack'rhs_75Rnd_762x39mm';};
for '_i' from 1 to 1 do { _unit addItemToBackpack'rhs_75Rnd_762x39mm_tracer';};
_unit addHeadgear "rhsgref_hat_M1951";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform "FGN_M88_Khaki_VDV";
_unit addItem "rhs_30Rnd_762x39mm";
_unit addWeapon "rhs_weap_akms";
_unit addPrimaryWeaponItem "rhs_acc_dtkakm";
_unit addWeapon "rhs_weap_makarov_pm";
_unit addVest "LOP_6sh46";
for '_i' from 1 to 5 do { _unit addItemToVest'rhs_30Rnd_762x39mm';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_9x18_8_57N181S';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_f1';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_rdg2_white';};
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit addGoggles "G_Aviator";
_unit setFace "GreekHead_A3_11";
lockIdentity _unit;_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemMap";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit addWeapon "Binocular";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
_unit addWeapon "BWA3_P2A1";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "tf_rt1523g_big_bwmod";
for '_i' from 1 to 2 do { _unit addItemToBackpack'BWA3_1Rnd_Flare_Singlestar_Red';};
for '_i' from 1 to 2 do { _unit addItemToBackpack'BWA3_1Rnd_Flare_Singlestar_White';};
for '_i' from 1 to 2 do { _unit addItemToBackpack'BWA3_1Rnd_Flare_Singlestar_Green';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit addWeapon "Binocular";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addPrimaryWeaponItem "hlc_optic_suit";
_unit addVest "rhsgref_alice_webbing";
_unit addWeapon "BWA3_P2A1";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for '_i' from 1 to 2 do { _unit addItemToVest'BWA3_1Rnd_Flare_Singlestar_Red';};
for '_i' from 1 to 2 do { _unit addItemToVest'BWA3_1Rnd_Flare_Singlestar_White';};
for '_i' from 1 to 2 do { _unit addItemToVest'BWA3_1Rnd_Flare_Singlestar_Green';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
_unit addBackpack "rhsgref_ttsko_alicepack";
_unit addWeapon "rhs_weap_rpg7";
_unit addSecondaryWeaponItem "rhs_rpg7_PG7V_mag";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for "_i" from 1 to 2 do { _unit addItemToBackpack "rhs_rpg7_PG7V_mag";};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addVest "rhsgref_alice_webbing";
_unit addBackpack "rhsgref_ttsko_alicepack";
_unit addWeapon "rhs_weap_rpg7";
_unit addSecondaryWeaponItem "rhs_rpg7_PG7V_mag";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for "_i" from 1 to 2 do { _unit addItemToBackpack "rhs_rpg7_PG7V_mag";};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for "_i" from 1 to 2 do { _unit addItemToBackpack "rhs_rpg7_PG7V_mag";};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addVest "rhsgref_alice_webbing";
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for "_i" from 1 to 2 do { _unit addItemToBackpack "rhs_rpg7_PG7V_mag";};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "tf_rt1523g_big_bwmod";
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addVest "rhsgref_alice_webbing";
_unit addItem "hlc_100rnd_762x51_m_mg3";
_unit addWeapon "hlc_lmg_mg3";
for '_i' from 1 to 2 do { _unit addItemToVest'hlc_100rnd_762x51_m_mg3';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 4 do { _unit addItemToBackpack'hlc_100rnd_762x51_m_mg3';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "tu_briefing_map";
_unit linkItem "ItemWatch";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 4 do { _unit addItemToBackpack'hlc_100rnd_762x51_m_mg3';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 2 do { _unit addItemToBackpack'hlc_100rnd_762x51_m_mg3';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addWeapon "BN_M224_M8_Gun_Launcher";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addItem "ACE_MapTools";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 8 do { _unit addItemToBackpack 'bn_60mm_shell_1';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "rhsgref_ttsko_alicepack";
for '_i' from 1 to 8 do { _unit addItemToBackpack 'bn_60mm_shell_1';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform "TRYK_OVERALL_SAGE_BLKboots_nk_blk";
_unit addItem "rhs_mag_6x8mm_mhp";
_unit addWeapon "rhs_weap_type94_new";
_unit addVest "TRYK_Hrp_vest_od";
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_6x8mm_mhp';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m18_red';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m18_purple';};
_unit addHeadgear "CUP_H_BAF_PILOT";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "rhsgref_30rnd_1143x23_M1911B_SMG";
_unit addWeapon "rhs_weap_m3a1";
_unit addVest "rhsgref_chestrig";
for '_i' from 1 to 3 do { _unit addItemToVest'rhsgref_30rnd_1143x23_M1911B_SMG';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m18_red';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_m18_purple';};
_unit addHeadgear "rhsusf_bowman_cap";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "ItemRadio";
_unit addGoggles "G_Aviator";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20rnd_762x51_b_G3";
_unit addWeapon "hlc_rifle_g3a3";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20rnd_762x51_b_G3';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemCompass";
_unit linkItem "tf_microdagr";
_unit linkItem "tu_briefing_map";
_unit forceAddUniform "rhsgref_uniform_altis_lizard";
_unit addItem "hlc_20Rnd_762x51_B_fal";
_unit addWeapon "hlc_rifle_FAL5000";
_unit addVest "rhsgref_alice_webbing";
for '_i' from 1 to 5 do { _unit addItemToVest'hlc_20Rnd_762x51_B_fal';};
for '_i' from 1 to 2 do { _unit addItemToVest'rhs_mag_m67';};
for '_i' from 1 to 1 do { _unit addItemToVest'rhs_mag_an_m8hc';};
_unit addBackpack "tf_rt1523g_big_bwmod";
_unit addHeadgear "usm_bdu_cap_wdl";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";
_unit = _this select 0;
_faction = _this select 1;
_loadout = _this select 2;
random_FRELIMO_NOOB = [
"LOP_U_AFR_Civ_05S",
"LOP_U_AFR_Civ_06",
"LOP_U_AFR_Civ_01S",
"U_BG_Guerilla2_3",
"U_BG_Guerilla2_2",
"U_BG_Guerilla2_1",
"LOP_U_PMC_Fatigue_02"
];
_item_processor = {
removeAllItems _this;
removeAllWeapons _this;
removeAllItemsWithMagazines _this;
removeAllAssignedItems _this;
removeUniform _this;
removeBackpack _this;
removeGoggles _this;
removeHeadgear _this;
removeVest _this;
};
if (!isServer) exitWith {};
_unit call _item_processor;
_svn = format ["SerP_equipment_codes_%1_%2",_faction, _loadout];
if (isNil _svn) then
{
missionNamespace setVariable [_svn,
compile preprocessFileLineNumbers format ["Equipment\%1\%2.sqf", _faction, _loadout]
];
};
[_unit] call (missionNamespace getVariable [_svn, {}]);
_veh = _this select 0;
_veh addItemcargoglobal ["ItemMap",2];
_veh addItemcargoglobal ["ItemRadio", 2];
_veh addItemcargoglobal ["rhs_30Rnd_762x39mm", 12];
_veh addItemcargoglobal ["tu_10Rnd_sks_mag", 6];
_veh addItemcargoglobal ["rhs_mag_f1", 8];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 8];
_veh addItemcargoglobal ["rhs_75Rnd_762x39mm", 3];
_veh addItemcargoglobal ["ACE_fieldDressing", 9];
_veh addItemcargoglobal ["ACE_elasticBandage", 9];
_veh addItemcargoglobal ["ACE_packingBandage", 9];
_veh addItemcargoglobal ["ACE_morphine", 9];
_veh addItemcargoglobal ["ACE_tourniquet", 9];
_veh = _this select 0;
_veh addItemcargoglobal ["ItemRadio", 2];
_veh addMagazineCargoGlobal ["rhs_30Rnd_762x39mm", 12];
_veh addMagazineCargoGlobal ["tu_10Rnd_sks_mag", 6];
_veh addItemcargoglobal ["rhs_mag_f1", 8];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 8];
_veh addMagazineCargoGlobal ["rhs_75Rnd_762x39mm", 3];
_veh addItemcargoglobal ["ACE_fieldDressing", 9];
_veh addItemcargoglobal ["ACE_elasticBandage", 9];
_veh addItemcargoglobal ["ACE_packingBandage", 9];
_veh addItemcargoglobal ["ACE_morphine", 9];
_veh addItemcargoglobal ["ACE_tourniquet", 9];
_veh addItemcargoglobal ["ItemMap", 2];
_veh addMagazineCargoGlobal ["SLAMDirectionalMine_Wire_Mag", 6]; _veh = _this select 0;
_veh addItemcargoglobal ["tu_10Rnd_sks_mag", 63];
_veh addItemcargoglobal ["rhs_mag_f1", 10];
_veh addItemcargoglobal ["rhs_30Rnd_762x39mm", 5];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 10];
_veh addItemcargoglobal ["ACE_fieldDressing", 10];
_veh addItemcargoglobal ["ACE_elasticBandage", 10];
_veh addItemcargoglobal ["ACE_packingBandage", 10];
_veh addItemcargoglobal ["ACE_morphine", 10];
_veh addItemcargoglobal ["ACE_tourniquet", 10];
_veh addItemcargoglobal ["ACE_EntrenchingTool", 10];
_veh addBackpackCargoGlobal ["TRYK_B_Alicepack", 5];
_veh addItemcargoglobal ["ItemRadio", 3];
_veh = _this select 0;
_veh addItemcargoglobal ["ItemRadio", 10];
_veh addItemcargoglobal ["ItemMap", 30];
_veh addItemcargoglobal ["rhs_mag_rdg2_white", 20];
_veh addItemcargoglobal ["rhs_mag_f1", 20];
_veh addBackpackCargoGlobal ["TRYK_B_Alicepack", 2];
_veh = _this select 0;
_veh addItemcargoglobal ["rhs_weap_savz58p", 8];
_veh addItemcargoglobal ["rhs_30Rnd_762x39mm_Savz58", 48];
_veh addBackpackCargoGlobal ["TRYK_B_Alicepack", 8];
_veh addItemcargoglobal ["rhs_pzn_weap_rpk75", 4];
_veh addItemcargoglobal ["rhs_75Rnd_762x39mm", 30];
_veh = _this select 0;
_veh addBackpackCargoGlobal ["TRYK_B_Alicepack", 4];
_veh addItemcargoglobal ["rhs_weap_rpg7", 2];
_veh addItemcargoglobal ["rhs_rpg7_PG7V_mag", 6];
_veh addWeaponCargoGlobal ["hlc_lmg_mg3", 2];
_veh addItemcargoglobal ["hlc_100rnd_762x51_m_mg3", 20];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_morphine", 5];
_veh addItemCargoGlobal ["ACE_epinephrine", 5];
_veh addItemCargoGlobal ["ACE_quikclot", 5];
_veh addItemCargoGlobal ["ACE_fieldDressing", 10];
_veh addItemCargoGlobal ["ACE_elasticBandage", 10];
_veh addItemCargoGlobal ["ACE_packingBandage", 10];
_veh additemcargoGlobal ["ACE_tourniquet", 5];
_veh addItemcargoglobal ["hlc_20Rnd_762x51_B_fal", 20];
_veh addItemcargoglobal ["rhs_mag_m67", 10];
_veh addItemcargoglobal ["rhs_mag_an_m8hc", 20];
_veh addItemcargoglobal ["hlc_100rnd_762x51_m_mg3", 5];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_morphine", 10];
_veh addItemCargoGlobal ["ACE_epinephrine", 10];
_veh addItemCargoGlobal ["ACE_quikclot", 15];
_veh addItemCargoGlobal ["ACE_fieldDressing", 15];
_veh addItemCargoGlobal ["ACE_elasticBandage", 15];
_veh addItemCargoGlobal ["ACE_packingBandage", 15];
_veh additemcargoGlobal ["ACE_tourniquet", 5];
_veh addItemcargoglobal ["hlc_20Rnd_762x51_B_fal", 20];
_veh addItemcargoglobal ["rhs_mag_m67", 10];
_veh addItemcargoglobal ["rhs_mag_an_m8hc", 20];
_veh addItemcargoglobal ["hlc_100rnd_762x51_m_mg3", 5];
_veh addItemcargoglobal ["ACE_bloodIV_500", 5];
_veh addItemcargoglobal ["ACE_plasmaIV_500", 5];
_veh addItemcargoglobal ["ACE_salineIV_500", 5];
_veh additemcargoGlobal ["ACE_personalAidKit",5];
_veh additemcargoGlobal ["ACE_surgicalKit",1];_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_morphine", 5];
_veh addItemCargoGlobal ["ACE_epinephrine", 5];
_veh addItemCargoGlobal ["ACE_quikclot", 2];
_veh addItemCargoGlobal ["ACE_fieldDressing", 10];
_veh addItemCargoGlobal ["ACE_elasticBandage", 10];
_veh addItemCargoGlobal ["ACE_packingBandage", 10];
_veh additemcargoGlobal ["ACE_tourniquet", 5];
_veh addItemcargoglobal ["hlc_20rnd_762x51_b_G3", 8];
_veh addItemcargoglobal ["rhs_mag_m67", 4];
_veh addItemcargoglobal ["rhs_mag_an_m8hc", 10];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_morphine", 20];
_veh addItemCargoGlobal ["ACE_epinephrine", 20];
_veh addItemCargoGlobal ["ACE_quikclot", 10];
_veh addItemCargoGlobal ["ACE_fieldDressing", 50];
_veh addItemCargoGlobal ["ACE_elasticBandage", 50];
_veh addItemCargoGlobal ["ACE_packingBandage", 50];
_veh additemcargoGlobal ["ACE_tourniquet", 10];
_veh additemcargoGlobal ["ACE_personalAidKit", 25];
_veh additemcargoGlobal ["ACE_surgicalKit", 2];
_veh addItemcargoglobal ["hlc_20rnd_762x51_b_G3", 8];
_veh addItemcargoglobal ["rhs_mag_m67", 4];
_veh addItemcargoglobal ["rhs_mag_an_m8hc", 10];
_veh addBackpackCargoGlobal ["cgr_kitbag_tent_packed_rgr", 2];
_veh addItemcargoglobal ["ACE_bloodIV_500", 15];
_veh addItemcargoglobal ["ACE_plasmaIV_500", 15];
_veh addItemcargoglobal ["ACE_salineIV_500", 15];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_morphine", 5];
_veh addItemCargoGlobal ["ACE_epinephrine", 5];
_veh addItemCargoGlobal ["ACE_fieldDressing", 10];
_veh addItemCargoGlobal ["ACE_elasticBandage", 10];
_veh addItemCargoGlobal ["ACE_packingBandage", 10];
_veh addItemcargoGlobal ["ACE_tourniquet", 5];
_veh addItemcargoglobal ["hlc_20rnd_762x51_b_G3", 40];
_veh addItemcargoglobal ["rhs_mag_m67", 10];
_veh addItemcargoglobal ["rhs_mag_an_m8hc", 20];
_veh addItemcargoglobal ["hlc_100rnd_762x51_m_mg3", 15];
_veh addItemcargoglobal ["ACE_DefusalKit", 2];
_veh addItemCargoGlobal ["rhs_ec400_mag", 3];
_veh addBackpackCargoGlobal ["rhsgref_ttsko_alicepack", 3];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_morphine", 2];
_veh addItemCargoGlobal ["ACE_epinephrine", 2];
_veh addItemCargoGlobal ["ACE_quikclot", 2];
_veh addItemCargoGlobal ["ACE_fieldDressing", 6];
_veh addItemCargoGlobal ["ACE_elasticBandage", 6];
_veh addItemCargoGlobal ["ACE_packingBandage", 6];
_veh additemcargoGlobal ["ACE_tourniquet", 2];
//
_veh = _this select 0;
_faction = _this select 1;
//call compile format ["if (isNil {SerP_veh_%1_processor}) then {SerP_veh_%1_processor = compile preprocessFileLineNumbers 'equipment\veh_%1.sqf'}",_faction];
_loadout = _this select 2;
_cargoBoxes = _this select 3;
//prepare functions
_common_processor = {
_veh = _this;
clearWeaponCargoGlobal _veh;
clearMagazineCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearBackpackCargoGlobal _veh;
};
if (isServer) then
{
if (_faction == "" && _loadout == "common") then {
//_veh addMagazineCargo ["HandGrenade_East",12];
//_veh addWeaponCargo ["ACE_Rucksack_RD90",2];
} else {
_veh call _common_processor;
[_veh] call compile format ["_this call compile preprocessFileLineNumbers 'Equipment\veh_%1\%2.sqf';",_faction,_loadout];
};
};// by ALIAS
// null = [_object_name,_life_time,_radius,_damage_inflicted_surround,_kill_vehicle_in_fire,_human,_ground] spawn compile preprocessFile "ALfire\fire.sqf";
// Tutorial: https://www.youtube.com/aliascartoons
/*
* Script MP and SP compatible.
** Script runs on client side only so the server is not loaded with unnecessary tasks.
*** However mind the number of fires they can still cause frames drop. Test and see what it works for you.
_object_name - the object name you want to set on fire, you can use "this" if you run the script from init field of the object
_life_time - seconds, fire will be put off after the time you set for life time
_radius - meters, you want to be covered by fire, note that at certain values the fire doesn't look good, so use it wisely
_damage_inflicted_surround - 0..1, amount of damage you to be inflicted upon objects close to fire, use smaller values and test damage is in loop
_kill_vehicle_in_fire - boolean, true if you want the vehicle blowing up when fire is gone, false if you want just to delete the vehicle
_human - boolean, true if the object set on fire is a footmobile, false if is an object (buildings, wrecks, vehicles etc)
_ground - string with 2 pre-defined values, "big" to set on fire a large area defined by _radius, "small" to set in fire objects placed in air or ground, here radius only counts for area where de damage is inflicted
For more info see the update tutorial
For more info see the first tutorial
https://www.youtube.com/watch?v=WKakf7yb2WM
*/
// Example using fire.sqf ===========================================================
//- use this script when you want set on fire objects with higher altitude
null = [this,180,5,0.01,false,false,"small"] spawn compile preprocessFile "ALfire\fire.sqf";
// =========================================================== Example
//- use this script when you want fire covering a larger area, doesn't support altitude tho, in other words it can be set only on ground
null = [this,180,20,0.01,false,false,"big"] spawn compile preprocessFile "ALfire\fire.sqf";// ARMA3.RU Mission Template
enableSaving [false, false];
if (!isDedicated) then {
waitUntil {!(isNull player)};
player addEventHandler ["inventoryOpened","_nul=execVM 'script.sqf'"];
};
// Init modules
#include "a3a_modules.hpp"
{
[] execVM "A3A_MODULES\" + _x + "\init.sqf";
} forEach A3A_MODULES;
//Подключение скрипта выдачи медицины
0 = execVM "add_med.sqf";
setTerrainGrid 2;
if (!isServer) then{
[] execVM "text.sqf";
};
if (isServer) then {
sleep 1;
[] execVM "scripts\ammo_truck.sqf";
};
[] execVM "scripts\localobjects.sqf"; //подключение скрипта локальных объектов (как правило, укреплений), для снижения нагрузки на сервер. Сейчас включено, символом "//" в начале строки можно отключить
if (isServer) then {
bn_arr_faces = ["AfricanHead_01","AfricanHead_02","AfricanHead_03","Barklem","usm_AfricanHead_01"];
{
if ((side _x == resistance) && (typeOf _x == "I_G_Survivor_F")) then {
[_x, selectRandom bn_arr_faces] remoteExec ["setFace", 0, _x];
}
} forEach playableUnits;
{
if ((side _x == resistance) && (typeOf _x == "I_officer_F")) then {
[_x, "GreekHead_A3_11"] remoteExec ["setFace", 0, _x];
}
} forEach playableUnits;
};
if (isServer) then
{
[] spawn {
waituntil {!isnil "ace_weather_WindSpeedMax"};
ace_weather_WindSpeedMax = [[1.53, 1.29], [1.59, 1.12],[1.71, 1.35],[1.39, 1.01],[1.23, 1.18],[1.21, 1.17],[1.23, 1.14],[1.89, 1.21],[1.98, 1.28],[1.9, 1.6],[2.29, 1.45],[1.19, 1.12]];
waituntil {!isnil "ace_weather_WindSpeedMin"};
ace_weather_WindSpeedMin = [[0.36, 1.16], [0.4, 1.22],[0.36, 1.07],[0.23, 0.74],[0.27, 0.77],[0.35, 0.96],[0.59, 1.58],[0.68, 1.49],[0.39, 1.24],[0.99, 1.76],[0.32, 1.15],[0.38, 1.14]];
waituntil {!isnil "ace_weather_WindSpeedMean"};
ace_weather_WindSpeedMean = [1.75, 1.79,1.79, 1.56, 1.92, 1.5, 1.84, 1.62, 1, 1.63, 1.6, 1.6];
waituntil {!isnil "ace_weather_WindSpeedMean"};
ace_weather_WindDirectionProbabilities = [
[0,0,0,0,0,0,0,0,0,0,0,0], // January
[0,0,0,0,0,0,0,0], // February
[0,0,0,0,0,0,0,0], // March
[0,0,0,0,0,0,0,0], // April
[0,0,0,0,0,0,0,0], // May
[0,0,0,0,0,0,0,0], // June
[0,0,0,0,0,0,0,0], // July
[0,0,0,0,0,0,0,0], // August
[0,0,0,0,0,0,0,0], // September
[0,0,0,0,0,0,0,0], // October
[0,0,0,0,0,0,0,0], // November
[0,0,0,0,0,0,0,0] // December
];
};
};//player createDiaryRecord ["diary", ["Условности миссии", loadFile "A3A_BRIEFING\briefing_MISSC.html"]];
//player createDiaryRecord ["diary", ["Условности миссии", loadFile "A3A_BRIEFING\briefing_MISSION_CONV.html"]];
player createDiaryRecord ["diary", ["Технические условности", loadFile "A3A_BRIEFING\briefing_TECH.html"]];
execVM "scripts\PilotView.sqf"; // Скрипт который включает расширенную прорисовку для пилотов самолётов и вертолётов
JFIF H H "Exif MM * C
C "
} !1AQa"q2#BR$3br
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
w !1AQaq"2B #3Rbr
$4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? ?ట<%CS=iT=7C61t|x<꿲A_ඏx_\i~6=ܣ7܅, GW/=KşK]&5_iP$(d}q_gY~>_ʺ5|3m{n#Y\|WX>H=ZFS[E*
o/~>