2016-04-12 10:14:07 +00:00
|
|
|
if (!isServer) exitWith {};
|
|
|
|
|
|
|
|
|
2016-05-08 11:15:04 +00:00
|
|
|
_logDetail = format ["[OCCUPATION]:: Occupation %2 Adding modules to Exile system thread manager at %1",time,SC_occupationVersion];
|
2016-04-02 19:06:53 +00:00
|
|
|
[_logDetail] call SC_fnc_log;
|
2016-03-19 19:00:44 +00:00
|
|
|
|
2016-04-22 12:19:51 +00:00
|
|
|
[] call ExileClient_system_map_initialize;
|
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-04-20 14:25:17 +00:00
|
|
|
if (SC_fastNights) then
|
|
|
|
{
|
|
|
|
fnc_checkMultiplier = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationFastNights.sqf";
|
|
|
|
[60, fnc_checkMultiplier, [], true] call ExileServer_system_thread_addTask;
|
|
|
|
};
|
|
|
|
|
|
|
|
if(SC_occupyTraders) then
|
|
|
|
{
|
|
|
|
uiSleep 15; // delay the start
|
|
|
|
call compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationTraders.sqf";
|
|
|
|
};
|
|
|
|
|
2016-03-30 08:33:25 +00:00
|
|
|
if(SC_occupyLootCrates) then
|
|
|
|
{
|
|
|
|
if(SC_occupyLootCratesMarkers) then
|
|
|
|
{
|
2016-04-11 12:59:33 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-03-30 08:33:25 +00:00
|
|
|
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-04-06 10:29:59 +00:00
|
|
|
fnc_occupationStatic = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationStatic.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationStatic, [], 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-05-04 08:57:54 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-06 10:29:59 +00:00
|
|
|
fnc_occupationSky = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationSky.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationSky, [], true] call ExileServer_system_thread_addTask;
|
|
|
|
};
|
|
|
|
|
|
|
|
if(SC_occupySea) then
|
|
|
|
{
|
2016-05-04 08:57:54 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-06 10:29:59 +00:00
|
|
|
fnc_occupationSea = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationSea.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationSea, [], 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-05-04 08:57:54 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-06 10:29:59 +00:00
|
|
|
fnc_occupationVehicle = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationVehicle.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationVehicle, [], 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-05-04 08:57:54 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-06 10:29:59 +00:00
|
|
|
fnc_occupationPlaces = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationPlaces.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationPlaces, [], 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-05-04 08:57:54 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-06 10:29:59 +00:00
|
|
|
fnc_occupationMilitary = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationMilitary.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationMilitary, [], true] call ExileServer_system_thread_addTask;
|
2016-03-17 15:48:59 +00:00
|
|
|
};
|
|
|
|
|
2016-04-26 09:29:50 +00:00
|
|
|
if(SC_occupyTransport) then
|
2016-04-22 12:19:51 +00:00
|
|
|
{
|
2016-04-26 09:29:50 +00:00
|
|
|
[] execVM "\x\addons\a3_exile_occupation\scripts\occupationTransport.sqf";
|
2016-04-22 12:19:51 +00:00
|
|
|
};
|
2016-04-11 12:59:33 +00:00
|
|
|
|
2016-05-04 08:57:54 +00:00
|
|
|
uiSleep 15; // delay the start
|
2016-04-06 10:29:59 +00:00
|
|
|
fnc_occupationMonitor = compile preprocessFileLineNumbers "\x\addons\a3_exile_occupation\scripts\occupationMonitor.sqf";
|
|
|
|
[SC_refreshTime, fnc_occupationMonitor, [], true] call ExileServer_system_thread_addTask;
|
|
|
|
|
2016-04-02 19:06:53 +00:00
|
|
|
_logDetail = format ["[OCCUPATION]:: threads added at %1",time];
|
|
|
|
[_logDetail] call SC_fnc_log;
|