Removed some unnecessary code or commented out code.
Thanks to HeMan for working on this.
This commit is contained in:
parent
b7c9bf3b47
commit
a5b40c08c3
@ -20,4 +20,3 @@ _staticMissions = [
|
|||||||
//["Exile","Altis","staticMissionExample2_Exile.sqf"]
|
//["Exile","Altis","staticMissionExample2_Exile.sqf"]
|
||||||
];
|
];
|
||||||
|
|
||||||
//diag_log "[blckeagls] GMS_UMS_StaticMissions_Lists.sqf <Loaded>";
|
|
||||||
|
@ -9,28 +9,19 @@
|
|||||||
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||||
*/
|
*/
|
||||||
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
|
||||||
//if (!isServer) exitWith{};
|
|
||||||
|
|
||||||
//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf <Initializing Static Missions>";
|
|
||||||
|
|
||||||
//static mission descriptor for code: [position,level, numAI or [min,maxAI],patrolRadius, respawn, group[groupNull],spawnedAt[0],respawn[0]]
|
//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\Configs\blck_defines.hpp";
|
||||||
#include "\q\addons\custom_server\Missions\UMS\GMS_UMS_StaticMissions_Lists.sqf";
|
#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"];
|
private["_mod","_map","_missionMod","_missionMap","_missionLocation","_missionDataFile"];
|
||||||
//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf <Getting Mod Type>";
|
_mod = toLower(toLower blck_modType);
|
||||||
_mod = toLower(call blck_fnc_getModType);
|
|
||||||
//diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf <mod type = %1>",_mod];
|
|
||||||
//diag_log format["[blckeagls] GMS__UMS_StaticMissions_init <_staticMissions> = %1",_staticMissions];
|
|
||||||
//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf <Getting map name>";
|
|
||||||
_map = toLower worldName;
|
|
||||||
//diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf <map name = %1>",_map];
|
|
||||||
{
|
{
|
||||||
diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf <Evaluating Mission = %1>",_x];
|
if ((toLower worldName) isEqualTo toLower(_x select 1)) then
|
||||||
diag_log format["[blckeagls] GMS__UMS_StaticMissions_init.sqf <worldName = %1 | _mod = %2>",_map,_mod];
|
|
||||||
if ((_map) isEqualTo toLower(_x select 1)) then
|
|
||||||
{
|
{
|
||||||
if ((_mod isEqualTo "epoch") && (toLower(_x select 0) isEqualTo "epoch")) 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)];
|
call compilefinal preprocessFileLineNumbers format["\q\addons\custom_server\Missions\UMS\staticMissions\%1",(_x select 2)];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
uiSleep 1;
|
|
||||||
}forEach _staticMissions;
|
}forEach _staticMissions;
|
||||||
|
|
||||||
//diag_log "[blckeagls] GMS__UMS_StaticMissions_init.sqf <Static Missions Loaded>";
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user