A3A_BRIEFING\briefing_BLUEFOR_ENEMY.html g
^ A3A_BRIEFING\briefing_BLUEFOR_TASKS.html g
^ A3A_BRIEFING\briefing_GreenEnemy.html g
^ A3A_BRIEFING\briefing_GreenTasks.html f^ A3A_BRIEFING\briefing_MISSC.html U^ A3A_BRIEFING\briefing_MISSION_DESCRIPTION.html 3j^ A3A_BRIEFING\briefing_OPFOR_ENEMY.html g
^ A3A_BRIEFING\briefing_OPFOR_TASKS.html f^ a3a_client_scripts.sqf g
^ a3a_modules.hpp g
^ A3A_MODULES\AddonsCheck\init.sqf g
^, A3A_MODULES\NamesInVehicle\a3ru_onMouseZChanged.sqf g
^w A3A_MODULES\NamesInVehicle\fn_namesInVehicle.sqf g
^ A3A_MODULES\NamesInVehicle\init.sqf g
^ A3A_MODULES\PlayerTags\init.sqf g
^ A3A_MODULES\StaticDrag\fn_onKeyDown.sqf g
^ A3A_MODULES\StaticDrag\fn_staticCanDrag.sqf g
^ A3A_MODULES\StaticDrag\fn_staticDrag.sqf g
^s A3A_MODULES\StaticDrag\fn_staticRelease.sqf g
^ A3A_MODULES\StaticDrag\fn_staticRotate.sqf g
^ A3A_MODULES\StaticDrag\init.sqf g
^ a3a_server_scripts.sqf g
^R A3A_SETUP\a3a_header.hpp g
^ A3A_SETUP\a3a_parameters.hpp g
^ A3A_SETUP\infiSTAR_AdminMenu.hpp g
^+ add_med.sqf g
^ add_med_med.sqf g
^V AL_fire\al_crater_fire.sqf g
^l AL_fire\al_damage_fire.sqf g
^1 AL_fire\al_small_fire.sqf g
^ AL_fire\al_small_fire_sfx.sqf g
^o
AL_fire\al_unit_fire.sqf g
^ AL_fire\al_unit_fire_car.sqf g
^V AL_fire\al_unit_fire_sfx.sqf g
^V AL_fire\al_vehicle_fire.sqf g
^B AL_fire\al_vehicle_fire_sfx.sqf g
^ AL_fire\al_wild_fire.sqf g
^9 AL_fire\al_wild_fire_sfx.sqf g
^ AL_fire\fire_on_player.sqf g
^ AL_napalm\alias_napalm_effect.sqf g
^a bn_crew_control.sqf g
^ boom_effect.sqf g
^G call.fsm g
^@ description.ext g
^~ Equipment\CVK\Kom.sqf g
^7 Equipment\CVK\Med.sqf g
^ Equipment\CVK\POMPUL.sqf g
^ Equipment\CVK\POMRPG.sqf g
^ Equipment\CVK\PUL.sqf g
^ Equipment\CVK\RPG.sqf g
^ Equipment\CVK\SKom.sqf g
^, Equipment\CVK\SN.sqf g
^ Equipment\CVK\STRL.sqf g
^h Equipment\CVK\STRLRPG.sqf g
^ Equipment\CVK\STSTRL.sqf g
^0 Equipment\CVK\STSTRLRPG.sqf g
^S Equipment\OBR\ACCOM.sqf g
^ Equipment\OBR\ACRU.sqf g
^ Equipment\OBR\AMED.sqf g
^S Equipment\OBR\AMG.sqf g
^ Equipment\OBR\AT.sqf g
^Y Equipment\OBR\CCOM.sqf g
^ Equipment\OBR\COM.sqf g
^ Equipment\OBR\CRU.sqf g
^ Equipment\OBR\GP.sqf g
^ Equipment\OBR\ING.sqf g
^7 Equipment\OBR\MED.sqf g
^^ Equipment\OBR\MG.sqf g
^} Equipment\OBR\OBS.sqf g
^ Equipment\OBR\RAD.sqf g
^ Equipment\OBR\RF.sqf g
^ Equipment\OBR\TL.sqf g
^ Equipment\POL\PCom.sqf g
^ Equipment\POL\PMen.sqf g
^ Equipment\POL\PMenO.sqf g
^B Equipment\SSO\SSOBPA.sqf g
^ Equipment\SSO\SSOGP.sqf g
^ Equipment\SSO\SSOKOM.sqf g
^@ Equipment\SSO\SSOMED.sqf g
^ Equipment\SSO\SSOPKP.sqf g
^8 Equipment\SSO\SSORAD.sqf g
^ Equipment\SSO\SSORF.sqf g
^ Equipment\SSO\SSORF2.sqf g
^ Equipment\SSO\SSORPK.sqf g
^ Equipment\SSO\SSOSNP.sqf g
^ Equipment\SSO\SSOSTA.sqf g
^D Equipment\unitprocessor.sqf g
^ Equipment\veh_ATK\DIV.sqf g
^x Equipment\veh_ATK\med.sqf g
^J Equipment\veh_ATK\PODKR.sqf g
^J Equipment\veh_OBR_F\COM.sqf g
^ Equipment\veh_OBR_F\EP.sqf g
^ Equipment\veh_OBR_F\M113_1.sqf g
^ Equipment\veh_OBR_F\M113_2.sqf g
^ Equipment\veh_OBR_F\MED.sqf g
^& Equipment\veh_OBR_F\POL.sqf g
^ Equipment\veh_OBR_F\REM.sqf g
^} Equipment\veh_TAK_F\S.sqf g
^ Equipment\veh_TAK_F\SSO.sqf g
^ Equipment\veh_TAK_F\SSOKOM.sqf g
^ Equipment\vehprocessor.sqf g
^ gorit.sqf g
^7 init.sqf e^o initPlayerLocal.sqf wU^!D initServer.sqf
U^/ loadScreen.jpg g
^ mis_funcs\fn_preinit.sqf g
^ mission.sqm d\^B
mission_description.hpp g
^g mission_parameters.hpp g
^ pic\logo_tsg.paa g
^7 Sound\01.ogg g
^U Sound\05.ogg g
^F Sound\eko_1.ogg g
^| Sound\eko_3.ogg g
^Hr Sound\foc_initial_2.ogg g
^Q Sound\furnal.ogg g
^T Sound\napalm.ogg g
^@$ Sound\unit_fire.ogg g
^֣ zap.sqf g
^^ Силы самообороны Таноа усиленные полицейскими патрулями и группой ССО РФ.Поставленная задача: Не допустить доставку топлива на электростанцию и ее запуска.
Внимание! Есть информация что после нашего ухода с электростанции, туда прибыл отряд хорошо вооруженных людей и разворачивают аппаратуру слежения.
Диверсионные группы состоящие из боевиков генерала Ашмадининаха.
Внимание! Есть информация что скоро на остров прибудут основные силы головорезов.Задача: Совместно с полицией и группой ССО РФ обеспечить безопастную доставку необходимого количества топлива и запуск электростанции.
Связь с группой ССО РФ может поддерживаться с помощью радистов-переводчиков.
Общие условности:
- время на миссию: 135 минут;
- всем запрещено одевать форму, головные уборы и разгрузки противника.
Условности по потерям:
- Боевики проиграют, если синих останется меньше 10.
- Силы самообороны проиграют, если зеленых и красных останется меньше 11.
Технические условности:
- ПРИ РАБОТЕ С ТОПЛИВОМ И ПРИ ЕГО ПЕРЕВОЗКЕ СОБЛЮДАЙТЕ ПРАВИЛА ПОЖАРНОЙ БЕЗОПАСНОСТИ!!!
- Следите за целостностью цистерны бензовоза. Из пробитой цистены топливо будет вытекать. Если цистерна пробита, то есть возможность залатать пробоины через АСЕ взаимодействие.
- Заправка бака машины и заправки цистерны бензовоза - разные вещи! Заправка цистерны бензовоза и резервной цистерны дизельной электростанции производится чере АСЕ взаимодействие. Подробности в теме с миссией.
- Заправочные станции и резервную цистерну электростанции можно уничтожить только взрывчаткой.
- Общее количество топлива на заправке распределено по количеству колонок на этой заправке. То есть каждая колонка имеет свой объем топлива.
- Запуск электростанции производится через щиток управления, который находится ТУТ. Взаимодействие производится чере ACE меню.
- Запуск электростанции может быть произведен в двух режимах. Автоматический режим может быть активироват любым человеком, но процесс занимает больше времени. Ручной режим запуска занимает меньше времени, но его может использовать только один из двух инжинеров.
- Имеется возможность остановить процесс запуска станции в автоматическом режиме. Взаимодействие производится чере ACE меню. Остоновка ручного режима запуска, производится устранением инжинера.
Медицинским транспортом являются: Хаммер медотделения зеленых. Также на острове имеются госпитали, они отмеченны на карте.
Условности по победе боевиков:
- За время миссии силы самообороны Таноа не смогли доставить необходимое количество топлива на электростанцию и запустить ее.
- Уничтожена резервная цистерна на электростанции.
- Уничтожены все бензовозы.
Условности по победе сил самообороны:
- За время миссии силы самообороны Таноа доставили необходимое количество топлива на электростанцию и запустили ее.
"Reign of Fire"
Версия: 1
Авторы: [В]Ken, [В]Linza
Описание миссии:
2016 год. Внутренняя разведка раскрывает заговор генерала Ашмадининаха по свержению законно избранного президента острова Таноа Чаво Угиса.
Опальный генерал бежит из страны к своим зарубежным покровителям, где сколачивает небольшую наемную армию. С её помощью генерал Ашмадининах собирается вернуться на остров и захватить власть.
Понимая что народ поддерживает своего президента, генерал решает провести акцию устрашения, ряд деверсий, чтобы наглядно показать неспособность правительства защитить своих граждан и обеспечить их всем необходимым.
На остров Таноа скрытно прибывают несколько диверсионных групп. Их цель - единственная на острове дизельная электростанция, снабжающая энергией все важные объекты.
Одна группа организует пробку на единственном мосту соединяющим остров с остальным архипелагом и блокируют его взорвав несколько машин. Одновременно с этим другие группы атакуют дизельную электростанцию и уничтожают емкости со стратегическим запасом топлива. После чего скрываются в джунглях в ожидании прибытия основных сил.
Электростанция перестает действовать. Обесточенными оказываются больницы, телецентры, школы, магазины. Ситуация становится критической. Резервные генераторы будут работать не долго.
В этой ситуации Чаво Угис обращается за помощью ко всем кто может ее предоставить, и принимает решение реквизировать все топливо находяшееся на государственных и частных заправках острова, а так же средства его доставки.
Все силы самообороны острова Таноа и усиленные полицейские расчеты были приведены в полную боеготовность.
Специалисты расчитали, что для обеспечения электроэнергией острова до окончания ремонта основных ёмкостей и прибытия новой поставки, необходимо 20000 литров топлива. К счастью на электростанции осталась нетронутой резервная емкость подходящего объема.
Если получится доставить необходимое количества топлива и запустить электростанцию, то акция устрашения будет провалена.
Для доставки топлива военные предоставили два топливозаправщика емкостью по 10000 литров. Это бронированные "Тайфуны". Также в ведение правительства переходят все гражданские бензовозы, которые смогут найти.
Призыв о помощи был услышан, и уже в скором времени на територию острова высадилась группа Сил Специальных Операций РФ со спецтехникой для обеспечения безопасности электростанции от повторных атак терористов.
Также отозвался, находящийся в нейтральных водах, танкер КНР. Который сообщил о готовности предоставить необходимое количество топлива, при условии обеспечения безопасности на острове и наличия средств доставки топлива на электростанцию.
Ресурса резервных генераторов осталось чуть больше чем на два часа.
Время пошло...
Диверсионные группы состоящие из боевиков генерала Ашмадининаха.
Внимание! Есть информация что скоро на остров прибудут основные силы головорезов.Задача: Совместно с полицией и силами самообороны острова Таноа, обеспечить безопастную доставку необходимого количества топлива и запуск электростанции.
В нашем распоряжении есть несколько сейсмостанций. При включении определяют местоположение двигающейся пехоты и техники в определенном радиусе. Информация выводится на cTab на расстоянии не более двух километров.
Включение и выключение производится через меню взаимодействия. Сейсмостанция имеет прочный, пуленепробиваемый корпус, но может быть уничтожена близким разрывом.
// Клиентские скрпты, выполняются после инициализации платформы
sleep 15;
["
Reign of Fire
«На «ты» давно ты с чертом стал! А всё ещё огня боишься...» — Фауст. Гёте.
Серьезные игры на Тушино",0,0,15,2] spawn BIS_fnc_dynamicText;/// 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;
};
};
};tow1 = (getmarkerpos "dom2" nearestObject 374577);
tow1 allowdamage false;
atrium_version = 14;
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[] = {600, 900};
texts[] = {"10m", "15m"};
default = 900;
};
class a3a_params_slotReservation {
title = "$STR_A3RU_slotReservation";
values[] = {0,1};
texts[] = {$STR_A3RU_off,$STR_A3RU_on};
default = 0;
};
class a3a_params_spectatorSides {
title = "$STR_A3RU_spectatorSides";
values[] = {0,1};
texts[] = {$STR_A3RU_spectatorOwnSide, $STR_A3RU_spectatorAllSides};
default = 1;
};
class a3a_params_externalAddonsInit {
title = "$STR_A3RU_externalAddonsInit";
values[] = {0,1};
texts[] = {$STR_A3RU_off, $STR_A3RU_on};
default = 1;
};
};/*
Antihack & AdminTools - Christian Lorenzen - www.infiSTAR.de
#3dafcba70fef
*/
class RscListBox_infiSTAR {
access=0;
type=5;
style=0;
font="PuristaLight";
sizeEx=0.03;
rowHeight=0;
colorText[]={1,1,1,1};
colorScrollbar[]={1,1,1,1};
colorSelect[]={0,0,0,1};
colorSelect2[]={1,0.5,0,1};
colorSelectBackground[]={0.6,0.6,0.6,1};
colorSelectBackground2[]={0.2,0.2,0.2,1};
colorBackground[]={0,0,0,0.8};
maxHistoryDelay=1.0;
soundSelect[]={"",0.1,1};
period=1;
autoScrollSpeed=-1;
autoScrollDelay=5;
autoScrollRewind=0;
arrowEmpty="#(argb,8,8,3)color(1,1,1,1)";
arrowFull="#(argb,8,8,3)color(1,1,1,1)";
shadow=0;
colorDisabled[]={1,1,1,0.25};
border=false;
borderSize=0;
class ScrollBar
{
arrowEmpty="#(argb,8,8,3)color(1,1,1,1)";
arrowFull="#(argb,8,8,3)color(1,1,1,1)";
border="#(argb,8,8,3)color(1,1,1,1)";
color[]={1,1,1,0.6};
colorActive[]={1,1,1,1};
colorDisabled[]={1,1,1,0.3};
thumb="#(argb,8,8,3)color(1,1,1,1)";
};
class ListScrollBar:ScrollBar
{
color[]={1,1,1,0.6};
colorActive[]={1,1,1,1};
colorDisabled[]={1,1,1,0.3};
thumb="#(argb,8,8,3)color(1,1,1,1)";
arrowEmpty="#(argb,8,8,3)color(1,1,1,1)";
arrowFull="#(argb,8,8,3)color(1,1,1,1)";
border="#(argb,8,8,3)color(1,1,1,1)";
shadow=0;
};
};
class RscText_infiSTAR {
access=0;
idc=-1;
type=0;
style=0;
linespacing=1;
colorBackground[]={0,0,0,0};
colorText[]={0.84,0.07,0,1};
shadow=1;
font="PuristaBold";
sizeex=0.0400;
fixedWidth=0;
};
class RscEdit_infiSTAR {
access=0;
type=2;
style=0;
colorBackground[]={0,0,0,0.6};
colorText[]={1,1,1,1};
colorSelection[]={1,1,1,0.25};
colorDisabled[]={1,1,1,0};
font="PuristaBold";
sizeEx=0.04;
autocomplete="";
text="";
size=0.2;
shadow=0;
};
class RscButton_infiSTAR {
access=0;
idc=-1;
type=1;
style=0;
text="";
action="";
colorText[]={1,1,1,0.9};
colorDisabled[]={0.6,0.1,0.3,0};
colorBackground[]={0,0,0,0.8};
colorBackgroundDisabled[]={0,0.0,0};
colorBackgroundActive[]={0.15,0.35,0.55,0.7};
colorFocused[]={0.58,0.05,0,0.7};
colorShadow[]={0.023529,0,0.0313725,1};
colorBorder[]={0.023529,0,0.0313725,1};
soundEnter[]={"\A3\ui_f\data\sound\RscButtonMenu\soundEnter",0.09,1};
soundPush[]={"\A3\ui_f\data\sound\RscButtonMenu\soundPush",0.09,1};
soundClick[]={"\A3\ui_f\data\sound\RscButtonMenu\soundClick",0.09,1};
soundEscape[]={"\A3\ui_f\data\sound\RscButtonMenu\soundEscape",0.09,1};
shadow=0;
font="PuristaMedium";
sizeEx=0.02921;
offsetX=0.003;
offsetY=0.003;
offsetPressedX=0.002;
offsetPressedY=0.002;
borderSize=0;
};
class RscHTML_infiSTAR {
colorText[]={1,1,1,1};
colorBold[]={1,1,1,0.75};
colorLink[]={"63/255","212/255","252/255",1};
colorLinkActive[]={"63/255","212/255","252/255",0.75};
colorBackground[]={0,0,0,0};
colorPicture[]={1,1,1,1};
colorPictureBorder[]={0,0,0,0};
colorPictureLink[]={1,1,1,1};
colorPictureSelected[]={1,1,1,1};
hppversion=3;
filename="";
sizeEx=0.03921;
type=9;
style=0;
prevPage="\ca\ui\data\arrow_left_ca.paa";
nextPage="\ca\ui\data\arrow_right_ca.paa";
shadow=2;
class def {
font="PuristaMedium";
fontBold="PuristaBold";
align="left";
};
class H1:def {
sizeEx="38 * pixelH";
};
class H2:def {
sizeEx="32 * pixelH";
};
class H3:def {
sizeEx="26 * pixelH";
};
class H4:def {
sizeEx="20 * pixelH";
};
class H5:def {
sizeEx="17 * pixelH";
};
class H6:def {
sizeEx="15 * pixelH";
};
class P:def {
sizeEx="18 * pixelH";
};
};
class RscEdit_infiSTAR_multi:RscEdit_infiSTAR {
idc=1339;
x=0.1 * safezoneW + safezoneX;
y=0.038 * safezoneH + safezoneY;
w=0.658333 * safezoneW;
h=(0.143 * safezoneH)*3;
font="EtelkaMonospacePro";
colorText[]={0.95,0.95,0.95,1};
style=16;
sizeEx="0.65 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
show=1;
};
class RscEdit_infiSTAR_ss:RscEdit_infiSTAR {
x=0;
y=(safeZoneY + 0.01)+1;
w=1;
h=0.05;
idc=1380;
font="EtelkaMonospacePro";
colorText[]={0.95,0.95,0.95,1};
sizeEx="0.65 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
show=1;
autocomplete="scripting";
};
class infiSTAR_EDITBOX
{
idd=-1341;
movingenable=true;
class controls
{
class RscEditMultiSTAR:RscEdit_infiSTAR_multi
{
idc=1336;
x=0.25;
y=0.25;
w=0.5;
h=0.5;
};
};
};
class infiSTAR_EDITBOX2
{
idd=-1341;
movingenable=true;
class controls
{
class RscEditMultiSTAR:RscEdit_infiSTAR_multi{autocomplete="scripting";};
class RscEditSingle1STAR:RscEdit_infiSTAR_ss{idc=1380;};
class RscEditSingle2STAR:RscEdit_infiSTAR_ss{idc=1381;};
class RscEditSingle3STAR:RscEdit_infiSTAR_ss{idc=1382;};
class RscEditSingle4STAR:RscEdit_infiSTAR_ss{idc=1383;};
class infi_LIST1384:RscListBox_infiSTAR{idc=1384;x=-0.25;y=0.2;w=0.25;h=0.9;sizeEx=0.027;};
};
};
class infiSTAR_CHAT
{
idd=-1340;
movingenable=false;
onKeyDown="call fnc_chat_onKeyDown;";
class controls
{
class RscListbox_1500:RscListBox_infiSTAR
{
idc = 1500;
x = 0.133846 * safezoneW + safezoneX;
y = 0.0929318 * safezoneH + safezoneY;
w = 0.165027 * safezoneW;
h = 0.792133 * safezoneH;
onLoad="uiNamespace setVariable ['chat_playerlist', _this select 0];call fnc_fill_chat_playerlist;(_this select 0) lbSetCurSel 0;";
onLBSelChanged="call fnc_chat_onLBSelChanged;";
};
class RscListbox_1501:RscListBox_infiSTAR
{
idc = 1501;
x = 0.298873 * safezoneW + safezoneX;
y = 0.0929318 * safezoneH + safezoneY;
w = 0.505396 * safezoneW;
h = 0.71512 * safezoneH;
sizeEx=0.03;
onLoad="uiNamespace setVariable ['chat_msgbox', _this select 0];call fnc_fill_chat_history;";
};
class RscEdit_1401:RscEdit_infiSTAR_multi
{
idc = 1401;
x = 0.298873 * safezoneW + safezoneX;
y = 0.808052 * safezoneH + safezoneY;
w = 0.505396 * safezoneW;
h = 0.0770129 * safezoneH;
onLoad="uiNamespace setVariable ['chat_inputfield', _this select 0];";
};
class RscButton_1600:RscButton_infiSTAR
{
idc = 1600;
text = "close";
x = 0.752698 * safezoneW + safezoneX;
y = 0.885064 * safezoneH + safezoneY;
w = 0.051571 * safezoneW;
h = 0.0330055 * safezoneH;
action = "(findDisplay -1340) closeDisplay 0;";
};
class RscButton_1601:RscButton_infiSTAR
{
idc = 1601;
text = "send";
x = (0.752698 * safezoneW + safezoneX)-((0.051571 * safezoneW)*1.1);
y = 0.885064 * safezoneH + safezoneY;
w = 0.051571 * safezoneW;
h = 0.0330055 * safezoneH;
action = "call fnc_chat_send;";
};
class RscButton_1602:RscButton_infiSTAR
{
idc = 1602;
text = "refresh list";
x = 0.133846 * safezoneW + safezoneX;
y = 0.885064 * safezoneH + safezoneY;
w = 0.051571 * safezoneW;
h = 0.0330055 * safezoneH;
action = "call fnc_fill_chat_playerlist;";
};
class RscText_1000:RscText_infiSTAR
{
idc = 1000;
x = 0.133846 * safezoneW + safezoneX;
y = 0.0599262 * safezoneH + safezoneY;
w = 0.670423 * safezoneW;
h = 0.0330055 * safezoneH;
colorText[]={1,1,1,0.9};
colorBackground[]={0,0,0,0.6};
text = "Chatpartner";
onLoad="uiNamespace setVariable ['chat_text1', _this select 0];";
};
};
};
class infiSTAR_AdminMenu
{
idd=-1338;
movingenable=false;
controls[]=
{
infi_TXT2,
infi_BTN10,
infi_BTN11,
infi_BTN12,
infi_LIST1500,
infi_LIST1501,
infi_BTN20,
infi_BTN21,
infi_BTN23,
infi_BTN24,
infi_BTN25,
infi_EDIT1,
infi_EDIT2,
infi_BTN36,
infi_BTN37,
infi_BTN38,
infi_HTML_1
};
class infi_LIST1500:RscListBox_infiSTAR
{
idc=1500;
x=4.99852e-005 * safezoneW + safezoneX;
y=0.0617197 * safezoneH + safezoneY;
w=0.189063 * safezoneW;
h=0.938333 * safezoneH;
};
class infi_LIST1501:RscListBox_infiSTAR
{
idc=1501;
x=0.188975 * safezoneW + safezoneX;
y=0.0617197 * safezoneH + safezoneY;
w=0.344271 * safezoneW;
h=0.945999 * safezoneH;
};
class infi_EDIT1:RscEdit_infiSTAR
{
idc=100;
text="";
x=0.1964 * safezoneW + safezoneX;
y=0.125933 * safezoneH + safezoneY;
w=0.326563 * safezoneW;
h=0.044 * safezoneH;
};
class infi_EDIT2:RscEdit_infiSTAR_multi
{
idc=103;
show=0;
};
class infi_TXT2:RscText_infiSTAR
{
idc=2;
text="infiSTAR.de";
x=-5.31323e-005 * safezoneW + safezoneX;
y=-7.50085e-005 * safezoneH + safezoneY;
w=1 * safezoneW;
h=0.0341667 * safezoneH;
colorText[]={1,1,1,0.9};
colorBackground[]={0.56,0.04,0.04,1};
};
class infi_HTML_1:RscHTML_infiSTAR
{
idc=1;
x=0.535 * safezoneW + safezoneX;
y=0.06 * safezoneH + safezoneY;
w=0.40 * safezoneW;
h=0.35 * safezoneH;
onLoad="uiNamespace setVariable ['RscHTML_infiSTAR_Admin', _this select 0]";
onUnload="uiNamespace setVariable ['RscHTML_infiSTAR_Admin', displayNull]";
};
class infi_BTN10:RscButton_infiSTAR
{
idc=10;
text="Alphabet";
x=0.005 + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.06 * safezoneW;
h=0.02 * safezoneH;
action="SortRangePlease=nil;SortAlphaPlease=true;SortGroupsPlease=nil;[] call fnc_fill_infiSTAR_Player;[] call fnc_setFocus;";
};
class infi_BTN11:RscButton_infiSTAR
{
idc=11;
text="Groups";
x=0.01 + safezoneX + (0.06 * safezoneW);
y=0.0379694 * safezoneH + safezoneY;
w=0.06 * safezoneW;
h=0.02 * safezoneH;
action="SortAlphaPlease=nil;SortRangePlease=nil;SortGroupsPlease=true;[] call fnc_fill_infiSTAR_Player;[] call fnc_setFocus;";
};
class infi_BTN12:RscButton_infiSTAR
{
idc=12;
text="Range";
x=0.015 + safezoneX + (0.06 * safezoneW)*2;
y=0.0379694 * safezoneH + safezoneY;
w=0.06 * safezoneW;
h=0.02 * safezoneH;
action="SortAlphaPlease=nil;SortRangePlease=true;SortGroupsPlease=nil;[] call fnc_fill_infiSTAR_Player;[] call fnc_setFocus;";
};
class infi_BTN20:RscButton_infiSTAR
{
idc=20;
default="true";
text="MainMenu";
x=0.202072 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN21:RscButton_infiSTAR
{
idc=21;
text="SpawnMenu";
x=0.287975 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN23:RscButton_infiSTAR
{
idc=23;
text="AHLog";
x=0.373981 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN24:RscButton_infiSTAR
{
idc=24;
text="AdminLog";
x=0.459884 * safezoneW + safezoneX;
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
};
class infi_BTN25:RscButton_infiSTAR
{
idc=25;
x=0.535 * safezoneW + safezoneX + (0.15 * safezoneW);
y=0.0379694 * safezoneH + safezoneY;
w=0.0625001 * safezoneW;
h=0.02 * safezoneH;
action="call fnc_btn_html";
};
class infi_BTN36:RscButton_infiSTAR
{
idc=36;
text="Items";
x=0.219294 * safezoneW + safezoneX;
y=0.0819514 * safezoneH + safezoneY;
w=0.0916667 * safezoneW;
h=0.0329999 * safezoneH;
};
class infi_BTN37:RscButton_infiSTAR
{
idc=37;
text="Vehicles";
x=0.316644 * safezoneW + safezoneX;
y=0.0819514 * safezoneH + safezoneY;
w=0.0916667 * safezoneW;
h=0.0329999 * safezoneH;
};
class infi_BTN38:RscButton_infiSTAR
{
idc=38;
text="Trader";
x=0.414097 * safezoneW + safezoneX;
y=0.0819514 * safezoneH + safezoneY;
w=0.0916667 * safezoneW;
h=0.0329999 * safezoneH;
};
};
class CfgCommands
{
allowedHTMLLoadURIs[]={"http://*"};
};if (!isServer) exitWith {};
{
(uniformContainer _x) additemcargoGlobal ["ACE_quikclot", 4];
(uniformContainer _x) additemcargoGlobal ["ACE_fieldDressing", 3];
(uniformContainer _x) additemcargoGlobal ["ACE_elasticBandage", 3];
(uniformContainer _x) additemcargoGlobal ["ACE_packingBandage", 3];
(uniformContainer _x) additemcargoGlobal ["ACE_morphine", 2];
(uniformContainer _x) additemcargoGlobal ["ACE_tourniquet",1];
(uniformContainer _x) additemcargoGlobal ["ACE_EarPlugs",1];
if (_x == (leader group _x)) then {(uniformContainer _x) additemcargoGlobal ["ACE_MapTools", 1];};
if (_x getVariable "ACEMED" > 0) then {
clearItemCargoGlobal (backpackContainer _x);
clearMagazineCargoGlobal (backpackContainer _x);
clearWeaponCargoGlobal (backpackContainer _x);
(backpackContainer _x) additemcargoGlobal ["ACE_fieldDressing",5];
(backpackContainer _x) additemcargoGlobal ["ACE_elasticBandage",5];
(backpackContainer _x) additemcargoGlobal ["ACE_packingBandage",5];
(backpackContainer _x) additemcargoGlobal ["ACE_quikclot",6];
(backpackContainer _x) additemcargoGlobal ["ACE_epinephrine",5];
(backpackContainer _x) additemcargoGlobal ["ACE_morphine",5];
(backpackContainer _x) additemcargoGlobal ["ACE_salineIV_250",5];
(backpackContainer _x) additemcargoGlobal ["ACE_tourniquet",4];
(backpackContainer _x) additemcargoGlobal ["ACE_surgicalKit",1];
(backpackContainer _x) additemcargoGlobal ["ACE_personalAidKit",4];
};
} forEach playableUnits;if (!isServer) exitWith {};
_u = _this select 0;
_u setVariable ["ACEMED", 1, true];// by ALIAS
private ["_source","_radius_curr"];
_source = _this select 0;
_radius_curr = _this select 1;
_burn = [false,true] call BIS_fnc_selectRandom;
_radius_curr = _source getVariable "sync_radius";
if (_burn) then
{
_burned_land = "Crater" createVehiclelocal [0,0,0];
_burned_land setdir (random 360);
_pos_brun = _source getPos [random _radius_curr/2,random 360];
_burned_land setpos _pos_brun;
_burned_land enableSimulation false;
};
/*
_burned_ground = "#particlesource" createVehicleLocal (getPosATL wildfire);
_burned_ground setParticleCircle [0,[0,0,0]];
_burned_ground setParticleRandom [0,[0,0,0],[0,0,0],0,0,[0,0,0,0],0,0];
_burned_ground setParticleParams [["\A3\data_f\Krater",1,0,1,0],"","SpaceObject",1,200,[0,0,0],[0,0,0],0,1,0,0,[10],[[1,1,1,1]],[0],0,0,"","",wildfire,0,true];
_burned_ground setDropInterval 300;// by ALIAS
private ["_source","_diameter","_life_time","_sleep_int"];
_source = _this select 0;
_diameter = _this select 1;
_life_time = _this select 2;
_hide_destr_veg = _this select 3;
_obj_x = nearestTerrainObjects [position _source,list_vegetation,5+_diameter/2,false];
_hide_veg = _obj_x;
if (count _obj_x >0) then
{
_sleep_int = _life_time/(count _obj_x);
while {(count _obj_x > 0) and (_source getVariable "on_alias_fire")} do
{
_jeton = _obj_x call BIS_fnc_selectRandom;
_jeton setDamage [1,false]; _jeton enableSimulation false;
_obj_x = _obj_x - [_jeton];
sleep _sleep_int-random(_sleep_int/2);
};
};
if (_hide_destr_veg) then
{
if (count _hide_veg >0) then
{
{_x hideObjectGlobal true; sleep _sleep_int-random(_sleep_int/2)} foreach _hide_veg
};
};// by ALIAS
private ["_blow_source","_fire_press","_life_time"];
if (!isServer) exitWith {};
_blow_source = _this select 0;
_fire_press = _this select 1;
_life_time = _this select 2;
_inflict_damage = _this select 3;
_kill_source_end= _this select 4;
if (!isNil {_blow_source getVariable "on_alias_fire"}) exitWith {};
_blow_source setVariable ["on_alias_fire",true,true];
waitUntil {!isNil "allPlayers_on"};
[_life_time,_blow_source,_kill_source_end] spawn
{
_life_dur = _this select 0;
_source_det = _this select 1;
_kill_source_end = _this select 2;
sleep _life_dur;
_source_det setVariable ["on_alias_fire",nil,true];
sleep 0.5;
if (_kill_source_end) then {_blow_source setDamage 1};
};
[[_blow_source,_fire_press,_life_time],"AL_fire\al_small_fire_sfx.sqf"] remoteExec ["execvm",0,true];
if (_inflict_damage) then
{
while {_blow_source getVariable "on_alias_fire"} do
{
_near_foc_footmobil = _blow_source nearEntities [list_man,5];
if (count _near_foc_footmobil >0) then
{
{
if !(_x in allPlayers_on) then
{
if (_x distance _blow_source < 2) then
{
if (isNil{_x getVariable "killed_by_fire"}) then
{
_rnd_lf = 10+(random 20);
[_x,_rnd_lf,_rnd_lf-1] execVM "AL_fire\al_unit_fire.sqf"
};
}
else
{
_x setBehaviour "AWARE"; _x enableFatigue false; _x forcespeed 10;_x setUnitPos "UP"; _x setSkill ["commanding", 1];[_x] joinSilent grpNull;
_reldir = _x getDir _blow_source;
_fct = [1,-1] call BIS_fnc_selectRandom;
_avoid_fire = _blow_source getPos [5+random 5,(_reldir + 140 + (random 40)*_fct)];
_x doMove _avoid_fire;
}
}
} foreach _near_foc_footmobil
};
sleep 3;
};
};// by ALIAS
private ["_blow_source","_dir_blast","_press_implicit_x","_press_implicit_y","_blast_blow","_li_exp","_burst","_z_speed"];
if (!hasInterface) exitWith {};
_blow_source = _this select 0;
_blast_blow = _this select 1;
_life_time = _this select 2;
if (isNil{_blow_source getVariable "on_alias_fire"}) exitWith {};
_dir_blast = getdir _blow_source;
if (_blast_blow == 0) then {_z_speed=3} else {_z_speed=0};
_flow = (getposasl _blow_source vectorFromTo (_blow_source getRelPos [10,0])) vectorMultiply _blast_blow;
_li_exp = "#lightpoint" createVehicle getPosATL _blow_source;
_li_exp lightAttachObject [_blow_source, [0,0,0.5]];
_li_exp setLightAttenuation [0,0,0,0,1,100];
_li_exp setLightBrightness 5;
_li_exp setLightDayLight true;
_li_exp setLightAmbient[1,0.2,0.1];
_li_exp setLightColor[1,0.2,0.1];
[_li_exp] spawn {
_lit = _this select 0;
sleep 0.5;
_lit setLightBrightness 10;
while {alive _lit} do
{
_lit setLightBrightness 3+(random 1);
_lit setLightAttenuation [0,0,100,0,1,98+(random 2)];
sleep 0.05+(random 0.1);
};
};
_flame_heat = "#particlesource" createVehicleLocal (getposATL _blow_source);
_flame_heat setParticleCircle [0,[0,0,0]];
_flame_heat setParticleRandom [0.1,[0,0,0],[0,0,0],8,0.1,[0,0,0,0.1],1,0];
_flame_heat setParticleParams [["\A3\data_f\ParticleEffects\Universal\Refract.p3d", 1, 0, 1], "", "Billboard", 1,1,[0,0,0],[0,0,0.5],15,10.05,7.9,0.1,[1,1,1],[[1,1,1,0],[1,1,1,1],[1,1,1,0]],[0.08],1,0,"","",_blow_source];
_flame_heat setDropInterval 0.1;
_flames_1 = "#particlesource" createVehicleLocal (getpos _blow_source);
_flames_1 setParticleCircle [0,[0,0,0]];
_flames_1 setParticleRandom [0.5,[0.3,0.3,0],[0,0,0],2,0.5,[0,0,0,0.1],0,0];
_flames_1 setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal.p3d",16,1,16,0],"","Billboard",1,2,[0,0,0],[_blast_blow*(_flow select 0),_blast_blow*(_flow select 1),_z_speed],15,7.5,7.9,0.5,[1,1,1],[[1,1,1,1],[1,1,1,1],[1,1,1,1]],[2],0,0,"","",_blow_source];
_flames_1 setDropInterval 0.05;
_sparks = "#particlesource" createVehicleLocal (getpos _blow_source);
_sparks setParticleCircle [0,[0,0,0]];
_sparks setParticleRandom [0.5,[0.5,0.5,0.5],[0,0,0],10,0.1,[0,0,0,0.1],1,0.5];
_sparks setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",16,15,16,1],"","Billboard",1,1.5,[0,0,0],[_blast_blow*(_flow select 0),_blast_blow*(_flow select 1),_z_speed],15,9,8,0.1,[0.1,0.1,0.05],[[1,1,1,1],[1,1,1,1],[1,1,1,1]],[1],1,0.5,"","",_blow_source];
_sparks setDropInterval 0.1;
_fum = "#particlesource" createVehicleLocal (getpos _blow_source);
_fum setParticleCircle [0,[0,0,0]];
_fum setParticleRandom [1,[0.5,0.5,0.5],[0,0,0],10,0.5,[0,0,0,0.1],1,0];
_fum setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1],"","Billboard",1,5,[0,0,0],[_blast_blow*(_flow select 0),_blast_blow*(_flow select 1),_z_speed],15,9.5,7.9,0.1,[1.5,3,5],[[0.5,0.2,0.2,0.5],[0,0,0,0.5],[1,1,1,0]],[0.5],1,0,"","",_blow_source];
_fum setDropInterval 0.1;
while {_blow_source getVariable "on_alias_fire"} do
{
if (player distance _blow_source < 2) then {player setVariable ["set_on_fire",true,true]};
_blow_source say3d ["furnal",200]; sleep 3.5
};
sleep _life_time;
deleteVehicle _li_exp;
sleep 0.5;
deleteVehicle _flame_heat;
sleep 1;
deleteVehicle _flames_1;
deleteVehicle _sparks;
sleep 0.5;
deleteVehicle _fum;// by ALIAS
//null=[unit_source,life_time,_kill_time] execVM "AL_fire\al_unit_fire.sqf";
_unit_surs = _this select 0;
_life_time = _this select 1;
_kill_time = _this select 2;
_unit_surs setVariable ["killed_by_fire",false,true];
if (_kill_time>_life_time) exitWith {hint "The fire's lifetime must be longer than killtime"};
removeAllWeapons _unit_surs;
[_unit_surs, "NoVoice"] remoteExec ["setSpeaker",0];_unit_surs setBehaviour "AWARE"; _unit_surs enableFatigue false; _unit_surs forcespeed 10;_unit_surs setUnitPos "UP"; _unit_surs setSkill ["commanding", 1];[_unit_surs] joinSilent grpNull;
_unit_surs setAnimSpeedCoef 1.1;
[_unit_surs,_kill_time] spawn {
_unit_surs = _this select 0;
_kill_time = _this select 1;
sleep _kill_time;
_unit_surs setVariable ["killed_by_fire",true,true];
};
[[_unit_surs,_life_time],"AL_fire\al_unit_fire_sfx.sqf"] remoteExec ["execvm"];
[_unit_surs,["01",200]] remoteExec ["say3d"];
sleep 1;
_tip_prec="";
_avoid_fire = [getpos _unit_surs,200+random 200,random 360] call BIS_fnc_relPos;
_unit_surs doMove _avoid_fire;
waitUntil {_unit_surs getVariable "killed_by_fire"};
[_unit_surs,["05",200]] remoteExec ["say3d"];
sleep 0.7 + random 0.5;
_unit_surs setDamage 1;// by Linza & ALIAS
// deletevehicle wildfire; car_4 setdamage 0.9
//null=[unit_source,life_time,_kill_time] execVM "AL_fire\al_unit_fire.sqf";
private ["_unit_surs","_life_time","_avoid_fire","_rnd","_tip"];
_unit_surs = _this select 0;
_life_time = _this select 1;
_kill_time = _this select 2;
_unit_afect = _this select 3;
removeAllWeapons _unit_surs;
[_unit_surs, "NoVoice"] remoteExec ["setSpeaker",0];
_unit_surs setBehaviour "AWARE"; _unit_surs enableFatigue false; _unit_surs forcespeed 10;_unit_surs setUnitPos "UP"; _unit_surs setSkill ["commanding", 1];[_unit_surs] joinSilent grpNull;
_unit_surs setAnimSpeedCoef 1.1;
_avoid_fire = [getpos _unit_surs,200+random 200,random 360] call BIS_fnc_relPos;_unit_surs doMove _avoid_fire;
_rnd = 3+random 10;
if (_rnd>5) then
{
[[_unit_surs,_life_time],"AL_fire\al_unit_fire_sfx.sqf"] remoteExec ["execvm"];
// _tip = ["01","02","03","05","04"] call BIS_fnc_selectRandom;
_tip = ["01","05"] call BIS_fnc_selectRandom;
[_unit_surs,[_tip,300]] remoteExec ["say3d"];
_tip_prec="";
sleep _life_time;
_unit_surs setDamage 1;
};// by ALIAS
fnc_unit_fire = {
private ["_spot","_fire_p","_life_time","_unit_surs"];
_spot = _this select 0;
_life_time = _this select 1;
_unit_surs = _this select 2;
_fire_p = "#particlesource" createVehicleLocal (getPosATL _spot);
_fire_p setParticleCircle [0,[0,0,0]];
_fire_p setParticleRandom [0.1,[0,0,0],[0,0,0],0.1,0.1,[0,0,0,0.1],1,0];
_fire_p setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",16,15,10,1],"","Billboard",1,0.3,[0,0,0],[0,0,0],15,7,7.9,1,[0.5,0.5,0.1],[[1,1,1,1],[1,1,1,1],[1,1,1,0]],[2],1,0,"","",_spot];
_fire_p setDropInterval 0.05;
_fum = "#particlesource" createVehicleLocal (getpos _unit_surs);
_fum setParticleCircle [0,[0,0,0]];
_fum setParticleRandom [1,[0.2,0.2,0],[0,0,0],10,0.3,[0,0,0,0.1],1,0];
_fum setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1],"","Billboard",1,0.5,[0,0,1],[0,0,0],15,8,7.9,0.1,[0.5,2,3],[[0.5,0.2,0.2,0],[0,0,0,0.5],[1,1,1,0]],[1],1,0,"","",_unit_surs];
_fum setDropInterval 0.1;
waitUntil {_unit_surs getVariable "killed_by_fire"};
_fire_p setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",16,15,16,0],"","Billboard",1,1,[0,0,0],[0,0,0],15,9,7.9,1,[0.5,0.5,0.1],[[1,1,1,1],[1,1,1,1],[1,1,1,0]],[1],1,0,"","",_spot];
_fire_p setDropInterval 0.1;
_fum setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1],"","Billboard",1,3,[0,0,0],[0,0,0],0,10,7.9,0,[1,2,3],[[0.5,0.2,0.2,0],[0,0,0,0.5],[1,1,1,0]],[0.5],0,0,"","",_unit_surs];
_fum setDropInterval 0.5;
sleep _life_time;
deleteVehicle _fum;
};
if (!hasInterface) exitwith {};
_unit_surs = _this select 0;
_life_time = _this select 1;
_pct_unit = ["leftfoot","rightfoot","leftforearmroll","rightshoulder"];
_part_fire = "Land_HelipadEmpty_F" createVehiclelocal [0,0,0];
_part_fire attachTo [_unit_surs, [0,0,0],"pelvis"];
_fire_obj_unit = [_part_fire];
{
_onf = random 10;
if (_onf>5) then
{
_part_fire = "Land_HelipadEmpty_F" createVehiclelocal [0,0,0];
_part_fire attachTo [_unit_surs, [0,0,0],_x];
_fire_obj_unit pushBack _part_fire;
};
} forEach _pct_unit;
{[_x,_life_time,_unit_surs] spawn fnc_unit_fire} foreach _fire_obj_unit;
_li_fire = "#lightpoint" createVehicle getPosATL _unit_surs;
_li_fire lightAttachObject [_unit_surs, [0,0,1]];
_li_fire setLightAttenuation [/*start*/ 0,/*constant*/0,/*linear*/0,/*quadratic*/0,/*hardlimitstart*/0.1,10];
_li_fire setLightBrightness 1;
_li_fire setLightDayLight true;
_li_fire setLightAmbient[1,0.2,0.1];
_li_fire setLightColor[1,0.2,0.1];
[_li_fire] spawn {
_lit = _this select 0;
sleep 0.5;
_lit setLightBrightness 10;
while {alive _lit} do
{
_lit setLightBrightness 0.1+(random 0.9);
_lit setLightAttenuation [0,0,100,0,0.1,5+(random 5)];
sleep 0.05+(random 0.1);
};
};
[_fire_obj_unit select 0] spawn
{
private ["_voce"];
_voce = _this select 0;
while {alive _voce} do
{
[_voce,["unit_fire",100]] remoteExec ["say3d"];
sleep 3.5
};
};
sleep _life_time;
{deleteVehicle _x} foreach _fire_obj_unit;
deleteVehicle _li_fire;// by ALIAS & Linza
private ["_unit_afect","_life_time","_kill_vik","_crew_fire"];
//if (!isServer) exitwith {};
_unit_afect = _this select 0;
_life_time = _this select 1;
_kill_vik = _this select 2;
_crew_fire = _this select 3;
if (!isNil {_unit_afect getVariable "on_alias_fire"}) exitWith {};
_unit_afect setVariable ["on_alias_fire",true,true];
waitUntil {!isNil "allPlayers_on"};
[[_unit_afect,_life_time,_crew_fire],"AL_fire\al_vehicle_fire_sfx.sqf"] remoteExec ["execvm"];
[_unit_afect,_life_time,_kill_vik] spawn
{
_unit_afect = _this select 0;
_life_time = _this select 1;
_kill_vik = _this select 2;
sleep _life_time;
sleep 0.5;
if (_kill_vik) then {_unit_afect setDamage [1,true]}
};
if ((_crew_fire)and(_kill_vik)) then
{
_pasageri = fullCrew _unit_afect;
if (count _pasageri > 0) then
{
{
if (isPlayer (_x select 0)) then {(_x select 0) setVariable ["set_on_fire",true,true]} else {_life_time= 5+random 10;[_x select 0,_life_time,15,_unit_afect] execvm "AL_fire\al_unit_fire_car.sqf"}
} forEach _pasageri
};
};// by ALIAS
private ["_unit_afect","_life_time","_kill_vik"];
if (!hasInterface) exitWith {};
_unit_afect = _this select 0;
_life_time = _this select 1;
_not_move = _this select 2;
if (!alive _unit_afect) exitWith {};
_bbr = boundingBoxReal vehicle _unit_afect;
_p1 = _bbr select 0;
_p2 = _bbr select 1;
_maxWidth = abs ((_p2 select 0) - (_p1 select 0));
_maxLength = abs ((_p2 select 1) - (_p1 select 1));
_maxHeight = abs ((_p2 select 2) - (_p1 select 2));
_li_exp = "#lightpoint" createVehicle getPosATL _unit_afect;
_li_exp lightAttachObject [_unit_afect, [0,0,2]];
_li_exp setLightAttenuation [0,0,0,0,1,100];
_li_exp setLightBrightness 5;
_li_exp setLightDayLight true;
_li_exp setLightAmbient[1,0.3,0.1];
_li_exp setLightColor[1,0.3,0.1];
_source01 = "#particlesource" createVehicleLocal getpos _unit_afect;
_source01 setParticleClass "ObjectDestructionFire1Smallx";
_source01 attachto [_unit_afect,[0,0,0.5]];
_unit_afect say3D ["foc_initial_2",500];
_flame_heat = "#particlesource" createVehicleLocal (getposATL _unit_afect);
_flame_heat setParticleCircle [0,[0,0,0]];
_flame_heat setParticleRandom [0.1,[_maxWidth/6,_maxWidth/6,0],[0,0,0],8,0.1,[0,0,0,0.1],1,0];
_flame_heat setParticleParams [["\A3\data_f\ParticleEffects\Universal\Refract.p3d", 1, 0, 1], "", "Billboard", 1,1,[0,1,-1],[0,0,0.5],15,10.05,7.9,0.1,[1,1,0.1],[[1,1,1,0],[1,1,1,1],[1,1,1,0]],[0.08],1,0,"","",_unit_afect];
_flame_heat setDropInterval 0.1;
[_flame_heat,_life_time] spawn {_de_sters = _this select 0; _life_time = _this select 1; sleep _life_time;deleteVehicle _de_sters};
_flames_1 = "#particlesource" createVehicleLocal (getpos _unit_afect);
_flames_1 attachTo [_unit_afect, [0,0,-1],"camo1"];
_flames_1 setParticleCircle [0,[0,0,0]];
_flames_1 setParticleRandom [0.5,[_maxWidth/7,_maxWidth/7,0],[0,0,0],2,0.1,[0,0,0,0.1],0,0];
_flames_1 setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal.p3d",16,1,16,0],"","Billboard",1,2,[0,1,-1],[0,0,0],15,8,7.9,0.5,[1,0.5,0.2],[[1,1,1,0.5],[1,1,1,1],[1,1,1,1]],[1],0,0,"","",_unit_afect];
_flames_1 setDropInterval 0.05;
[_flames_1,_life_time] spawn {_de_sters = _this select 0; _life_time = _this select 1; sleep _life_time;deleteVehicle _de_sters};
_fum = "#particlesource" createVehicleLocal (getPos _unit_afect);
_fum setParticleCircle [0,[0,0,0]];
_fum setParticleRandom [0.2,[_maxWidth/3,_maxWidth/3,0.5],[0,0,0.5],0,0.02,[0,0,0,1],1,0];
_fum setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1],"","Billboard",1,7,[0,1,-1.5],[0,0,1],15,10,7.9,0.1,[2,3,5],[[0.5,0.2,0.2,0],[0,0,0,0.5],[1,1,1,0]],[1],1,0,"","",_unit_afect];
_fum setDropInterval 0.1;
[_fum,_life_time] spawn {_de_sters = _this select 0; _life_time = _this select 1; sleep _life_time;deleteVehicle _de_sters};
_sparks = "#particlesource" createVehicleLocal (getpos _unit_afect);
_sparks setParticleCircle [0,[0,0,0]];
_sparks setParticleRandom [0.5,[0.5,0.5,0.5],[0,0,0],10,0.01,[0,0,0,0.1],1,0.5];
_sparks setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",16,15,16,1],"","Billboard",1,1,[0,1,0],[0,0,2],15,9,8,0.1,[0.05,0.05,0.01],[[1,1,1,1],[1,1,1,1],[1,1,1,1]],[1],1,0.5,"","",_unit_afect];
_sparks setDropInterval 0.1;
sleep 0.5;
deleteVehicle _source01;
[_li_exp] spawn {
_lit = _this select 0;
sleep 0.5;
_lit setLightBrightness 10;
while {alive _lit} do
{
_lit setLightBrightness 3+(random 1);
_lit setLightAttenuation [random 1,0,100,0,1,98+(random 2)];
sleep 0.05+(random 0.1);
};
};
[_li_exp] spawn {_unit_afect=_this select 0; while {alive _unit_afect} do {_unit_afect say3d ["furnal",400]; sleep 3.5}};
deleteVehicle _flame_heat;
deleteVehicle _flames_1;
deleteVehicle _fum;
deleteVehicle _li_exp;
deleteVehicle _sparks;// by ALIAS
//null=[wildfire,200,120,0.1,-1,false,true] execVM "AL_fire\al_wild_fire.sqf";
private ["_op_dir","_diameter","_life_time"];
if (!isServer) exitwith {};
_source = _this select 0;
_diameter = _this select 1;
_life_time = _this select 2;
_spreading = _this select 3;
_craters = _this select 4;
_hide_destr_veg = _this select 5;
_building_damage = _this select 6;
if (!isNil {_source getVariable "on_alias_fire"}) exitWith {};
_source setVariable ["on_alias_fire",true,true];
_source setVariable ["spreading",true,true];
waitUntil {!isNil "allPlayers_on"};
[_life_time,_source] spawn
{
_life_dur = _this select 0;
_source_det = _this select 1;
sleep _life_dur;
_source_det setVariable ["on_alias_fire",nil,true];
_source_det setVariable ["spreading",nil,true];
};
if (_spreading>_diameter) then
{
_increase_ratio = floor((_spreading-_diameter)/_life_time)+1;
_curr_radius = _diameter/2;
_source setVariable ["sync_radius",_curr_radius,true];
[[_source,_diameter,_life_time,_spreading,_craters],"AL_fire\al_wild_fire_sfx.sqf"] remoteExec ["execvm",0,true];
while {_source getVariable "on_alias_fire"} do
{
_buildings_fly = nearestObjects [position _source,buildings_list,_curr_radius-10,false];
_buildings_fly = _buildings_fly - [_source];
if (count _buildings_fly >0) then {{if (isNil{_x getVariable "burned_already"}) then {_x setVariable ["burned_already",true]; _x setDamage [(_building_damage+getDammage _x),false]}} foreach _buildings_fly};
_lamps = nearestObjects [position _source,street_lapms,5+_curr_radius,false];
_lamps = _lamps - [_source];
if (count _lamps >0) then {{if (alive _x) then {_x setDamage [1,false]}} foreach _lamps};
_vik_fly = nearestObjects [position _source,vik_list,_curr_radius-10,false];
_vik_fly = _vik_fly - [_source];
if (count _vik_fly >0) then {{if (alive _x) then {_x setDamage [1,false]}}foreach _vik_fly};
_obj_x = nearestTerrainObjects [position _source,list_vegetation,_curr_radius-10,false];
{if (alive _x) then {_x setDamage [1,false]; _x enableSimulation false;if (_hide_destr_veg) then {_x hideObjectGlobal true}}} foreach _obj_x;
_near_foc_footmobil = _source nearEntities [list_man,_diameter*3];
if (count _near_foc_footmobil >0) then
{
{
if !(_x in allPlayers_on) then
{
if (_x distance _source < _curr_radius) then
{
if (isNil{_x getVariable "killed_by_fire"}) then
{
_rnd_lf = 10+(random 20);
[_x,_rnd_lf,_rnd_lf-2] execVM "AL_fire\al_unit_fire.sqf"
};
}
else
{
_x setBehaviour "AWARE"; _x enableFatigue false; _x forcespeed 10;_x setUnitPos "UP"; _x setSkill ["commanding", 1];[_x] joinSilent grpNull;
_reldir = _x getDir _source;
_fct = [1,-1] call BIS_fnc_selectRandom;
_avoid_fire = _source getPos [200+random 200,(_reldir + 140 + (random 40)*_fct)];
_x doMove _avoid_fire;
}
}
} foreach _near_foc_footmobil
};
_source setVariable ["sync_radius",_curr_radius,true];
sleep 10;
_curr_radius = _curr_radius+_increase_ratio;
};
sleep 5;
_source setVariable ["sync_radius",nil,true];
} else {
_source setVariable ["sync_radius",_diameter/2,true];
[[_source,_diameter,_life_time,_spreading,_craters],"AL_fire\al_wild_fire_sfx.sqf"] remoteExec ["execvm",0,true];
[_source,_diameter,_life_time,_hide_destr_veg] execvm "AL_fire\al_damage_fire.sqf";
_lamps = nearestObjects [position _source,street_lapms,5+_diameter/2,false];
_lamps = _lamps - [_source];
if (count _lamps >0) then {{_x setDamage [1,false]} foreach _lamps};
while {(_source getVariable "on_alias_fire")&&(alive _source)} do
{
_buildings_fly = nearestObjects [position _source,buildings_list,5+_diameter/2,false];
_buildings_fly = _buildings_fly - [_source];
if (count _buildings_fly >0) then {_bld_rnd = _buildings_fly call BIS_fnc_selectRandom; _bld_rnd setDamage [(_building_damage+getDammage _bld_rnd),false]};
_near_foc_footmobil = _source nearEntities [list_man,_diameter*3];
_vik_fly = nearestObjects [position _source,vik_list,5+_diameter/2,false];
_vik_fly = _vik_fly - [_source];
if (count _vik_fly >0) then
{
{if (alive _x) then {_x setDamage [1,false]}}foreach _vik_fly;
};
if (count _near_foc_footmobil >0) then
{
{
if !(_x in allPlayers_on) then
{
if (_x distance _source < _diameter/2) then
{
if (isNil{_x getVariable "killed_by_fire"}) then
{
_rnd_lf = 10+(random 20);
[_x,_rnd_lf,_rnd_lf-1] execVM "AL_fire\al_unit_fire.sqf"
};
}
else
{
_x setBehaviour "AWARE"; _x enableFatigue false; _x forcespeed 10;_x setUnitPos "UP"; _x setSkill ["commanding", 1];[_x] joinSilent grpNull;
_reldir = _x getDir _source;
_fct = [1,-1] call BIS_fnc_selectRandom;
_avoid_fire = _source getPos [200+random 200,(_reldir + 140 + (random 40)*_fct)];
_x doMove _avoid_fire;
}
}
} foreach _near_foc_footmobil
};
sleep 5;
};
sleep 5;
_source setVariable ["sync_radius",nil,true];
};
/*
_fct = [30,-30] call BIS_fnc_selectRandom;
if (_reldir<180) then {_op_dir=_reldir+180+_fct} else {_op_dir=_reldir-180+_fct};
_del_grass = createVehicle["Land_ClutterCutter_large_F",position _x,[],0,"CAN_COLLIDE"];// by ALIAS
fnc_fire_SFX = {
private ["_source","_diameter"];
_source = _this select 0;
_diameter = _this select 1;
_fum_mare_drop = linearConversion [50,300,_diameter,0.2,0.1,true];
_caldura_drop = linearConversion [10,300,_diameter,1,0.5,true];
_sparks_f_drop = linearConversion [50,300,_diameter,1,0.05,true];
_flama_drop = linearConversion [5,300,_diameter,1,0.1,true];
_fum_foc_drop = linearConversion [5,300,_diameter,1,0.1,true];
_fum_mare_size_1 = linearConversion [50,300,_diameter,35,60,true];
_fum_mare_size_2 = linearConversion [50,300,_diameter,30,55,true];
_fum_mare_size_3 = linearConversion [50,300,_diameter,40,65,true];
_fum_mare_size_4 = linearConversion [50,300,_diameter,150,200,true];
_fum_size_1 = linearConversion [50,300,_diameter,20,30,true];
_fum_size_2 = linearConversion [50,300,_diameter,25,35,true];
_fum_size_3 = linearConversion [50,300,_diameter,30,50,true];
_caldura_size_1 = linearConversion [50,300,_diameter,10,20,true];
_caldura_size_2 = linearConversion [50,300,_diameter,15,30,true];
_caldura_size_3 = linearConversion [50,300,_diameter,20,40,true];
_flama_size_1 = linearConversion [10,300,_diameter,5,20,true];
_flama_size_2 = linearConversion [10,300,_diameter,5,20,true];
_flama_size_3 = linearConversion [10,300,_diameter,5,20,true];
_fum_mare = "#particlesource" createVehicleLocal (getPosATL _source);
_fum_mare setParticleCircle [_diameter/4, [5,5,0]];
_fum_mare setParticleRandom [7,[0,0,0],[-5,-5,0],11,0.2,[0,0,0,0],0.5,0];
_fum_mare setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1], "", "Billboard",1,60,[0,0,0],[5,5,11],13,9.5,7.9,0.4,[_fum_mare_size_1,_fum_mare_size_2,_fum_mare_size_3,_fum_mare_size_4],[[0,0,0,0.5],[0,0,0,0.5],[0.1,0.1,0.1,0.3],[0.5,0.5,0.5,0]],[0.5],0.5, 0, "", "", _source];
_fum_mare setDropInterval _fum_mare_drop;
_fum_foc = "#particlesource" createVehicleLocal (getPosATL _source);
_fum_foc setParticleCircle [_diameter/8, [0,0,0]];
_fum_foc setParticleRandom [0.1,[_diameter/4,_diameter/4,5],[0,0,0],11,0.1,[0,0,0,0],0,0];
_fum_foc setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1], "", "Billboard",1,35,[0,0,0],[0,0,0],7,10.05,7.9,0,[20,15,20],[[1,0.3,0.01,0],[0.5,0,0,1],[0.5,0.1,0,0]],[0.5], 1, 0, "", "", _source];
_fum_foc setDropInterval _fum_foc_drop;
// flama
_flama = "#particlesource" createVehicleLocal (getPosATL _source);
_flama setParticleCircle [_diameter/4,[0,0,0]];
_flama setParticleRandom [1,[_diameter/5.5,_diameter/5.5,0],[0,0,0],0.1,0.1,[0,0,0,0.1],1,0];
_flama setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal",16,10,32,1],"","Billboard",1,30,[0,0,0],[0,0,0],0,10.06,7.9,0,[_flama_size_1,_flama_size_2,_flama_size_3],[[1,1,1,0],[1,1,1,1],[1,1,1,0]],[0.8],0, 0, "", "", _source,0,true];
_flama setDropInterval _flama_drop;
// refrct
_caldura = "#particlesource" createVehicleLocal (getPosATL _source);
_caldura setParticleCircle [_diameter/3,[0,0,0]];
_caldura setParticleRandom [0,[0,0,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,10,[0,0,0],[0,0,0.75],30,10,7.9,0.2,[_caldura_size_1,_caldura_size_2,_caldura_size_3],[[1,1,1,0],[1,1,1,1],[1,1,1,0]],[0.08],1,0,"","",_source];
_caldura setDropInterval _caldura_drop;
// scantei
_sparks_f = "#particlesource" createVehicleLocal (getPosATL _source);
_sparks_f setParticleCircle [_diameter/2-10,[-2,-2,0]];
_sparks_f setParticleRandom [0.1,[0,0,3],[5,5,0],0.1,0.1,[0,0,0,0],1,0];
_sparks_f setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",16,2,48,0],"","Billboard",1,5,[0,0,5],[0,0,3],15,7,7.9,1,[0.5,0.5,0.1],[[1,1,1,1],[1,1,1,1],[1,1,1,0.5]],[1],1,1,"","",_source];
_sparks_f setDropInterval _sparks_f_drop;
waitUntil {isNil{_source getVariable "on_alias_fire"} or isNil{_source getVariable "spreading"} or (!alive _source)};
deleteVehicle _flama;
deleteVehicle _sparks_f;
deleteVehicle _caldura;
deleteVehicle _fum_foc;
deleteVehicle _fum_mare;
};
private ["_source","_diameter","_life_time","_spreading","_craters"];
if (!hasInterface) exitWith {};
_source = _this select 0;
_diameter = _this select 1;
_life_time = _this select 2;
_spreading = _this select 3;
_craters = _this select 4;
if (isNil {_source getVariable "on_alias_fire"}) exitWith {};
_luminafoc = "#lightpoint" createVehicleLocal (getposATL _source);
_luminafoc lightAttachObject [_source,[0,0,5]];
_luminafoc setLightAttenuation [/*start*/0.2,/*constant*/0,/*linear*/50, /*quadratic*/0, /*hardlimitstart*/_diameter/8,/* hardlimitend*/_diameter*5];
_luminafoc setLightBrightness 20;
_luminafoc setLightAmbient [1,0.1,0];
_luminafoc setLightColor [1,0.2,0];
_luminafoc setLightDayLight true;
[_luminafoc,_source,_craters] spawn {
_luminafoc_tmp = _this select 0;
_source_tmp = _this select 1;
_craters_tmp = _this select 2;
while {_source_tmp getVariable "on_alias_fire"} do
{
_radius_curr = _source_tmp getVariable "sync_radius";
_luminafoc_tmp setLightBrightness 30+(random 5);
_luminafoc_tmp setLightAttenuation [0.2,0,0,0,_radius_curr/2,_radius_curr*10];
_source_tmp say3D ["furnal",(_source_tmp getVariable "sync_radius")*20];
if (player distance _source_tmp < (_source_tmp getVariable "sync_radius")+5) then {player setVariable ["set_on_fire",true,true]};
if (_craters_tmp) then {[_source_tmp,_radius_curr] execVM "AL_fire\al_crater_fire.sqf"};
sleep 4;
};
_brit = 30;
while {_brit>0} do
{
_luminafoc_tmp setLightBrightness _brit;
_brit = _brit-0.13;
sleep 0.1;
};
deleteVehicle _luminafoc_tmp;
};
if (_spreading>_diameter) then
{
while {_source getVariable "on_alias_fire"} do
{
_source setVariable ["spreading",true,true];
_radius_curr = _source getVariable "sync_radius";
[_source,_radius_curr*2] spawn fnc_fire_SFX;
sleep 0.5;
_source setVariable ["spreading",nil,true];
sleep 0.5;
};
} else {[_source,_diameter] call fnc_fire_SFX};// by ALIAS & Linza
fnc_player_fire = {
private ["_unit","_spot","_fire_p"];
_spot = _this select 0;
_unit = _this select 1;
_fire_p = "#particlesource" createVehicleLocal (getPosATL _spot);
_fire_p setParticleCircle [0,[0,0,0]];
_fire_p setParticleRandom [0.1,[0,0,0],[0,0,0],7,0.1,[0,0,0,0.1],1,0];
_fire_p setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",16,15,16,1],"","Billboard",1,0.5,[0,0,0],[0,0,0],15,7,7.9,1,[0.5,0.5,0.1],[[1,1,1,1],[1,1,1,1],[1,1,1,0]],[1],1,0,"","",_spot];
_fire_p setDropInterval 0.1;
waitUntil {!(_unit getVariable "set_on_fire")};
deleteVehicle _fire_p;
deleteVehicle _spot;
};
fnc_player_fum = {
private ["_fum","_li_fire"];
_fum = "#particlesource" createVehicleLocal (getpos _this);
_fum setParticleRandom [1,[0.2,0.2,0],[0,0,0],10,0.5,[0,0,0,0.1],1,0];
_fum setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal_02.p3d",8,0,40,1],"","Billboard",1,3,[0,0,0],[0,0,0],15,8,7.9,0.1,[1,3,5],[[0.5,0.2,0.2,0],[0,0,0,0.5],[1,1,1,0]],[1],1,0,"","",_this];
_fum setDropInterval 0.1;
_li_fire = "#lightpoint" createVehicle getPosATL _this;
_li_fire lightAttachObject [_this, [0,0,1]];
_li_fire setLightAttenuation [0,0,0,0,0.1,10];
_li_fire setLightBrightness 1;
_li_fire setLightDayLight true;
_li_fire setLightAmbient[1,0.2,0.1];
_li_fire setLightColor[1,0.2,0.1];
[_li_fire] spawn
{
private ["_lit"];
_lit = _this select 0;
sleep 0.5;
_lit setLightBrightness 10;
while {alive _lit} do
{
_lit setLightBrightness 0.1+(random 0.9);
_lit setLightAttenuation [0,0,100,0,0.1,5+(random 5)];
sleep 0.05+(random 0.1);
};
};
waitUntil {(!alive _this) or (_this getVariable ["time_in_fire",0] > 6) or !(_this getVariable "set_on_fire")};
deleteVehicle _li_fire; deleteVehicle _fum;
if (_this isEqualTo player) then {
player setVariable ["set_on_fire",false,true];
};
};
if (!hasInterface) exitwith {};
private _fire_obj_player = [];
private "_part_fire";
{
_part_fire = "Land_HelipadEmpty_F" createVehiclelocal [0,0,0];
_part_fire attachTo [_this, [0,0,0],_x];
_fire_obj_player pushBack _part_fire;
} forEach pct_unit;
{[_x,_this] spawn fnc_player_fire} forEach _fire_obj_player;
_this spawn fnc_player_fum;// by ALIAS
// null = [] execvm "AL_napalm\alias_napalm_effect.sqf";
private ["_nap_bomb","_nap_bombix","_dir_xx","_dir_yy","_li_exp"];
if (!hasInterface) exitWith {};
_nap_bombix = _this select 0;
_dir_xx = _this select 1;
_dir_yy = _this select 2;
_nap_bomb = "Land_HelipadEmpty_F" createVehicleLocal getPosATL _nap_bombix;
[_nap_bomb] spawn {
private ["_nap_bomb"];
_nap_bomb = _this select 0;
_delay_sound = linearConversion [0,2000,player distance _nap_bomb,0,1.5,false];
_dist_pitch = linearConversion [0,2000,player distance _nap_bomb,1,0.01,true];
//if (vehicle player != player)
sleep _delay_sound;
if (isTouchingGround player) then {enableCamShake true;_power_sh = linearConversion [0,1000,player distance _nap_bomb,3,0,true];addCamShake [_power_sh,2,11]};
_nap_bomb say3d ["napalm",4000,_dist_pitch];
_eko=["eko_1","eko_3"] call BIS_fnc_selectRandom;
sleep 5+random 3;
playsound _eko;
};
// scantei
_ini_flame = "#particlesource" createVehicleLocal getPosATL _nap_bomb;
_ini_flame setParticleCircle [0,[0,0,0]];
_ini_flame setParticleRandom [0,[0,0,0],[0,0,0],0,0,[0,0,0,0],0,0];
_ini_flame setParticleParams [["\A3\data_f\ParticleEffects\Universal\Universal", 16,0,32,0],"","Billboard",1,1,[0,0,2],[0,0,0],0,10,8,0,[80],[[1,1,1,1]],[3],0,0,"","",_nap_bomb];
_ini_flame setDropInterval 100;
[_ini_flame] spawn {
_de_sters = _this select 0;
sleep 1;
deleteVehicle _de_sters;
};
// scantei
_scantei = "#particlesource" createVehicleLocal getPosATL _nap_bomb;
_scantei setParticleCircle [20,[40,40,50]];
_scantei setParticleRandom [1,[5,5,5],[30,30,20],0,0.1,[0,0,0,0.1],1,0];
_scantei setParticleParams [["\A3\data_f\cl_exp",1,0,1],"","Billboard",1,3,[0,0,5],[_dir_xx,_dir_yy,0],0,300,10,15,[1.5,0.5],[[1,1,1,1],[1,1,1,1]],[1],1,0,"","",_nap_bomb,0,false,-1,[[1,0.1,0,1]]];
_scantei setDropInterval 0.005;
[_scantei] spawn {
_de_sters = _this select 0;
sleep 0.5;
deleteVehicle _de_sters;
};
// fum alb
_wave = "#particlesource" createVehicleLocal getPosATL _nap_bomb;
_wave setParticleCircle [30,[30,30,0]];
_wave setParticleRandom [0.1,[3,3,0],[-20,-20,0],0,0.1,[0,0,0,0.1],0,0];
_wave setParticleParams [["\A3\data_f\cl_basic.p3d",1,0,1],"","Billboard",1,2,[0,0,0],[0,0,0],0,17,13,0,[15,30],[[1,1,1,0.3],[0,0,0,0]],[1],0,0,"","",_nap_bomb];
_wave setDropInterval 0.005;
[_wave] spawn {
_de_sters = _this select 0;
sleep 0.5;
deleteVehicle _de_sters;
};
// vapori
_vapori_nap = "#particlesource" createVehicleLocal getPosATL _nap_bomb;
_vapori_nap setParticleCircle [0,[0,0,0]];
_vapori_nap setParticleRandom [0,[0,0,0],[0,0,0],0,0,[0,0,0,0],0,0];
_vapori_nap setParticleParams [["\A3\data_f\cl_basic", 1, 0, 1], "", "Billboard", 1,0.6,[0,0,0],[0,0,1],0,10,8,0,[50,100,200],[[1,1,1,0.5],[1,1,1,0.3],[1,1,1,0]],[0],0,0,"","",_nap_bomb];
_vapori_nap setDropInterval 0.3;
[_vapori_nap] spawn {
_de_sters = _this select 0;
sleep 0.6;
deleteVehicle _de_sters;
};
// scantei
_foc = "#particlesource" createVehicleLocal getPosATL _nap_bomb;
_foc setParticleCircle [10,[1,1,0]];
_foc setParticleRandom [0.1,[5,5,2],[-1,-1,0],3,0.1,[0,0,0,0.1],1,0];
_foc setParticleParams [["\A3\data_f\cl_exp",1,0,1],"","Billboard",1,2,[0,0,1],[_dir_xx,_dir_yy,0],13,10.1,7,1,[20,25,30],[[1,1,1,1],[1,1,1,0.3],[1,1,1,0]],[1],1,0,"","",_nap_bomb];
_foc setDropInterval 0.1;
[_foc] spawn {
_de_sters = _this select 0;
sleep 1;
deleteVehicle _de_sters;
};
_fum_alb = "#particlesource" createVehicleLocal getPosATL _nap_bomb;
_fum_alb setParticleCircle [20,[0,0,0]];
_fum_alb setParticleRandom [0.2,[1,1,2],[0,0,1],2,0.1,[0,0,0,0.1],1,0];
_fum_alb setParticleParams [["\A3\data_f\cl_basic", 1, 0, 1], "", "Billboard", 1,7,[0,0,0],[_dir_xx,_dir_yy,3],5,10,7.9,0.1,[10,60,80],[[1,1,1,0.3],[1,1,1,0.2],[1,1,1,0]],[0],1,0,"","",_nap_bomb];
_fum_alb setDropInterval 0.1;
[_fum_alb] spawn {
_de_sters = _this select 0;
sleep 2;
deleteVehicle _de_sters;
};
//lumina
_li_exp = "#lightpoint" createVehicle getPosATL _nap_bomb;
_li_exp lightAttachObject [_nap_bomb, [0,0,3]];
_li_exp setLightAttenuation [0,0,0,0,40,600];
_li_exp setLightIntensity 500;
_li_exp setLightBrightness 10;
_li_exp setLightDayLight true;
_li_exp setLightUseFlare true;
_li_exp setLightFlareSize 100;
_li_exp setLightFlareMaxDistance 2000;
_li_exp setLightAmbient[1,0.2,0.1];
_li_exp setLightColor[1,0.2,0.1];
[_li_exp] spawn
{
private ["_lum_sters"];
_lum_sters = _this select 0;
sleep 1;
_u=5;
while {_u>0} do
{
_lum_sters setLightBrightness _u;
_u=_u-0.2;
sleep 0.1;
};
sleep 0.5;
deleteVehicle _lum_sters;
};
sleep 400;
deleteVehicle _nap_bomb;//Слегка поправил скрипт под себя
private ["_veh","_varname", "_role"];
_veh = _this select 0;
_varname = _this select 1;
_role = _this select 2;
_veh setVariable ["requiredCrew",_varname];
if (_role == "driver") 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;
};
}}];
};
if (_role == "all") then
{
_veh addEventHandler ["getIn",{_this spawn {
diag_log _this;
private ["_veh","_varname"];
_veh = _this select 0;
_varname = _veh getVariable ["requiredCrew","default"];
while {player in _veh} do {
if ((player == driver _veh || player == _veh turretUnit [0]) && {!(player getVariable [_varname, false])}) exitWith {
hint "Вы не уполномочены управлять данным видом техники.";
moveOut player;
};
sleep 1;
};
}}];
};if (!hasInterface) exitWith {};
private ["_nap_bomb"];
_nap_bomb = _this;
private _delay_sound = linearConversion [0,1000,player distance _nap_bomb,0,1.5,false];
private _dist_pitch = linearConversion [0,1000,player distance _nap_bomb,1,0.01,true];
sleep _delay_sound;
if (isTouchingGround player) then {enableCamShake true;private _power_sh = linearConversion [0,500,player distance _nap_bomb,3,0,true];addCamShake [_power_sh,2,11]};
_nap_bomb say3d ["napalm",2000,_dist_pitch];
private _eko=["eko_1","eko_3"] call BIS_fnc_selectRandom;
sleep 5+random 3;
playsound _eko;
/*%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 CfgFunctions
{
class mis
{
class Main
{
file="mis_funcs";
class preinit
{
preInit=1;
postInit=0;
};
};
};
};
class CfgSounds
{
class furnal
{
name = "furnal";
sound[] = {"\sound\furnal.ogg",1, 1};
titles[] = {1, ""};
};
class napalm
{
name = "napalm";
sound[] = {"\sound\napalm.ogg", db+20, 1};
titles[] = {1, ""};
};
class 01
{
name = "01";
sound[] = {"\sound\01.ogg",1, 1};
titles[] = {1, ""};
};
class 05
{
name = "05";
sound[] = {"\sound\05.ogg",1, 1};
titles[] = {1, ""};
};
class foc_initial_2
{
name = "foc_initial_2";
sound[] = {"\sound\foc_initial_2.ogg",db+20, 1};
titles[] = {1, ""};
};
class NoSound
{
name = "NoSound";
sound[] = {"", 0, 1};
titles[] = {0, ""};
};
class unit_fire
{
name = "unit_fire";
sound[] = {"\sound\unit_fire.ogg",0.1,1};
titles[] = {1,""};
};
class eko_1
{
name = "eko_1";
sound[] = {"\sound\eko_1.ogg",1,1};
titles[] = {1,""};
};
class eko_3
{
name = "eko_3";
sound[] = {"\sound\eko_3.ogg",1,1};
titles[] = {1,""};
};
};_unit forceAddUniform "TRYK_B_USMC_R";
_unit addVest "TAC_V_Sheriff_BA_T7";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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_black";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_mag_15Rnd_9x19_FMJ";};
_unit addHeadgear "H_Watchcap_camo";
_unit addGoggles "rhsusf_shemagh2_grn";
_unit addWeapon "rhs_weap_m16a4";
_unit addPrimaryWeaponItem "rhsusf_acc_g33_xps3";
_unit addWeapon "rhsusf_weap_m9";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "TRYK_U_B_BLK_OD";
_unit addVest "TAC_V_Sheriff_BA_T4";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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 "BWA3_TacticalPack_Fleck_Medic";
_unit addHeadgear "H_Booniehat_oli";
_unit addGoggles "rhsusf_shemagh2_grn";
_unit addWeapon "RH_m4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_BLK_OD";
_unit addVest "rhssaf_vest_md99_digital_rifleman_radio";
_unit addItemToVest "rhs_30Rnd_545x39_AK_green";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
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 "TRYK_B_Coyotebackpack_OD";
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_100Rnd_762x54mmR";};
_unit addHeadgear "rhssaf_bandana_digital";
_unit addWeapon "rhs_weap_ak74_2";
_unit addPrimaryWeaponItem "rhs_acc_dtk1983";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_OD_BLK";
_unit addVest "TAC_V_Sheriff_BA_T6";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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 "rhs_rpg_empty";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhs_rpg7_PG7VL_mag";};
_unit addItemToBackpack "rhs_rpg7_OG7V_mag";
_unit addHeadgear "rhssaf_bandana_digital";
_unit addGoggles "rhsusf_shemagh2_grn";
_unit addWeapon "rhs_weap_m16a4";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_BLK_OD";
_unit addVest "TAC_V_Sheriff_BA_T5";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_100Rnd_762x54mmR";};
_unit addBackpack "TRYK_B_Coyotebackpack_OD";
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_100Rnd_762x54mmR";};
_unit addHeadgear "TRYK_r_cap_blk_Glasses";
_unit addGoggles "rhsusf_shemagh2_grn";
_unit addWeapon "rhs_weap_pkm";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_OD_OD_R_CombatUniform";
_unit addVest "rhssaf_vest_md12_digital";
_unit addItemToVest "rhs_30Rnd_545x39_AK_green";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
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 "rhs_rpg_empty";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhs_rpg7_PG7VL_mag";};
_unit addItemToBackpack "rhs_rpg7_OG7V_mag";
_unit addHeadgear "H_Booniehat_oli";
_unit addWeapon "rhs_weap_ak74_2";
_unit addPrimaryWeaponItem "rhs_acc_dtk1983";
_unit addWeapon "rhs_weap_rpg7";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_B_USMC_R";
_unit addVest "TAC_V_Sheriff_BA_T7";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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_black";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_mag_15Rnd_9x19_FMJ";};
_unit addHeadgear "H_Beret_blk";
_unit addGoggles "rhsusf_shemagh2_grn";
_unit addWeapon "rhs_weap_m16a4";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "rhsusf_weap_m9";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "TRYK_B_USMC_R";
_unit addItemToUniform "ACE_MapTools";
_unit addVest "TAC_V_tacv1EP_OD";
for "_i" from 1 to 10 do {_unit addItemToVest "rhs_10Rnd_762x54mmR_7N14";};
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 "TRYK_B_Coyotebackpack_OD";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhsusf_mag_15Rnd_9x19_FMJ";};
_unit addHeadgear "H_Watchcap_camo";
_unit addWeapon "rhs_weap_svdp";
_unit addPrimaryWeaponItem "rhs_acc_pso1m2";
_unit addWeapon "rhsusf_weap_m9";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_BLK_OD";
_unit addVest "TAC_V_Sheriff_BA_TL7";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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 "TRYK_B_Coyotebackpack_OD";
_unit addHeadgear "TRYK_r_cap_blk_Glasses";
_unit addWeapon "rhs_weap_m16a4";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_BLK_OD";
_unit addVest "TAC_V_Sheriff_BA_T6";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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 "TRYK_B_Coyotebackpack_OD";
_unit addHeadgear "TRYK_r_cap_blk_Glasses";
_unit addWeapon "rhs_weap_m16a4";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "rhs_weap_rpg26";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_OD_OD_R_CombatUniform";
_unit addVest "TAC_V_Sheriff_BA_TL7";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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 "TRYK_B_Coyotebackpack_OD";
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhs_mag_M433_HEDP";};
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhs_mag_m714_White";};
_unit addHeadgear "rhssaf_bandana_digital";
_unit addGoggles "rhsusf_shemagh_od";
_unit addWeapon "rhs_weap_m4a1_carryhandle_m203";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "TRYK_U_B_OD_OD_R_CombatUniform";
_unit addVest "TAC_V_Sheriff_BA_TL7";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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 "TRYK_B_Coyotebackpack_OD";
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhs_mag_M433_HEDP";};
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhs_mag_m714_White";};
_unit addHeadgear "rhssaf_bandana_digital";
_unit addGoggles "rhsusf_shemagh_od";
_unit addWeapon "rhs_weap_m4a1_carryhandle_m203";
_unit addWeapon "rhs_weap_rpg26";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "tf_anprc155_coyote";
_unit addHeadgear "rhssaf_booniehat_woodland";
_unit addWeapon "RH_M16A3";
_unit addPrimaryWeaponItem "rhsusf_acc_ACOG_USMC";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "TRYK_B_Kitbag_Base";
for "_i" from 1 to 4 do {_unit addBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addBackpack "30Rnd_556x45_Stanag_Tracer_Green";
_unit addHeadgear "BWA3_CrewmanKSK_Fleck_Headset";
_unit addWeapon "RH_m4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "tf_anprc155_coyote";
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "TRYK_B_Kitbag_Base";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m62_tracer";};
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "TRYK_B_Kitbag_Base";
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit addWeapon "rhs_weap_m72a7";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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_anprc155_coyote";
for "_i" from 1 to 3 do {_unit addItemToBackpack "RH_7Rnd_45cal_m1911";};
_unit addHeadgear "H_Beret_blk";
_unit addWeapon "RH_M16A3";
_unit addPrimaryWeaponItem "RH_compM2";
_unit addWeapon "RH_m1911";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
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_anprc155_coyote";
for "_i" from 1 to 3 do {_unit addItemToBackpack "RH_7Rnd_45cal_m1911";};
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit addPrimaryWeaponItem "RH_compM2";
_unit addWeapon "RH_m1911";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "TRYK_B_Kitbag_Base";
for "_i" from 1 to 4 do {_unit addBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addBackpack "30Rnd_556x45_Stanag_Tracer_Green";
_unit addHeadgear "BWA3_CrewmanKSK_Fleck_Headset";
_unit addWeapon "RH_m4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "TRYK_B_Kitbag_Base";
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhs_mag_M441_HE";};
for "_i" from 1 to 6 do {_unit addItemToBackpack "rhs_mag_M433_HEDP";};
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "tu_m16a2_gl_ris";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "V_TacVest_blk";
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 6 do {_unit addItemToVest "hlc_30Rnd_9x19_GD_MP5";};
_unit addBackpack "TRYK_B_Kitbag_Base";
_unit addHeadgear "H_MilCap_gry";
_unit addWeapon "hlc_smg_mp5a2";
_unit addPrimaryWeaponItem "hlc_30Rnd_9x19_GD_MP5";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "BWA3_TacticalPack_Fleck_Medic";
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
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 addItemToVest "rhsusf_100Rnd_762x51";
_unit addBackpack "TRYK_B_Kitbag_Base";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_100Rnd_762x51_m62_tracer";};
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "rhs_weap_m240G";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhsgref_otv_khaki";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "tf_anprc155_coyote";
for "_i" from 1 to 4 do {_unit addBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addBackpack "30Rnd_556x45_Stanag_Tracer_Green";
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit addWeapon "ACE_VectorDay";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhsgref_otv_khaki";
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 4 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "tf_mr6000l";
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToBackpack "30Rnd_556x45_Stanag_Tracer_Green";
_unit addHeadgear "H_MilCap_gry";
_unit addWeapon "RH_M16A3";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";_unit forceAddUniform "rhsgref_uniform_woodland";
_unit addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
_unit addBackpack "TRYK_B_Kitbag_Base";
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
_unit addItemToBackpack "30Rnd_556x45_Stanag_Tracer_Green";
_unit addHeadgear "usm_helmet_pasgt_w";
_unit addWeapon "RH_M16A3";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
this forceAddUniform "rhsgref_uniform_woodland";
_unit addItemToUniform "ACE_MapTools";
this addVest "rhssaf_vest_otv_md2camo";
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_m67";};
for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";};
for "_i" from 1 to 5 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag";};
this addItemToVest "30Rnd_556x45_Stanag_Tracer_Green";
this addBackpack "TRYK_B_Kitbag_Base";
this addHeadgear "usm_helmet_pasgt_w";
this addWeapon "RH_M16A3";
this addPrimaryWeaponItem "rhsusf_acc_ACOG_USMC";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "TRYK_U_B_BLKBLK_R_CombatUniform";
_unit addVest "FGN_CauR_Tactical_Vest_Black_Rifleman_Radio";
for "_i" from 1 to 3 do {_unit addItemToVest "rhsgref_30rnd_556x45_m21";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhsgref_30rnd_556x45_m21_t";};
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 "B_FieldPack_blk";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_mag_17Rnd_9x19_JHP";};
_unit addHeadgear "H_Beret_blk";
_unit addWeapon "rhs_weap_m21s";
_unit addWeapon "rhsusf_weap_glock17g4";
_unit addWeapon "Binocular";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit forceAddUniform "TRYK_U_B_BLKBLK_CombatUniform";
_unit addVest "FGN_CauR_Tactical_Vest_Black_Rifleman";
for "_i" from 1 to 3 do {_unit addItemToVest "rhsgref_30rnd_556x45_m21";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhsgref_30rnd_556x45_m21_t";};
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 "B_FieldPack_blk";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_mag_17Rnd_9x19_JHP";};
_unit addHeadgear "rhssaf_helmet_m97_black_nocamo";
_unit addWeapon "rhs_weap_m21s";
_unit addWeapon "rhsusf_weap_glock17g4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_BLKBLK_CombatUniform";
_unit addItemToUniform "ACE_MapTools";
_unit addVest "FGN_CauR_Tactical_Vest_Black_Rifleman";
for "_i" from 1 to 3 do {_unit addItemToVest "rhsgref_30rnd_556x45_m21";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhsgref_30rnd_556x45_m21_t";};
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 "B_FieldPack_blk";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhsusf_mag_17Rnd_9x19_JHP";};
_unit addHeadgear "rhssaf_helmet_m97_black_nocamo";
_unit addWeapon "rhs_weap_m21a_pr";
_unit addPrimaryWeaponItem "rhsusf_acc_ACOG_USMC";
_unit addWeapon "rhsusf_weap_glock17g4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addItemToUniform "rhs_mag_rdg2_white";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
_unit addItemToUniform "rhs_30Rnd_545x39_7N10_AK";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
_unit addItemToVest "rhs_mag_rdg2_white";
_unit addBackpack "TU_cheap_UAV_backpack_Red";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
_unit addHeadgear "TRYK_H_GR";
_unit addWeapon "rhs_weap_ak74m_plummag_npz";
_unit addPrimaryWeaponItem "rhs_acc_dtk";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "rhs_weap_pya";
_unit addWeapon "ACE_Vector";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemWatch";
_unit linkItem "ItemRadio";
_unit linkItem "O_UavTerminal";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addItemToUniform "rhs_30Rnd_545x39_7N22_AK";
_unit addVest "rhs_6b23_digi_6sh92_Vog_Spetsnaz";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 3 do {_unit addItemToVest "rhs_30Rnd_545x39_7N22_AK";};
_unit addBackpack "BWA3_AssaultPack_Fleck";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_f1";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_30Rnd_545x39_7N22_AK";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
for "_i" from 1 to 8 do {_unit addItemToBackpack "rhs_VOG25";};
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_VG40TB";};
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_GDM40";};
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_tan";
_unit addWeapon "rhs_weap_ak74m_gp25";
_unit addPrimaryWeaponItem "rhs_acc_dtk1";
_unit addPrimaryWeaponItem "rhs_acc_pkas";
_unit addWeapon "rhs_weap_rshg2";
_unit addWeapon "rhs_weap_pya";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "16Rnd_9x21_Mag";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 2 do {_unit addItemToVest "16Rnd_9x21_Mag";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "tf_mr3000_multicam";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addItemToBackpack "rhs_30Rnd_545x39_7N22_AK";
_unit addItemToBackpack "ItemcTab";
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_shades";
_unit addWeapon "rhs_weap_ak74m_zenitco01_b33";
_unit addPrimaryWeaponItem "rhs_acc_ak5";
_unit addPrimaryWeaponItem "rhsusf_acc_g33_xps3";
_unit addWeapon "hgun_Rook40_F";
_unit addHandgunItem "rhsusf_acc_omega9k";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "16Rnd_9x21_Mag";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 1 do {_unit addItemToVest "16Rnd_9x21_Mag";};
for "_i" from 1 to 3 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
for "_i" from 1 to 1 do {_unit addItemToVest "rhs_mag_f1";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_rdg2_white";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_30Rnd_545x39_AK_green";};
_unit addBackpack "BWA3_AssaultPack_Fleck";
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_shades";
_unit addWeapon "rhs_weap_ak74m_zenitco01_b33";
_unit addPrimaryWeaponItem "rhs_acc_ak5";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "hgun_Rook40_F";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_100Rnd_762x54mmR";};
for "_i" from 1 to 1 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "BWA3_AssaultPack_Fleck";
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_100Rnd_762x54mmR";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_oli";
_unit addWeapon "rhs_weap_pkp";
_unit addPrimaryWeaponItem "rhs_acc_1p78";
_unit addWeapon "rhs_weap_pya";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_30Rnd_545x39_7N10_AK";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "tf_mr3000_multicam";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_tan";
_unit addWeapon "rhs_weap_ak74m_camo";
_unit addPrimaryWeaponItem "rhs_acc_dtk1";
_unit addPrimaryWeaponItem "rhs_acc_pkas";
_unit addWeapon "rhs_weap_pya";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_30Rnd_545x39_7N10_AK";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "BWA3_AssaultPack_Fleck";
for "_i" from 1 to 3 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_tan";
_unit addWeapon "rhs_weap_ak74m_camo";
_unit addPrimaryWeaponItem "rhs_acc_dtk1";
_unit addPrimaryWeaponItem "rhs_acc_pkas";
_unit addWeapon "rhs_weap_pya";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "16Rnd_9x21_Mag";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 2 do {_unit addItemToVest "16Rnd_9x21_Mag";};
for "_i" from 1 to 5 do {_unit addItemToVest "rhs_30Rnd_545x39_7N10_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "BWA3_AssaultPack_Fleck";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addItemToBackpack "rhs_30Rnd_545x39_7N22_AK";
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_shades";
_unit addWeapon "rhs_weap_ak74m_zenitco01_b33";
_unit addPrimaryWeaponItem "rhs_acc_ak5";
_unit addPrimaryWeaponItem "RH_eotech553";
_unit addWeapon "hgun_Rook40_F";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 2 do {_unit addItemToVest "CUP_60Rnd_545x39_AK74M_M";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "BWA3_AssaultPack_Fleck";
for "_i" from 1 to 4 do {_unit addItemToBackpack "CUP_60Rnd_545x39_AK74M_M";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "CUP_60Rnd_TE1_Green_Tracer_545x39_AK74M_M";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_oli";
_unit addWeapon "hlc_rifle_RPK12";
_unit addPrimaryWeaponItem "rhs_acc_dtk3";
_unit addPrimaryWeaponItem "RH_m145";
_unit addWeapon "rhs_weap_pya";
_unit addWeapon "rhs_weap_rpg26";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "16Rnd_9x21_Mag";
_unit addItemToUniform "rhs_10Rnd_762x54mmR_7N14";
_unit addVest "rhs_6b23_digi_6sh92_spetsnaz2";
for "_i" from 1 to 2 do {_unit addItemToVest "16Rnd_9x21_Mag";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addBackpack "rhsusf_falconii";
for "_i" from 1 to 8 do {_unit addItemToVest "rhs_10Rnd_762x54mmR_7N14";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_10Rnd_762x54mmR_7N14";};
_unit addHeadgear "BWA3_OpsCore_Tropen_Camera";
_unit addGoggles "rhs_googles_clear";
_unit addWeapon "rhs_weap_svds";
_unit addPrimaryWeaponItem "rhs_acc_pso1m2";
_unit addWeapon "hgun_Rook40_F";
_unit addHandgunItem "rhsusf_acc_omega9k";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit forceAddUniform "TRYK_U_B_MTP_CombatUniform";
_unit addItemToUniform "rhs_mag_9x19_17";
_unit addItemToUniform "rhs_30Rnd_545x39_7N22_AK";
_unit addVest "rhs_6b23_digi_6sh92_Vog_Spetsnaz";
for "_i" from 1 to 4 do {_unit addItemToVest "rhs_30Rnd_545x39_7N22_AK";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_9x19_17";};
for "_i" from 1 to 2 do {_unit addItemToVest "rhs_mag_f1";};
_unit addItemToVest "rhs_30Rnd_545x39_AK";
_unit addItemToVest "rhs_rpg26_mag";
_unit addBackpack "BWA3_AssaultPack_Fleck";
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_30Rnd_545x39_AK_green";};
for "_i" from 1 to 10 do {_unit addItemToBackpack "rhs_VOG25";};
for "_i" from 1 to 5 do {_unit addItemToBackpack "rhs_VG40TB";};
for "_i" from 1 to 4 do {_unit addItemToBackpack "rhs_GDM40";};
for "_i" from 1 to 2 do {_unit addItemToBackpack "rhs_mag_rdg2_white";};
_unit addHeadgear "TRYK_H_GR";
_unit addGoggles "G_Bandanna_oli";
_unit addWeapon "rhs_weap_ak74m_gp25_npz";
_unit addPrimaryWeaponItem "rhs_acc_dtk2";
_unit addPrimaryWeaponItem "rhsusf_acc_ACOG_RMR";
_unit addWeapon "rhs_weap_rpg26";
_unit addWeapon "rhs_weap_pya";
_unit addWeapon "rhs_pdu4";
_unit linkItem "ItemMap";
_unit linkItem "ItemCompass";
_unit linkItem "ItemRadio";
_unit linkItem "ItemGPS";
_unit addWeapon "Binocular";
_unit = _this select 0;
_faction = _this select 1;
_loadout = _this select 2;
_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 ["rhs_mag_30Rnd_556x45_M855A1_Stanag",8];
_veh addItemcargoGlobal ["30Rnd_556x45_Stanag_Tracer_Green",4];
_veh addItemcargoGlobal ["rhsusf_mag_15Rnd_9x19_FMJ",4];
_veh addItemcargoGlobal ["rhs_mag_m67",12];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",12];
_veh addItemcargoGlobal ["rhs_10Rnd_762x54mmR_7N14",6];
_veh addItemcargoGlobal ["rhs_100Rnd_762x54mmR",4];
_veh addItemcargoGlobal ["rhs_30Rnd_545x39_AK_green",2];
_veh addItemcargoGlobal ["rhs_30Rnd_545x39_7N10_AK",4];
_veh addItemCargoGlobal ["ACE_fieldDressing",12];
_veh addItemCargoGlobal ["ACE_packingBandage",12];
_veh addItemCargoGlobal ["ACE_elasticBandage",12];
_veh addItemCargoGlobal ["ACE_quikclot",12];
_veh addItemCargoGlobal ["ACE_morphine",6];
_veh addItemCargoGlobal ["ACE_epinephrine",6];
_veh addItemCargoGlobal ["ACE_tourniquet",6];
_veh = _this select 0;
_veh addItemcargoglobal ["ACE_morphine", 3];
_veh addItemcargoglobal ["ACE_fieldDressing", 6];
_veh addItemCargoGlobal ["ACE_elasticBandage", 6];
_veh addItemCargoGlobal ["ACE_packingBandage", 6];
_veh addItemCargoGlobal ["ACE_quikclot", 6];
_veh addItemCargoGlobal ["ACE_bloodIV_500", 30];
_veh addItemCargoGlobal ["ACE_salineIV_500", 15];
_veh addItemCargoGlobal ["ACE_personalAidKit", 30];
_veh addItemCargoGlobal ["ACE_surgicalKit", 3];
_veh addItemCargoGlobal ["ACE_tourniquet", 10];
_veh addItemcargoGlobal ["BWA3_30Rnd_556x45_G36", 20];_veh = _this select 0;
_veh addItemcargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",20];
_veh addItemcargoGlobal ["30Rnd_556x45_Stanag_Tracer_Green",5];
_veh addItemcargoGlobal ["rhsusf_mag_15Rnd_9x19_FMJ",4];
_veh addItemcargoGlobal ["rhs_mag_m67",16];
_veh addItemcargoGlobal ["rhs_mag_an_m8hc",16];
_veh addItemcargoGlobal ["rhs_10Rnd_762x54mmR_7N14",6];
_veh addItemcargoGlobal ["rhs_100Rnd_762x54mmR",6];
_veh addItemcargoGlobal ["rhs_30Rnd_545x39_AK_green",4];
_veh addItemcargoGlobal ["rhs_30Rnd_545x39_7N10_AK",6];
_veh addItemcargoGlobal ["SatchelCharge_Remote_Mag",2];
_veh addItemcargoGlobal ["rhs_rpg7_OG7V_mag",2];
_veh addItemcargoGlobal ["rhs_rpg7_PG7VL_mag",2];
//_veh addItemcargoGlobal ["rhs_weap_rpg26",1];
_veh addItemCargoGlobal ["ACE_fieldDressing",16];
_veh addItemCargoGlobal ["ACE_packingBandage",16];
_veh addItemCargoGlobal ["ACE_elasticBandage",16];
_veh addItemCargoGlobal ["ACE_quikclot",16];
_veh addItemCargoGlobal ["ACE_morphine",10];
_veh addItemCargoGlobal ["ACE_epinephrine",10];
_veh addItemCargoGlobal ["ACE_tourniquet",8];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_fieldDressing",8];
_veh addItemCargoGlobal ["ACE_packingBandage",8];
_veh addItemCargoGlobal ["ACE_elasticBandage",8];
_veh addItemCargoGlobal ["ACE_quikclot",8];
_veh addItemCargoGlobal ["ACE_morphine",4];
_veh addItemCargoGlobal ["ACE_epinephrine",4];
_veh addItemCargoGlobal ["ACE_tourniquet",4];
_veh addItemCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",12];
_veh addItemCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Green",8];
_veh addItemCargoGlobal ["rhs_mag_m67",8];
_veh addItemCargoGlobal ["rhs_mag_an_m8hc",8];
_veh addItemCargoGlobal ["rhs_weap_m72a7",1];
_veh = _this select 0;
_veh = _this select 0;
_veh addItemcargoGlobal ["rhs_mag_100rnd_127x99_mag",5];
_veh addItemCargoGlobal ["ACE_fieldDressing",18];
_veh addItemCargoGlobal ["ACE_packingBandage",18];
_veh addItemCargoGlobal ["ACE_elasticBandage",18];
_veh addItemCargoGlobal ["ACE_quikclot",18];
_veh addItemCargoGlobal ["ACE_morphine",9];
_veh addItemCargoGlobal ["ACE_epinephrine",9];
_veh addItemCargoGlobal ["ACE_tourniquet",9];
_veh addItemCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",20];
_veh addItemCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Green",9];
_veh addItemCargoGlobal ["rhs_mag_m67",18];
_veh addItemCargoGlobal ["rhs_mag_an_m8hc",18];
_veh addItemCargoGlobal ["rhs_weap_m72a7",1];
_veh addItemCargoGlobal ["rhs_mag_M441_HE",12];
_veh addItemCargoGlobal ["rhs_mag_M433_HEDP",12];
_veh addBackPackCargoGlobal ["TRYK_B_Kitbag_Base",1];
_veh addItemCargoGlobal ["ToolKit",1];
_veh addItemCargoGlobal ["ACE_EntrenchingTool",3];_veh = _this select 0;
_veh addItemcargoGlobal ["rhs_mag_100rnd_127x99_mag",5];
_veh addItemCargoGlobal ["ACE_fieldDressing",18];
_veh addItemCargoGlobal ["ACE_packingBandage",18];
_veh addItemCargoGlobal ["ACE_elasticBandage",18];
_veh addItemCargoGlobal ["ACE_quikclot",18];
_veh addItemCargoGlobal ["ACE_morphine",9];
_veh addItemCargoGlobal ["ACE_epinephrine",9];
_veh addItemCargoGlobal ["ACE_tourniquet",9];
_veh addItemCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",10];
_veh addItemCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Green",5];
_veh addItemCargoGlobal ["rhs_mag_m67",10];
_veh addItemCargoGlobal ["rhs_mag_an_m8hc",10];
_veh addItemCargoGlobal ["rhs_weap_m72a7",1];
_veh addItemCargoGlobal ["rhsusf_100Rnd_762x51",6];
_veh addItemCargoGlobal ["rhsusf_100Rnd_762x51_m62_tracer",6];
_veh addBackPackCargoGlobal ["TRYK_B_Kitbag_Base",1];
_veh addItemCargoGlobal ["ToolKit",1];
_veh addItemCargoGlobal ["ACE_EntrenchingTool",3];_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_fieldDressing",20];
_veh addItemCargoGlobal ["ACE_packingBandage",20];
_veh addItemCargoGlobal ["ACE_elasticBandage",20];
_veh addItemCargoGlobal ["ACE_quikclot",20];
_veh addItemCargoGlobal ["ACE_morphine",15];
_veh addItemCargoGlobal ["ACE_epinephrine",15];
_veh addItemCargoGlobal ["ACE_tourniquet",15];
_veh addItemcargoglobal ["ACE_salineIV_500", 10];
_veh addItemcargoglobal ["ACE_bloodIV_500", 10];
_veh addItemcargoglobal ["ACE_personalAidKit", 15];
_veh addItemCargoGlobal ["rhs_mag_30Rnd_556x45_M855A1_Stanag",10];
_veh addItemCargoGlobal ["30Rnd_556x45_Stanag_Tracer_Green",6];
_veh addItemCargoGlobal ["rhs_mag_m67",6];
_veh addItemCargoGlobal ["rhs_mag_an_m8hc",10];
_veh addItemCargoGlobal ["rhs_weap_m72a7",1];
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_fieldDressing",6];
_veh addItemCargoGlobal ["ACE_packingBandage",6];
_veh addItemCargoGlobal ["ACE_elasticBandage",6];
_veh addItemCargoGlobal ["ACE_quikclot",6];
_veh addItemCargoGlobal ["ACE_morphine",3];
_veh addItemCargoGlobal ["ACE_epinephrine",3];
_veh addItemCargoGlobal ["ACE_tourniquet",3];
_veh addItemCargoGlobal ["rhssaf_helmet_m97_black_nocamo",1];
_veh addItemCargoGlobal ["rhs_mag_m67",6];
_veh addItemCargoGlobal ["rhs_mag_an_m8hc",6];
_veh addItemCargoGlobal ["rhsusf_mag_17Rnd_9x19_JHP",6];
_veh addItemCargoGlobal ["rhsgref_30rnd_556x45_m21",10];
_veh addItemCargoGlobal ["rhsgref_30rnd_556x45_m21_t",5];_veh = _this select 0;
_veh addItemCargoGlobal ["ToolKit",2];
_veh addBackpackCargoGlobal ["BWA3_AssaultPack_Fleck",2];_veh = _this select 0;
_veh = _this select 0;
_veh addItemCargoGlobal ["ACE_fieldDressing",10];
_veh addItemCargoGlobal ["ACE_packingBandage",10];
_veh addItemCargoGlobal ["ACE_elasticBandage",10];
_veh addItemCargoGlobal ["ACE_quikclot",10];
_veh addItemCargoGlobal ["ACE_morphine",8];
_veh addItemCargoGlobal ["ACE_epinephrine",8];
_veh addItemCargoGlobal ["ACE_tourniquet",8];
_veh addItemCargoGlobal ["rhs_30Rnd_545x39_7N10_AK",10];
_veh addItemCargoGlobal ["rhs_30Rnd_545x39_AK_green",10];
_veh addItemCargoGlobal ["rhs_30Rnd_545x39_7N22_AK",10];
_veh addItemCargoGlobal ["rhs_10Rnd_762x54mmR_7N14",5];
_veh addItemCargoGlobal ["CUP_60Rnd_545x39_AK74M_M",5];
_veh addItemCargoGlobal ["CUP_60Rnd_TE1_Green_Tracer_545x39_AK74M_M",5];
_veh addItemCargoGlobal ["rhs_VOG25",10];
_veh addItemCargoGlobal ["rhs_GDM40",10];
_veh addItemCargoGlobal ["rhs_100Rnd_762x54mmR",6];
_veh addItemCargoGlobal ["rhs_mag_rdg2_white",16];
_veh addItemCargoGlobal ["rhs_mag_f1",16];
_veh addItemCargoGlobal ["rhs_weap_rpg26",2];
_veh addItemCargoGlobal ["ACE_EntrenchingTool",3];
_veh addItemCargoGlobal ["ACE_DefusalKit",1];
_veh addItemCargoGlobal ["ACE_VMH3",1];
_veh = _this select 0;
_veh addBackpackCargoGlobal ["BWA3_AssaultPack_Fleck",1];
_veh additemcargoGlobal ["ACE_UAVBattery",3];
_veh addItemCargoGlobal ["ACE_fieldDressing",30];
_veh addItemCargoGlobal ["ACE_packingBandage",30];
_veh addItemCargoGlobal ["ACE_elasticBandage",30];
_veh addItemCargoGlobal ["ACE_quikclot",30];
_veh addItemCargoGlobal ["ACE_morphine",20];
_veh addItemCargoGlobal ["ACE_epinephrine",20];
_veh addItemCargoGlobal ["ACE_salineIV_250",8];
_veh addItemCargoGlobal ["ACE_tourniquet",20];
_veh addItemCargoGlobal ["ACE_personalAidKit",10];
_veh addItemCargoGlobal ["rhs_30Rnd_545x39_7N10_AK",6];
_veh addItemCargoGlobal ["rhs_30Rnd_545x39_AK_green",6];
_veh addItemCargoGlobal ["rhs_30Rnd_545x39_7N22_AK",6];
_veh addItemCargoGlobal ["rhs_mag_rdg2_white",8];
_veh addItemCargoGlobal ["rhs_mag_f1",8];
_veh addItemCargoGlobal ["ACE_DefusalKit",1];
_veh addItemCargoGlobal ["ACE_VMH3",1];
_veh = _this select 0;
_faction = _this select 1;
_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
{
_veh call _common_processor;
[_veh] call compile format ["_this call compile preprocessFileLineNumbers 'Equipment\veh_%1\%2.sqf';",_faction,_loadout];
};waitUntil { time > 0; player == player };
_toww = (getmarkerpos "m2" nearestObject "Land_Matches_F");
_toww1 = (getmarkerpos "m2_1" nearestObject "Land_Matches_F");
_toww2 = (getmarkerpos "m2_2" nearestObject "Land_Matches_F");
_toww3 = (getmarkerpos "m2_3" nearestObject "Land_Matches_F");
sleep 1;
BIS_Effects_Burn = compile preprocessFile "\ca\Data\ParticleEffects\SCRIPTS\destruction\burn.sqf";
sleep 1;
burnit =[_toww, 10, time, false, false] spawn BIS_Effects_Burn;
burnit1 =[_toww1, 10, time, false, false] spawn BIS_Effects_Burn;
burnit2 =[_toww2, 10, time, false, false] spawn BIS_Effects_Burn;
burnit3 =[_toww3, 10, time, false, false] spawn BIS_Effects_Burn;
waitUntil {sleep 10; a3a_var_started};
sleep 120;
deleteVehicle _toww;
deleteVehicle _toww1;
deleteVehicle _toww2;
deleteVehicle _toww3;enableSaving [false, false];
0 = execVM "add_med.sqf";
setTerrainGrid 2;
// Init modules
#include "a3a_modules.hpp"
{
[] execVM "A3A_MODULES\" + _x + "\init.sqf";
} forEach A3A_MODULES;
player createDiaryRecord ["diary", ["Условности миссии", loadFile "A3A_BRIEFING\briefing_MISSC.html"]];
if (!isServer) then
{
0 = execVM "gorit.sqf";
};
waitUntil {sleep 5; a3a_var_started};
if (isServer) then
{
0 = execVM "zap.sqf";
[] spawn
{
minBlueForces = 10;
minOpForces = 11;
mis_end_time = diag_tickTime + (135 * 60);
while {isNil "srv_triggerFinished"} do {
sleep 10;
currentBlueForces = west countside playableUnits;
currentOpForces = (resistance countside playableUnits) + (east countside playableUnits);
if (currentOpForces < minOpForces) then {srv_triggerFinished = true; ["Победа боевиков. Силы самообороны Таноа были разбиты.", west] call a3a_fnc_endMission;};
if (currentBlueForces < minBlueForces) then {srv_triggerFinished = true; ["Боевики были разбиты. Танкер может подходить.", resistance] call a3a_fnc_endMission;};
if (diag_tickTime > mis_end_time) then {
srv_triggerFinished = true;
["Станция не запущена. Победа боевиков.", west] call a3a_fnc_endMission;
};
};
};
};
if (playerSide == resistance) then {
player createDiaryRecord ["diary", ["Задачи", loadFile "A3A_BRIEFING\briefing_GreenTasks.html"]];
player createDiaryRecord ["diary", ["Противник", loadFile "A3A_BRIEFING\briefing_GreenEnemy.html"]];
};
//Возможность запустить станцию
CanStart = false;
//Флаг процесса запуска станции
Starting = false;
//Время инициации автоматического запуска станции
InitTime = 15;
//Время контроллируемого запуска станции
ManualTime = 10*60;
//Время запуска станции
StartingTime = 15*60;
//Время останова станции
StoppingTime = 10;
//Время устранения течи
RepTime = 300;
//Максимальная дистанция связи с сейсмостанцией
MaxStDist = 2000;
//Максимальная дистанция обнаружения вибраций
MaxDetDist = 300;
//Цвет целей на терминале сейсмостанции
TCol = "ColorOrange";
//Цвет зон обнаружения на терминале сейсмостанции
ZCol = "ColorGreen";
lnz_fnc_setAsStationCtrl = {
_action = ["autoInitiate","Инициировать автоматический запуск","",{
CanStart = false;
publicVariable "CanStart";
tow setVariable ["coloralpha", 0.5, true];
[tow] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
[InitTime,
[],{
Starting = true;
publicVariable "Starting";
[] spawn {
sleep StartingTime;
if ((alive BigTank) and Starting) then {
DbIM = true;
publicVariable "DbIM";
toww setVariable ["coloralpha", 0.9, true];
[toww] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
Starting = false;
publicVariable "Starting";
CanStart = false;
publicVariable "CanStart";
};
};
},{
tow setVariable ["coloralpha", 0, true];
[tow] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
CanStart = true;
publicVariable "CanStart";
hint "Запуск прерван!";
},
"Инициируем запуск станции..."] call ace_common_fnc_progressBar;
},{
CanStart;
},{},"","",1] call ace_interact_menu_fnc_createAction;
[_this, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
_action = ["manualInitiate","Инициировать контроллируемый запуск","",{
CanStart = false;
publicVariable "CanStart";
tow setVariable ["colorblue", 0, true];
tow setVariable ["colorgreen", 0.2, true];
tow setVariable ["coloralpha", 0.9, true];
[tow] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
[ManualTime,
[],{
[] spawn {
if (alive BigTank) then {
DbIM = true;
publicVariable "DbIM";
toww setVariable ["coloralpha", 0.75, true];
[toww] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
Starting = false;
publicVariable "Starting";
CanStart = false;
publicVariable "CanStart";
};
};
},{
tow setVariable ["colorblue", 0.3, true];
tow setVariable ["colorgreen", 0.3, true];
tow setVariable ["coloralpha", 0, true];
[tow] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
CanStart = true;
publicVariable "CanStart";
hint "Запуск прерван!";
},
"Запускаем станцию..."] call ace_common_fnc_progressBar;
},{
CanStart and (player getVariable ["ACE_IsEngineer", 0] > 0);
},{},"","",1] call ace_interact_menu_fnc_createAction;
[_this, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
_action = ["stationStop","ОСТАНОВИТЬ станцию","",{
Starting = false;
publicVariable "Starting";
[StoppingTime,
[],{
[] spawn {
tow setVariable ["coloralpha", 0, true];
[tow] remoteExecCall ["BIS_fnc_moduleEffectsSmoke", -2, true];
CanStart = true;
publicVariable "CanStart";
};
},{
Starting = true;
publicVariable "Starting";
hint "Останов прерван!";
},
"Останавливаем станцию..."] call ace_common_fnc_progressBar;
},{
Starting;
},{},"","",1] call ace_interact_menu_fnc_createAction;
[_this, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
};
lnz_fnc_setAsFuelTank = {
private "_hookPos";
if (isNil {_this getVariable "lnz_noNozzle"}) then {
_this setVariable ["lnz_noNozzle", true, true];
};
if (isNil {_this getVariable "ace_refuel_hooks"}) then {
_hookPos = (getArray (configFile >> "CfgVehicles" >> typeOf _this >> "ace_refuel_hooks")) select 0;
if ((typeOf _this) != "O_T_Truck_03_fuel_ghex_F") then {
_hookPos = +(_hookPos vectorAdd [0,-0.15,0.05]);
};
} else {
_hookPos = (_this getVariable "ace_refuel_hooks") select 0;
};
private _action = ["connectFuelNozzle","Подключить топливный шланг","",{
{
if (_x isKindOf "ace_refuel_fuelNozzle") then {
_target setVariable ["lnz_nozzle", _x, true];
_target setVariable ["lnz_noNozzle", false, true];
[_player, _x, false] call ace_refuel_fnc_dropNozzle;
_x attachTo [_target, _this select 2];
if (_target isEqualTo BigTank) then {
_x setVectorDirAndUp [vectorNormalized (_x worldToModel (getPos _target)), [0,0,1]];
} else {
_x setVectorUp [0,-1,1];
if ((typeOf _target) == "O_T_Truck_03_fuel_ghex_F") then {
_x setDir 270;
};
};
StartRefueling = [clientOwner, _target];
publicVariableServer "StartRefueling";
};
} forEach attachedObjects _player;
},{
_target getVariable "lnz_noNozzle";
},{
}, _hookPos, _hookPos, 2] call ace_interact_menu_fnc_createAction;
[_this, 0, [], _action] call ace_interact_menu_fnc_addActionToObject;
_action = ["disconnectFuelNozzle","Отключить топливный шланг","",{
detach (_target getVariable "lnz_nozzle");
StopRefueling = [clientOwner, _target];
publicVariableServer "StopRefueling";
_target setVariable ["lnz_noNozzle", true, true];
[_player, _target getVariable "lnz_nozzle"] call ace_refuel_fnc_takeNozzle;
},{
!(_target getVariable "lnz_noNozzle");
},{
},true,_hookPos,1.5] call ace_interact_menu_fnc_createAction;
[_this, 0, [], _action] call ace_interact_menu_fnc_addActionToObject;
if (_this isEqualTo BigTank) then {
_hookPos = +(_hookPos vectorAdd [0,0,0.5]);
_action = ["checkFuel","Проверить объём топлива","",{
hint format["В хранилище %1 л. горючего", _target getVariable "ace_refuel_currentfuelcargo"];
},{
true
},{
},true,_hookPos,1.5] call ace_interact_menu_fnc_createAction;
[_this, 0, [], _action] call ace_interact_menu_fnc_addActionToObject;
} else {
_action = ["repairFuelTank","Устранить течь","",{
[RepTime,
[_target],{
private _target = (_this select 0) select 0;
private _extTankVol = getNumber (configFile >> "CfgVehicles" >> typeOf _target >> "ace_refuel_fuelCargo");
_target setVariable ["lnz_extTankVol", _extTankVol, true];
},{
hint 'Починка прервана';
},
"Устраняем течь..."] call ace_common_fnc_progressBar;
},{
private _extTankVol = getNumber (configFile >> "CfgVehicles" >> typeOf _target >> "ace_refuel_fuelCargo");
private _lnz_extTankVol = _target getVariable ["lnz_extTankVol", _extTankVol];
_extTankVol != _lnz_extTankVol;
}] call ace_interact_menu_fnc_createAction;
[_this, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
};
};
lnz_fnc_addVulnerable = {
_this setVariable ["isVulnerable",
_this addEventHandler ["HitPart", {
(_this select 0) params ["_target", "_shooter", "_projectile", "_position", "_velocity", "_selection", "_ammo", "_vector", "_radius", "_surfaceType", "_isDirect"];
if (!isNil {_target getVariable "isVulnerable"}) then {
private _h = (ASLToATL _position) select 2;
private _type = typeOf _target;
if ((((str _selection) find "fueltank" != -1) and (_type == "RHS_Ural_Fuel_VV_01")) or (((str _selection) find "[]" != -1) and (_h > 1.14) and (_type != "RHS_Ural_Fuel_VV_01"))) then {
private "_fuelLvl";
private _extTankVol = getNumber (configFile >> "CfgVehicles" >> typeOf _target >> "ace_refuel_fuelCargo");
private _lnz_extTankVol = _target getVariable ["lnz_extTankVol", _extTankVol];
if (_type == "RHS_Ural_Fuel_VV_01") then {
if (_h < 1.4) then {_h = 1.4};
_h = _h - 1.4;
_fuelLvl = (_h / 1.22)*_extTankVol;
} else {
_h = _h - 1.14;
_fuelLvl = (_h / 1.31)*_extTankVol;
};
if (_fuelLvl < _lnz_extTankVol) then {
_target setVariable ["lnz_extTankVol", _fuelLvl, true];
};
if (((str _projectile) find "tracer_green" != -1)) then {
if ((round random 5) < 1) then {
null=[_target,15,true,true] execVM "AL_fire\al_vehicle_fire.sqf";
_target setVariable ["isVulnerable",nil,true];
};
};
};
};
}]
];
};
lnz_fnc_fadeMarker = {
private _lma = markerAlpha _this;
while {_lma > 0} do {
_this setMarkerAlphaLocal (_lma - 0.03);
sleep 0.1;
_lma = markerAlpha _this;
};
};
lnz_fnc_drawMarker = {
params ["_lnz_x", "_s", "_rd"];
private _sid = netId _lnz_x;
private _oid = "";
private _lom = "";
private _lmp = [];
private _op = [];
private _mt = "";
{
if (_x isKindOf "LandVehicle") then {
_mt = "o_armor";
} else {
_mt = "hd_dot";
};
_oid = netId _x;
_lom = "lnz_o_" + _sid + "_" + _oid;
_lmp = getMarkerPos _lom;
if (_lmp isEqualTo [0,0,0]) then {
_lom = createMarkerLocal [_lom, position _x];
_lom setMarkerShapeLocal "ICON";
_lom setMarkerTypeLocal _mt;
_lom setMarkerColorLocal TCol;
_lom setMarkerAlphaLocal 1;
_lom setMarkerTextLocal _oid;
_lom spawn {_this call lnz_fnc_fadeMarker};
} else {
_op = position _x;
_op set [2,0];
if (!(_lmp isEqualTo _op)) then {
_lom setMarkerPosLocal _op;
_lom setMarkerAlphaLocal 1;
_lom spawn {_this call lnz_fnc_fadeMarker};
};
};
} forEach nearestObjects [_lnz_x, _s, _rd];
};
CtrlObj call lnz_fnc_setAsStationCtrl;
BigTank call lnz_fnc_setAsFuelTank;
BigTank addEventHandler ["HandleDamage", {
params ["_unit", "_selection", "_damage", "_source", "_projectile"];
if ((_selection == "") && (_damage >= 1) && (_projectile == "SatchelCharge_Remote_Ammo")) then {
ASFE = _unit; publicVariableServer "ASFE";
}; 0
}];
{
private _type = typeOf _x;
if (_type == "Land_DataTerminal_01_F") then {
[_x, true, [0, 1, 0], 0] call ace_dragging_fnc_setDraggable;
_x addEventHandler ["Explosion", {
ASSE = _this select 0;
ASSE setVariable ["isNotSet", true, true];
publicVariableServer "ASSE";
}];
} else {
_x call lnz_fnc_setAsFuelTank;
if (_type != "O_T_Truck_03_fuel_ghex_F") then {
_x call lnz_fnc_addVulnerable;
};
};
} forEach ((nearestObjects [[10000,10000], ["Land_DataTerminal_01_F","O_T_Truck_03_fuel_ghex_F","RHS_Ural_Fuel_VV_01","RDS_Van_01_fuel_F","C_Van_01_fuel_F"], 6400]) inAreaArray [[10000,10000], 5000, 4000, 0, true]);
{
_x addEventHandler ["HandleDamage", {
params ["_unit", "_selection", "_damage", "_source", "_projectile"];
if ((_selection == "") && (_damage >= 1) && (_projectile == "SatchelCharge_Remote_Ammo")) then {
ASNE = _unit; publicVariableServer "ASNE";
}; 0
}];
} forEach ((nearestObjects [[10000,10000], ["Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F"], 6400]) inAreaArray [[10000,10000], 5000, 4000, 0, true]);
"Ex" addPublicVariableEventHandler {
hint (_this select 1);
};
"ANE" addPublicVariableEventHandler {
[_this select 1,0,0] execVM "AL_napalm\alias_napalm_effect.sqf";
};
"ABE" addPublicVariableEventHandler {
(_this select 1) execVM "boom_effect.sqf";
};
private _action = ["ACE_MainActions", "Взаимодействия", "", {true}, {true}, {}, [], [0,0,0], 5] call ace_interact_menu_fnc_createAction;
["Land_DataTerminal_01_F", 0, [], _action] call ace_interact_menu_fnc_addActionToClass;
_action = ["mountStation","Запустить сейсмостанцию","",{_target setVariable ["isNotSet", false, true]; [_target, 1] call BIS_fnc_DataTerminalAnimate; [_target, 2] call BIS_fnc_DataTerminalAnimate; [_target, 3] call BIS_fnc_DataTerminalAnimate; [_target, false] call ace_dragging_fnc_setDraggable; [_target, -1] call ace_cargo_fnc_setSize},{_target getVariable ["isNotSet",true]}] call ace_interact_menu_fnc_createAction;
["Land_DataTerminal_01_F", 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToClass;
_action = ["dismountStation","Свернуть сейсмостанцию","",{_target setVariable ["isNotSet", true, true]; [_target, 2] call BIS_fnc_DataTerminalAnimate; [_target, 1] call BIS_fnc_DataTerminalAnimate; [_target, 0] call BIS_fnc_DataTerminalAnimate; [_target, true, [0, 1, 0], 0] call ace_dragging_fnc_setDraggable; [_target, 3] call ace_cargo_fnc_setSize},{!(_target getVariable ["isNotSet",true])}] call ace_interact_menu_fnc_createAction;
["Land_DataTerminal_01_F", 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToClass;
[MaxStDist, MaxDetDist] spawn {
_this params ["_sd","_rd"];
private _lmn = "";
private _lmh = "";
private _pa = 0;
while {true} do {
{
_lmn = "lnz_s_" + str _x;
if (_x getVariable ["isNotSet",true] or (((assignedItems player) find "ItemcTab") == -1)) then {
if (!((getMarkerPos _lmn) isEqualTo [0,0,0])) then {
deleteMarkerLocal _lmn;
};
} else {
if ((getMarkerPos _lmn) isEqualTo [0,0,0]) then {
_lmn = createMarkerLocal [_lmn, position _x];
_lmn setMarkerBrushLocal "Solid";
_lmn setMarkerShapeLocal "ELLIPSE";
_lmn setMarkerColorLocal ZCol;
_lmn setMarkerAlphaLocal 0.5;
_lmn setMarkerSizeLocal [_rd,_rd];
};
[_x, ["LandVehicle","Man"], _rd] call lnz_fnc_drawMarker;
};
} forEach nearestObjects [player, ["Land_DataTerminal_01_F"], _sd];
{
_pa = _x splitString "_";
if ((count _pa) > 2) then {
_lmh = _pa select 1;
if (_lmh == "s") then {
if (((getMarkerPos _x) distance player) > _sd) then {
deleteMarkerLocal _x;
};
};
if ((_lmh == "o") and ((markerAlpha _x) == 0)) then {
if ((objectFromNetId ((_x splitString "_") select 2)) distance (objectFromNetId ((_x splitString "_") select 3)) > _rd) then {
deleteMarkerLocal _x;
};
};
};
} forEach allMapMarkers;
sleep 5;
};
};
// by ALIAS & Linza
waitUntil {!isNil "damage_playeron_fire"};
player setVariable ["set_on_fire",false];
player setVariable ["time_in_fire",0];
pct_unit = ["leftfoot","rightfoot","pelvis","leftforearmroll","rightshoulder"];
fnc_check_anim = {
private ["_state_p","_count","_tip","_rndm_ind"];
private _pct_unit = ["leg_l","leg_r","body","hand_l","hand_r"];
private _hp_unit = ["HitLeftLeg","HitRightLeg","HitBody","HitLeftArm","HitRightArm"];
private _hp_indx = [14,15,3,12,13];
_tip = ["01","05"] call BIS_fnc_selectRandom;
[player,[_tip,100]] remoteExec ["say3d"];
_count = 0;
while {player getVariable "set_on_fire"} do
{
_state_p = animationState player;
_rndm_ind = round random 4;
[player, _pct_unit select _rndm_ind, (player getHitPointDamage (_hp_unit select _rndm_ind)) + damage_playeron_fire, player, "explosive", (_hp_indx select _rndm_ind), player] call ACE_medical_fnc_handleDamage;
if (_state_p in off_fire) then {_count = (player getVariable "time_in_fire")+1; player setVariable ["time_in_fire",_count]};
if (rain>0) then {_count=(player getVariable "time_in_fire")+(linearConversion [0.1,1,rain,0.1,0.5,true]); player setVariable ["time_in_fire",_count]};
if (surfaceIsWater getPos player) then {_count = (player getVariable "time_in_fire")+2; player setVariable ["time_in_fire",_count]};
sleep 1;
};
player say3d ["NoSound",100];
};
while {!isNull player} do
{
waitUntil {alive player};
waitUntil {(isBurning player) or (player getVariable "set_on_fire")};
if (player_onFire_from_vanillafire) then {if(isBurning player) then {player setVariable ["set_on_fire",true,true]}};
[player,"AL_fire\fire_on_player.sqf"] remoteExec ["execVM"];
[] spawn fnc_check_anim;
private _handle = ppEffectCreate ["DynamicBlur", 401];
_handle ppEffectEnable true;
_handle ppEffectAdjust [5];
_handle ppEffectCommit 5;
waitUntil {!(player getVariable "set_on_fire")};
player setVariable ["time_in_fire",0];
_handle = ppEffectCreate ["DynamicBlur", 401];
_handle ppEffectAdjust [-5];
_handle ppEffectCommit 3;
sleep 3;
_handle ppEffectEnable false;
ppEffectDestroy _handle;
};
//Объём хранилища
//BigTankVol = 20000;
BigTankVol = 20000;
//Минимальный объём топлива на северных заправочных станциях
MinStVol = 9000;
//Средний объём топлива на северных заправочных станциях
MedStVol = 10000;
//Максимальный объём топлива на северных заправочных станциях
MaxStVol = 12000;
//Скорость перекачки топлива (л/сек)
FlowRate = 20;
//Аргументы завершающей функции при заполнении хранилища
VikArgs = ["Победа сил обороны Таноа. Электростанция работает.", resistance];
//Аргументы завершающей функции при подрыве хранилища
DefArgs = ["Победа боевиков. Хранилище топлива уничтожено.", west];
//Завершающая функция при заполнении хранилища
VikFunc = a3a_fnc_endMission;
//Завершающая функция при подрыве хранилища
DefFunc = a3a_fnc_endMission;
firePoint = [0,0,0];
StopRefueling = [0, 0];
lnz_fnc_setRepMarker = {
private _markerstr = createMarkerLocal ["boom" + str _this, _this];
_markerstr setMarkerColorLocal "ColorBlack";
_markerstr setMarkerShapeLocal "ICON";
_markerstr setMarkerTypeLocal "hd_destroy";
tu_log_update_markers pushBack _markerstr;
};
lnz_fnc_finBoom = {
createVehicle ["Land_HelipadEmpty_F", position BigTank, [], 0, "CAN_COLLIDE"] spawn {
ANE = _this; publicVariable "ANE";
[_this,80,10,200,true,true,0.5] execVM "AL_fire\al_wild_fire.sqf";
BigTank setDamage 1;
position BigTank call lnz_fnc_setRepMarker;
sleep 5;
DefArgs call DefFunc;
};
};
lnz_fnc_bigBoom = {
[createVehicle ["Land_HelipadEmpty_F", firePoint, [], 0, "CAN_COLLIDE"], typeOf _this] spawn {
ANE = _this select 0;
{
_x setDamage 1;
} forEach nearestObjects [position ANE, [_this select 1], 50];
position ANE call lnz_fnc_setRepMarker;
sleep 5;
publicVariable "ANE";
[ANE,60,180,150,true,true,0.5] execVM "AL_fire\al_wild_fire.sqf";
};
};
lnz_fnc_smallBoom = {
createVehicle ["Land_HelipadEmpty_F", position _this, [], 0, "CAN_COLLIDE"] spawn {
ABE = _this; publicVariable "ABE";
[_this,20,100,80,true,true,0.5] execVM "AL_fire\al_wild_fire.sqf";
};
};
lnz_fnc_smallFire = {
_this spawn {
[_this,0,15,true,false] execVM "AL_fire\al_small_fire.sqf";
sleep 20;
hideObjectGlobal _this;
};
};
{
if (isNil {_x getVariable "lnz_isSeen"}) then {
private _k = 3;
private _pos = position _x;
private _dist = _x distance BigTank;
if (_dist < 2000) then {_k = 20};
if ((_pos select 1) > 13000) then {_k = 1};
private _station_members = nearestObjects [position _x, [typeOf _x], 50];
private _rnd_sourcefuelcargo = random [MinStVol, MedStVol, MaxStVol] / _k / count _station_members;
{
_x setVariable ["ace_refuel_fuelcounter", _rnd_sourcefuelcargo, true];
_x setVariable ["ace_refuel_currentfuelcargo", _rnd_sourcefuelcargo, true];
_x setVariable ["lnz_isSeen", true, false];
} forEach _station_members;
};
} forEach ((nearestObjects [[10000,10000], ["Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F"], 6400]) inAreaArray [[10000,10000], 5000, 4000, 0, true]);
"ASFE" addPublicVariableEventHandler {
[] call lnz_fnc_finBoom;
};
"ASNE" addPublicVariableEventHandler {
private _fireObj = _this select 1;
private _firePoint = position _fireObj;
if ((firePoint distance _firePoint) < 50) exitWith {};
firePoint = _firePoint;
_fireObj call lnz_fnc_bigBoom;
};
"ASBE" addPublicVariableEventHandler {
(_this select 1) call lnz_fnc_smallBoom;
};
"ASSE" addPublicVariableEventHandler {
(_this select 1) call lnz_fnc_smallFire;
};
"StartRefueling" addPublicVariableEventHandler {
(_this select 1) spawn {
scopeName "main";
private _target = _this select 1;
private _cid = _this select 0;
private _flowRate = FlowRate;
private "_extTankVol";
if (isNil {_target getVariable "lnz_extTankVol"}) then {
_extTankVol = getNumber (configFile >> "CfgVehicles" >> typeOf _target >> "ace_refuel_fuelCargo");
} else {
_extTankVol = _target getVariable "lnz_extTankVol";
};
if (_extTankVol == 0) then {
_extTankVol = BigTankVol;
};
if (isNil {_target getVariable "lnz_isRefueled"}) then {
_target setVariable ["lnz_isRefueled", true, false];
_target spawn {
if (isNil {_this getHitPointDamage "HitFuelTank"}) exitWith {};
private "_dmgTank";
private "_new_currentfuelcargo";
private "_current_extTankVol";
private _flowRate = FlowRate;
waitUntil {
if (!isNil {_this getVariable "lnz_extTankVol"}) then {
_dmgTank = _this getHitPointDamage "HitFuelTank";
if (_dmgTank > 0) then {
_current_extTankVol = _this getVariable "lnz_extTankVol";
_new_currentfuelcargo = (_this getVariable "ace_refuel_currentfuelcargo") - _flowRate*_dmgTank;
if (_new_currentfuelcargo > _current_extTankVol) then {
_this setVariable ["ace_refuel_currentfuelcargo", _new_currentfuelcargo, true];
};
};
};
sleep 1;
!alive _this;
};
};
};
private ["_ace_refuel_source","_ace_refuel_sourcecurrentfuelcargo","_ace_refuel_thiscurrentfuelcargo","_marg","_empVol"];
Ex = "Заправка начата!";
_cid publicVariableClient "Ex";
waitUntil {
if (!isNil "_ace_refuel_source") then {
if (!alive _ace_refuel_source) then {
Ex = "Заправщик уничтожен!";
_cid publicVariableClient "Ex";
breakTo "main";
};
};
if ((_target getHitPointDamage "HitFuelTank") == 1) then {
Ex = "Цистерна разрушена!";
_cid publicVariableClient "Ex";
breakTo "main";
};
if (_target isEqualTo (StopRefueling select 1)) then {
Ex = "Заправка остановлена";
_cid publicVariableClient "Ex";
(StopRefueling select 0) publicVariableClient "Ex";
StopRefueling = [0, 0];
breakTo "main";
};
_ace_refuel_thiscurrentfuelcargo = _target getVariable "ace_refuel_currentfuelcargo";
{
if ((_x isKindOf "ace_refuel_fuelNozzle") and !((_x getVariable "ace_refuel_source") isEqualTo _target) and ((_target getVariable "ace_refuel_currentfuelcargo") < _extTankVol) and (((_x getVariable "ace_refuel_source") getVariable "ace_refuel_currentfuelcargo") != 0)) then {
_ace_refuel_source = _x getVariable "ace_refuel_source";
_ace_refuel_sourcecurrentfuelcargo = _ace_refuel_source getVariable "ace_refuel_currentfuelcargo";
_marg = _flowRate;
_empVol = _extTankVol - _ace_refuel_thiscurrentfuelcargo;
if (_empVol < _flowRate) then {
_marg = _empVol;
};
if (_ace_refuel_sourcecurrentfuelcargo < _marg) then {
_marg = _ace_refuel_sourcecurrentfuelcargo;
};
if (isNil {_ace_refuel_source getVariable "ace_refuel_fuelcounter"}) then {
_ace_refuel_source setVariable ["ace_refuel_fuelcounter", (_ace_refuel_source getVariable "ace_refuel_currentfuelcargo"), true];
};
_ace_refuel_source setVariable ["ace_refuel_currentfuelcargo", _ace_refuel_sourcecurrentfuelcargo - _marg, true];
_target setVariable ["ace_refuel_currentfuelcargo", _ace_refuel_thiscurrentfuelcargo + _marg, true];
if (_marg == _ace_refuel_sourcecurrentfuelcargo) exitWith {
Ex = "Заправщик пуст";
_cid publicVariableClient "Ex";
};
if (_marg == _empVol) exitWith {
Ex = "Заправка завершена";
_cid publicVariableClient "Ex";
if (_target isEqualTo BigTank) then {
CanStart = true;
publicVariable "CanStart";
};
};
};
} forEach attachedObjects _target;
sleep 1;
false;
};
};
};
"DbIM" addPublicVariableEventHandler {
[] spawn {
sleep 30;
VikArgs call VikFunc;
};
};
BigTank addEventHandler ["HandleDamage", {
params ["_unit", "_selection", "_damage", "_source", "_projectile"];
if ((_selection == "") && (_damage >= 1) && (_projectile == "SatchelCharge_Remote_Ammo")) then {
[] call lnz_fnc_finBoom;
}; 0
}];
{
_x addEventHandler ["HandleDamage", {
params ["_unit", "_selection", "_damage", "_source", "_projectile"];
if ((_selection == "") && (_damage >= 1) && (_projectile == "SatchelCharge_Remote_Ammo")) then {
private _fireObj = _unit;
private _firePoint = position _fireObj;
if ((firePoint distance _firePoint) < 50) exitWith {};
firePoint = _firePoint;
_fireObj call lnz_fnc_bigBoom;
}; 0
}];
} forEach ((nearestObjects [[10000,10000], ["Land_FuelStation_01_pump_F","Land_FuelStation_02_pump_F"], 6400]) inAreaArray [[10000,10000], 5000, 4000, 0, true]);
{
_x addMPEventHandler ["MPKilled", {
params ["_unit", "_killer"];
if (isDedicated) then {
_unit call lnz_fnc_smallBoom;
} else {
_unit removeAllEventHandlers "HitPart";
}
}];
} forEach ((nearestObjects [[10000,10000], ["O_T_Truck_03_fuel_ghex_F","RHS_Ural_Fuel_VV_01","RDS_Van_01_fuel_F","C_Van_01_fuel_F"], 6400]) inAreaArray [[10000,10000], 5000, 4000, 0, true]);
// by ALIAS
player_onFire_from_vanillafire = true; // if true the player will take fire from vanilla assets like camp fire, burning vehicle
publicVariable "player_onFire_from_vanillafire";
damage_playeron_fire = 0.01; // amount of damage players will take from fire script
publicVariable "damage_playeron_fire";
set_vik_fire = false; // if true by default all mission vehicles will be set in fire when they are disabled
publicVariable "set_vik_fire";
// animations used by players to get rid of fire
off_fire = ["amovppnemstpsraswrfldnon_amovppnemevaslowwrfldl","amovppnemstpsraswrfldnon_amovppnemevaslowwrfldr","amovppnemstpsnonwnondnon_amovppnemevasnonwnondl","amovppnemstpsnonwnondnon_amovppnemevasnonwnondr","amovppnemstpsraswpstdnon_amovppnemevaslowwpstdl","amovppnemstpsraswpstdnon_amovppnemevaslowwpstdr"];
publicVariable "off_fire";
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
list_vegetation = ["TREE","SMALL TREE","BUSH","FOREST BORDER","FOREST TRIANGLE","FOREST SQUARE","FOREST"];
publicVariable "list_vegetation";
vik_list = ["CAR","TANK","PLANE","HELICOPTER","Motorcycle","Air","Ship"];
publicVariable "vik_list";
street_lapms = ["Land_fs_roof_F","Land_TTowerBig_2_F","Land_TTowerBig_1_F","Lamps_base_F","PowerLines_base_F","PowerLines_Small_base_F","Land_LampStreet_small_F"];
publicVariable "street_lapms";
buildings_list = ["BUILDING","HOUSE","CHURCH","CHAPEL","FUELSTATION","HOSPITAL","RUIN","BUNKER"];
publicVariable "buildings_list";
list_man = ["Civilian","SoldierGB","SoldierEB","SoldierWB"];
publicVariable "list_man";
/////////////////////// DO NOT EDIT LINES BELOW ---------------------------------------------------------------------------------
[] spawn {
if (isNil "allPlayers_on") then
{
chk_players = true;
while {chk_players} do
{
//allPlayers_on = allPlayers_on - entities "HeadlessClient_F";
allPlayers_on = call BIS_fnc_listPlayers;
publicVariable "allPlayers_on";
sleep 60;
};
}
};
if (set_vik_fire) then
{
[] spawn
{
chk_vik=true;
while {chk_vik} do
{
all_car = allMissionObjects "CAR";
all_tank = allMissionObjects "TANK";
all_moto = allMissionObjects "Motorcycle";
all_viks = all_car+all_tank+all_moto;
publicVariable "all_viks";
if (count all_viks>0) then {
{if (isNil{_x getVariable "on_alias_fire"}) then {_life_time_fire = 10+random 60;[_x,_life_time_fire,true,true] execVM "AL_fire\al_vehicle_fire.sqf"}} foreach all_viks
};
sleep 300
};
};
}; JFIF H H C
C "
} !1AQa"q2#BR$3br
%&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz
w !1AQaq"2B #3Rbr
$4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ? 3ԭTݘFNh[sdsk蟍OZo"Pk9^Vc?zbBXo'm?kzI`~|sjX>7JZj_fqjJMsY?}쯣Z:n%Ǘ#\xXrMtj7okZZ0*:v9'Z1k!_pֱz 6ڦk$3gXu\fgAhoz_㚻zoԛ1MCt+w~7 Zϩi*+`'n#7|#K5edPC?Rv^іKneG2$
Оxu8ߪ~Qҳ=-.x{¶k|@$ ux_iܭHo; #:
nd