2016-04-02 19:06:53 +00:00
|
|
|
_logDetail = format ["[OCCUPATION]:: Occupation v%2 Giving the server time to start before starting [OCCUPATION] (%1)",time,SC_occupationVersion];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
2016-03-17 15:48:59 +00:00
|
|
|
uiSleep 30;
|
2016-04-02 19:06:53 +00:00
|
|
|
_logDetail = format ["[OCCUPATION]:: Occupation v%2 Initialised at %1",time,SC_occupationVersion];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
2016-03-19 19:00:44 +00:00
|
|
|
|
2016-03-17 15:48:59 +00:00
|
|
|
|
2016-03-23 11:05:19 +00:00
|
|
|
if(SC_debug) then { SC_refreshTime = 60; }else{ SC_refreshTime = 300; };
|
2016-03-18 11:02:30 +00:00
|
|
|
|
2016-03-17 15:48:59 +00:00
|
|
|
// Add selected occupation scripts to Exile Threading System
|
2016-03-19 19:00:44 +00:00
|
|
|
|
2016-03-30 08:33:25 +00:00
|
|
|
if(SC_occupyLootCrates) then
|
|
|
|
{
|
|
|
|
if(SC_occupyLootCratesMarkers) then
|
|
|
|
{
|
|
|
|
fnc_occupationDeleteMapMarker = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\deleteMapMarkers.sqf";
|
|
|
|
[10, fnc_occupationDeleteMapMarker, [], true] call ExileServer_system_thread_addTask;
|
|
|
|
};
|
|
|
|
call compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationLootCrates.sqf";
|
|
|
|
};
|
|
|
|
|
|
|
|
if(SC_occupyHeliCrashes) then
|
|
|
|
{
|
2016-04-02 19:06:53 +00:00
|
|
|
uiSleep 15; // delay the start
|
|
|
|
call compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationHeliCrashes.sqf";
|
2016-03-30 08:33:25 +00:00
|
|
|
};
|
|
|
|
|
2016-03-23 11:05:19 +00:00
|
|
|
if(SC_occupyStatic) then
|
2016-03-19 19:00:44 +00:00
|
|
|
{
|
2016-03-23 11:05:19 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-03-30 08:33:25 +00:00
|
|
|
fnc_occupationStaticMonitor = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationStatic.sqf";
|
2016-03-23 11:05:19 +00:00
|
|
|
[SC_refreshTime, fnc_occupationStaticMonitor, [], true] call ExileServer_system_thread_addTask;
|
2016-03-19 19:00:44 +00:00
|
|
|
};
|
|
|
|
|
2016-03-23 11:05:19 +00:00
|
|
|
if(SC_occupySky) then
|
2016-03-19 19:00:44 +00:00
|
|
|
{
|
2016-03-23 11:05:19 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-03-30 08:33:25 +00:00
|
|
|
fnc_occupationSkyMonitor = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationSky.sqf";
|
2016-03-23 11:05:19 +00:00
|
|
|
[SC_refreshTime, fnc_occupationSkyMonitor, [], true] call ExileServer_system_thread_addTask;
|
2016-03-19 19:00:44 +00:00
|
|
|
};
|
|
|
|
|
2016-03-23 11:05:19 +00:00
|
|
|
if(SC_occupyVehicle) then
|
2016-03-19 19:00:44 +00:00
|
|
|
{
|
2016-03-23 11:05:19 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-03-30 08:33:25 +00:00
|
|
|
fnc_occupationVehicleMonitor = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationVehicle.sqf";
|
2016-03-23 11:05:19 +00:00
|
|
|
[SC_refreshTime, fnc_occupationVehicleMonitor, [], true] call ExileServer_system_thread_addTask;
|
2016-03-19 19:00:44 +00:00
|
|
|
};
|
|
|
|
|
2016-03-23 11:05:19 +00:00
|
|
|
if(SC_occupyPlaces) then
|
2016-03-17 15:48:59 +00:00
|
|
|
{
|
2016-03-23 11:05:19 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-02 19:06:53 +00:00
|
|
|
fnc_occupationMonitor = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationPlaces.sqf";
|
2016-03-23 11:05:19 +00:00
|
|
|
[SC_refreshTime, fnc_occupationMonitor, [], true] call ExileServer_system_thread_addTask;
|
2016-03-17 15:48:59 +00:00
|
|
|
};
|
|
|
|
|
2016-03-23 11:05:19 +00:00
|
|
|
if(SC_occupyMilitary) then
|
2016-03-17 15:48:59 +00:00
|
|
|
{
|
2016-03-23 11:05:19 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-03-30 08:33:25 +00:00
|
|
|
fnc_occupationMilitaryMonitor = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationMilitary.sqf";
|
2016-03-23 11:05:19 +00:00
|
|
|
[SC_refreshTime, fnc_occupationMilitaryMonitor, [], true] call ExileServer_system_thread_addTask;
|
2016-03-17 15:48:59 +00:00
|
|
|
};
|
|
|
|
|
2016-04-02 19:06:53 +00:00
|
|
|
_logDetail = format ["[OCCUPATION]:: threads added at %1",time];
|
|
|
|
[_logDetail] call SC_fnc_log;
|