diff --git a/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_Lists.sqf b/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_Lists.sqf index 9b444bb..a023c0a 100644 --- a/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_Lists.sqf +++ b/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_Lists.sqf @@ -20,4 +20,3 @@ _staticMissions = [ //["Exile","Altis","staticMissionExample2_Exile.sqf"] ]; -//diag_log "[blckeagls] GMS_UMS_StaticMissions_Lists.sqf "; diff --git a/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_init.sqf b/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_init.sqf index 5ed803e..3e6853c 100644 --- a/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_init.sqf +++ b/@GMS/addons/custom_server/Missions/UMS/GMS_UMS_StaticMissions_init.sqf @@ -9,28 +9,19 @@ http://creativecommons.org/licenses/by-nc-sa/4.0/ */ #include "\q\addons\custom_server\Configs\blck_defines.hpp"; -//if (!isServer) exitWith{}; - -//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf "; //static mission descriptor for code: [position,level, numAI or [min,maxAI],patrolRadius, respawn, group[groupNull],spawnedAt[0],respawn[0]] #include "\q\addons\custom_server\Configs\blck_defines.hpp"; #include "\q\addons\custom_server\Missions\UMS\GMS_UMS_StaticMissions_Lists.sqf"; -//while{ (isNil "blck_sm_functionsLoaded"; uiSleep 0.1]; -uiSleep 3; + + private["_mod","_map","_missionMod","_missionMap","_missionLocation","_missionDataFile"]; -//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf "; -_mod = toLower(call blck_fnc_getModType); -//diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf ",_mod]; -//diag_log format["[blckeagls] GMS__UMS_StaticMissions_init <_staticMissions> = %1",_staticMissions]; -//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf "; -_map = toLower worldName; -//diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf ",_map]; +_mod = toLower(toLower blck_modType); + + { - diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf ",_x]; - diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf ",_map,_mod]; - if ((_map) isEqualTo toLower(_x select 1)) then + if ((toLower worldName) isEqualTo toLower(_x select 1)) then { if ((_mod isEqualTo "epoch") && (toLower(_x select 0) isEqualTo "epoch")) then { @@ -43,8 +34,6 @@ _map = toLower worldName; call compilefinal preprocessFileLineNumbers format["\q\addons\custom_server\Missions\UMS\staticMissions\%1",(_x select 2)]; }; }; - uiSleep 1; }forEach _staticMissions; -//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf ";