2016-07-24 20:17:24 +00:00
|
|
|
// Config constant globals
|
2016-07-25 17:49:54 +00:00
|
|
|
LZCOUNT = 86;
|
2016-07-25 21:58:29 +00:00
|
|
|
STARTPRIORITY = 1000;
|
2016-07-26 01:16:03 +00:00
|
|
|
EXLUDESPAWNLZS = [(missionNamespace getVariable "lz33")]; // Exclude the airport location near spawn marker
|
2016-07-24 16:23:46 +00:00
|
|
|
|
2016-07-25 17:49:54 +00:00
|
|
|
// Precompile code
|
|
|
|
execVM "precompile.sqf";
|
2016-07-24 20:17:24 +00:00
|
|
|
|
2016-07-25 17:49:54 +00:00
|
|
|
// We can't run this before
|
2016-07-24 20:17:24 +00:00
|
|
|
if (isServer) then
|
|
|
|
{
|
2016-07-31 15:32:48 +00:00
|
|
|
// Keep track of how many LZ we have created, used to give tasks unique names and priorities
|
|
|
|
lzCounter = 0;
|
|
|
|
publicVariable "lzCounter";
|
|
|
|
taskIds = [];
|
|
|
|
publicVariable "taskIds";
|
|
|
|
|
2016-07-25 21:58:29 +00:00
|
|
|
//Handle MP parameters
|
|
|
|
_handle = execVM "readparams.sqf";
|
|
|
|
waitUntil {isNull _handle};
|
2016-08-02 22:06:31 +00:00
|
|
|
if (autoSpawnTasks) then
|
|
|
|
{
|
|
|
|
[EXLUDESPAWNLZS] spawn taskSpawner;
|
|
|
|
}
|
2016-07-24 21:01:49 +00:00
|
|
|
};
|
2016-07-25 17:49:54 +00:00
|
|
|
|
|
|
|
// Flag init complete
|
|
|
|
missionInitComplete = true;
|
2016-07-25 21:58:29 +00:00
|
|
|
publicVariable "missionInitComplete";
|