arma3_missions/helotraining_rewrite.Altis/init.sqf

74 lines
1.7 KiB
Plaintext
Raw Normal View History

// Config constant globals
_lzCount = 86;
// Compile helpers
2016-07-24 21:14:41 +00:00
createDropoffLZ = compile preProcessfile "createDropoffLZ.sqf";
2016-07-24 21:32:45 +00:00
createPickupLZ = compile preProcessfile "createPickupLZ.sqf";
2016-07-24 21:14:41 +00:00
createSquad = compile preProcessfile "createSquad.sqf";
2016-07-24 21:05:39 +00:00
createEnemySquads = compile preProcessfile "createEnemySquads.sqf";
2016-07-24 21:22:07 +00:00
loadSquad = compile preProcessfile "loadSquad.sqf";
2016-07-24 21:29:19 +00:00
ejectSquad = compile preProcessfile "ejectSquad.sqf";
deleteSquads = compile preProcessfile "deleteSquads.sqf";
2016-07-24 21:05:39 +00:00
playerVehicleInList = compile preProcessfile "playerVehicleInList.sqf";
playerVehicleInListBool = compile preProcessfile "playerVehicleInListBool.sqf";
2016-07-24 21:14:41 +00:00
getSideTasks = compile preProcessfile "getSideTasks.sqf";
execVM "briefing.sqf";
//Handle MP parameters
//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
{
_lz = missionNamespace getVariable ("lz" + format["%1", _x + 1]);
lzList = lzList + [_lz];
_x = _x + 1;
};
publicVariable "lzList";
lzCounter = 0;
publicVariable "lzCounter";
missionInitComplete = true;
publicVariable "missionInitComplete";
if (isServer) then
{
2016-07-24 21:48:33 +00:00
execVM "taskSpawner.sqf";
2016-07-24 21:01:49 +00:00
};