This commit is contained in:
IT07 2016-07-19 21:28:01 +02:00
parent 6c21281fa0
commit 809d1e70e1
2 changed files with 10 additions and 50 deletions

View File

@ -21,6 +21,7 @@
**[TWEAKED]** aiInventory settings <br /> **[TWEAKED]** aiInventory settings <br />
**[TWEAKED]** crate loot settings <br /> **[TWEAKED]** crate loot settings <br />
**[TWEAKED]** config comments <br /> **[TWEAKED]** config comments <br />
**[TWEAKED]** VEMFr startup RPT output <br />
<br /> <br />
#### `v0750.1` #### `v0750.1`

View File

@ -5,60 +5,19 @@
launches VEMFr (You don't say?) launches VEMFr (You don't say?)
*/ */
if isNil "VEMFrHasStarted" then if (isNil "VEMFrHasStarted") then
{ {
VEMFrHasStarted = call compileFinal "true"; VEMFrHasStarted = call compileFinal "true";
["Launcher", 2, format["/// STARTING VEMFr v%1 (%2) \\\", getText (configFile >> "CfgPatches" >> "a3_vemf_reloaded" >> "version"), call VEMFr_fnc_whichMod]] ExecVM ("log" call VEMFr_fnc_scriptPath); ["Launcher", 2, format["/// booting VEMFr v%1 (%2) \\\", getText (configFile >> "CfgPatches" >> "a3_vemf_reloaded" >> "version"), call VEMFr_fnc_whichMod]] ExecVM ("log" call VEMFr_fnc_scriptPath);
uiNamespace setVariable ["VEMFrUsedLocs", []]; uiNamespace setVariable ["VEMFrUsedLocs", []];
uiNamespace setVariable ["VEMFrAttackedFlags", []];
uiNamespace setVariable ["VEMFrHcLoad", [[],[]]]; uiNamespace setVariable ["VEMFrHcLoad", [[],[]]];
[] spawn if (("overridesToRPT" call VEMFr_fnc_config) isEqualTo 1) then { [] ExecVM ("overrides" call VEMFr_fnc_scriptPath) };
{
if (("overridesToRPT" call VEMFr_fnc_config) isEqualTo 1) then
{
_r = configProperties [configFile >> "CfgVemfReloadedOverrides", "true", false];
{
if (isClass _x) then
{
_c1 = configName _x;
_l1 = configProperties [configFile >> "CfgVemfReloadedOverrides" >> _c1, "true", false];
{
if (isClass _x) then
{
_c2 = configName _x;
_l2 = configProperties [configFile >> "CfgVemfReloadedOverrides" >> _c1 >> _c2, "true", false];
{
if not(isClass _x) then
{
["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2 >> %3'", _c1, _c2, configName _x]] ExecVM ("log" call VEMFr_fnc_scriptPath);
};
} forEach _l2;
} else
{
["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2", _c1, configName _x]] ExecVM ("log" call VEMFr_fnc_scriptPath);
};
} forEach _l1;
} else
{
["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1'", configName _x]] ExecVM ("log" call VEMFr_fnc_scriptPath);
};
} forEach _r;
};
_s = ["checkLoot","missionTimer","REMOTEguard","spawnStaticAI"];
{ {
ExecVM format["a3_vemf_reloaded\sqf\%1.sqf", _x]; _h = [] ExecVM format["a3_vemf_reloaded\sqf\%1.sqf", _x];
} forEach _s; if ((_x isEqualTo "checkClasses") OR (_x isEqualTo "spawnStaticAI")) then { waitUntil { if (scriptDone _h) then {true} else {uiSleep 0.1; false} } };
} forEach ["checkClasses","missionTimer","REMOTEguard","spawnStaticAI"];
if ((call VEMFr_fnc_whichMod) isEqualTo "Epoch") then { west setFriend [independent, 0]; independent setFriend [west, 0] };
if ((call VEMFr_fnc_whichMod) isEqualTo "Epoch") then } else { ["Launcher", 0, format["a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!", VEMFrHasStarted]] ExecVM ("log" call VEMFr_fnc_scriptPath) };
{
west setFriend [independent, 0];
independent setFriend [west, 0];
};
};
} else
{
["Launcher", 0, format["a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!", VEMFrHasStarted]] ExecVM ("log" call VEMFr_fnc_scriptPath);
};