From e05177a7a69048d657788ffe7d9e0dab747e5e8b Mon Sep 17 00:00:00 2001 From: IT07 Date: Fri, 15 Apr 2016 17:30:08 +0200 Subject: [PATCH] Override logs come first now --- exile_vemf_reloaded/functions/fn_launch.sqf | 88 ++++++++++----------- 1 file changed, 42 insertions(+), 46 deletions(-) diff --git a/exile_vemf_reloaded/functions/fn_launch.sqf b/exile_vemf_reloaded/functions/fn_launch.sqf index bc494d3..2149f29 100644 --- a/exile_vemf_reloaded/functions/fn_launch.sqf +++ b/exile_vemf_reloaded/functions/fn_launch.sqf @@ -9,6 +9,48 @@ uiNamespace setVariable ["VEMFrUsedLocs", []]; uiNamespace setVariable ["VEMFrHcLoad", []]; +if ("overridesToRPT" call VEMFr_fnc_getSetting isEqualTo 1) then +{ + _root = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride", "true", false]; + if (count _root > 0) then + { + { + if (isClass _x) then + { + _classLv1Name = configName _x; + _levelOne = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride" >> _classLv1Name, "true", false]; + if (count _levelOne > 0) then + { + { + if (isClass _x) then + { + _classLv2Name = configName _x; + _levelTwo = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride" >> _classLv1Name >> _classLv2Name, "true", false]; + if (count _levelTwo > 0) then + { + { + if not(isClass _x) then + { + ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2 >> %3'", _classLv1Name, _classLv2Name, configName _x]] spawn VEMFr_fnc_log; + }; + } forEach _levelTwo; + }; + }; + if not(isClass _x) then + { + ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2", _classLv1Name, configName _x]] spawn VEMFr_fnc_log; + }; + } forEach _levelOne; + }; + }; + if not(isClass _x) then + { + ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1'", configName _x]] spawn VEMFr_fnc_log; + }; + } forEach _root; + }; +}; + _scripts = ["checkLoot","missionTimer","REMOTEguard","spawnStaticAI"]; { private ["_script"]; @@ -18,49 +60,3 @@ _scripts = ["checkLoot","missionTimer","REMOTEguard","spawnStaticAI"]; west setFriend [independent, 0]; independent setFriend [west, 0]; - -[] spawn -{ - uiSleep 4; - if ("overridesToRPT" call VEMFr_fnc_getSetting isEqualTo 1) then - { - _root = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride", "true", false]; - if (count _root > 0) then - { - { - if (isClass _x) then - { - _classLv1Name = configName _x; - _levelOne = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride" >> _classLv1Name, "true", false]; - if (count _levelOne > 0) then - { - { - if (isClass _x) then - { - _classLv2Name = configName _x; - _levelTwo = configProperties [configFile >> "CfgVemfReloaded" >> "CfgSettingsOverride" >> _classLv1Name >> _classLv2Name, "true", false]; - if (count _levelTwo > 0) then - { - { - if not(isClass _x) then - { - ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2 >> %3'", _classLv1Name, _classLv2Name, configName _x]] spawn VEMFr_fnc_log; - }; - } forEach _levelTwo; - }; - }; - if not(isClass _x) then - { - ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2", _classLv1Name, configName _x]] spawn VEMFr_fnc_log; - }; - } forEach _levelOne; - }; - }; - if not(isClass _x) then - { - ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1'", configName _x]] spawn VEMFr_fnc_log; - }; - } forEach _root; - }; - }; -};