2016-07-25 17:49:54 +00:00
|
|
|
//Time of day
|
|
|
|
_time = paramsArray select 0;
|
|
|
|
if (_time != 1) then
|
|
|
|
{
|
|
|
|
skipTime (_time - daytime + 24 ) % 24;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
skiptime (floor random 24);
|
|
|
|
};
|
|
|
|
|
|
|
|
//LZ size
|
|
|
|
lzSize = paramsArray select 1;
|
|
|
|
publicVariable "lzSize";
|
|
|
|
|
|
|
|
//Smoke setting
|
|
|
|
bSmoke = if ((paramsArray select 2) == 1) then {true} else {false};
|
|
|
|
publicVariable "bSmoke";
|
|
|
|
|
|
|
|
//Hot LZ chance
|
|
|
|
_hotLZParam = paramsArray select 3;
|
|
|
|
hotLZChance = if (_hotLZParam > 0) then {_hotLZParam / 100} else {0.0};
|
|
|
|
publicVariable "hotLZChance";
|
|
|
|
|
|
|
|
//Anti air chance
|
|
|
|
_AAParam = paramsArray select 4;
|
|
|
|
AAChance = if (_AAParam > 0) then {_AAParam / 100} else {0.0};
|
|
|
|
publicVariable "AAChance";
|
|
|
|
|
|
|
|
lzList = [];
|
|
|
|
_x = 0;
|
|
|
|
while {_x < LZCOUNT} do
|
|
|
|
{
|
2016-07-26 08:23:07 +00:00
|
|
|
[lzList, (missionNamespace getVariable (format["lz%1", _x + 1]))] call BIS_fnc_arrayPush;
|
2016-07-25 17:49:54 +00:00
|
|
|
_x = _x + 1;
|
|
|
|
};
|
2016-07-31 16:47:03 +00:00
|
|
|
|
|
|
|
LZMinDistace = paramsArray select 5;
|
|
|
|
publicVariable "LZMinDistace";
|
2016-07-31 17:06:14 +00:00
|
|
|
|
2021-06-24 14:16:32 +00:00
|
|
|
LZMaxDistace = paramsArray select 6;
|
|
|
|
publicVariable "LZMaxDistace";
|
|
|
|
|
|
|
|
squadsLinger = paramsArray select 7;
|
2016-07-31 17:06:14 +00:00
|
|
|
publicVariable "squadsLinger";
|
2016-08-02 22:06:31 +00:00
|
|
|
|
2021-06-24 14:16:32 +00:00
|
|
|
autoSpawnTasks = if ((paramsArray select 8) == 1) then {true} else {false};
|
2016-08-02 22:06:31 +00:00
|
|
|
publicVariable "autoSpawnTasks";
|
2021-06-13 13:18:56 +00:00
|
|
|
|
2021-06-24 14:16:32 +00:00
|
|
|
enemyDistace = paramsArray select 9;
|
|
|
|
publicVariable "enemyDistace";
|