mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
Tweaks
This commit is contained in:
parent
6c21281fa0
commit
809d1e70e1
@ -21,6 +21,7 @@
|
||||
**[TWEAKED]** aiInventory settings <br />
|
||||
**[TWEAKED]** crate loot settings <br />
|
||||
**[TWEAKED]** config comments <br />
|
||||
**[TWEAKED]** VEMFr startup RPT output <br />
|
||||
<br />
|
||||
|
||||
#### `v0750.1`
|
||||
|
@ -5,60 +5,19 @@
|
||||
launches VEMFr (You don't say?)
|
||||
*/
|
||||
|
||||
if isNil "VEMFrHasStarted" then
|
||||
if (isNil "VEMFrHasStarted") then
|
||||
{
|
||||
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 ["VEMFrAttackedFlags", []];
|
||||
uiNamespace setVariable ["VEMFrHcLoad", [[],[]]];
|
||||
|
||||
[] spawn
|
||||
{
|
||||
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;
|
||||
};
|
||||
if (("overridesToRPT" call VEMFr_fnc_config) isEqualTo 1) then { [] ExecVM ("overrides" call VEMFr_fnc_scriptPath) };
|
||||
|
||||
_s = ["checkLoot","missionTimer","REMOTEguard","spawnStaticAI"];
|
||||
{
|
||||
ExecVM format["a3_vemf_reloaded\sqf\%1.sqf", _x];
|
||||
} forEach _s;
|
||||
_h = [] ExecVM format["a3_vemf_reloaded\sqf\%1.sqf", _x];
|
||||
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];
|
||||
};
|
||||
};
|
||||
} else
|
||||
{
|
||||
["Launcher", 0, format["a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!", VEMFrHasStarted]] ExecVM ("log" call VEMFr_fnc_scriptPath);
|
||||
};
|
||||
if ((call VEMFr_fnc_whichMod) isEqualTo "Epoch") then { 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) };
|
||||
|
Loading…
Reference in New Issue
Block a user