arma3_missions/helotraining_mp.Altis/readparams.sqf
Eero af Heurlin dfa0e68e7b
Merge mijas improvements and my fixes (#8)
* mija changes (#7)

mijas changes

* separate players into their own groups

* fix some leftover typos and sort actions by priority

Co-authored-by: mija <i.see.living.people@gmail.com>
2021-06-24 17:16:32 +03:00

52 lines
1.1 KiB
Plaintext

//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
{
[lzList, (missionNamespace getVariable (format["lz%1", _x + 1]))] call BIS_fnc_arrayPush;
_x = _x + 1;
};
LZMinDistace = paramsArray select 5;
publicVariable "LZMinDistace";
LZMaxDistace = paramsArray select 6;
publicVariable "LZMaxDistace";
squadsLinger = paramsArray select 7;
publicVariable "squadsLinger";
autoSpawnTasks = if ((paramsArray select 8) == 1) then {true} else {false};
publicVariable "autoSpawnTasks";
enemyDistace = paramsArray select 9;
publicVariable "enemyDistace";