a3_vemf_reloaded/exile_vemf_reloaded/functions/fn_launch.sqf

54 lines
1.8 KiB
Plaintext
Raw Normal View History

2016-04-06 16:04:51 +00:00
/*
Author: IT07
Description:
launches VEMFr (You don't say?)
*/
2016-05-10 12:18:49 +00:00
["Launcher", 2, format["/// STARTING v%1 \\\", getText (configFile >> "CfgPatches" >> "exile_vemf_reloaded" >> "version")]] ExecVM "exile_vemf_reloaded\sqf\log.sqf";
2016-04-06 16:04:51 +00:00
uiNamespace setVariable ["VEMFrUsedLocs", []];
2016-04-16 21:39:26 +00:00
uiNamespace setVariable ["VEMFrAttackedFlags", []];
2016-04-06 16:04:51 +00:00
uiNamespace setVariable ["VEMFrHcLoad", []];
2016-04-10 15:25:24 +00:00
2016-04-16 11:11:18 +00:00
[] spawn
2016-04-10 15:25:24 +00:00
{
2016-05-20 11:54:12 +00:00
if ("overridesToRPT" call VEMFr_fnc_getSetting isEqualTo 1) then
2016-04-10 15:25:24 +00:00
{
2016-05-20 11:54:12 +00:00
_root = configProperties [configFile >> "CfgVemfReloadedOverrides", "true", false];
2016-04-10 15:25:24 +00:00
{
if (isClass _x) then
2016-04-10 15:25:24 +00:00
{
2016-05-20 11:54:12 +00:00
_classLv1Name = configName _x;
_levelOne = configProperties [configFile >> "CfgVemfReloadedOverrides" >> _classLv1Name, "true", false];
2016-04-16 11:11:18 +00:00
{
2016-05-20 11:54:12 +00:00
if (isClass _x) then
{
_classLv2Name = configName _x;
_levelTwo = configProperties [configFile >> "CfgVemfReloadedOverrides" >> _classLv1Name >> _classLv2Name, "true", false];
{
if not(isClass _x) then
{
["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2 >> %3'", _classLv1Name, _classLv2Name, configName _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf";
};
} forEach _levelTwo;
} else
{
["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2", _classLv1Name, configName _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf";
};
} forEach _levelOne;
} else
{
["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1'", configName _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf";
};
} forEach _root;
};
2016-04-15 15:30:08 +00:00
2016-05-20 11:54:12 +00:00
_scripts = ["checkLoot","missionTimer","REMOTEguard","spawnStaticAI"];
{
ExecVM format["exile_vemf_reloaded\sqf\%1.sqf", _x];
} forEach _scripts;
2016-04-15 15:30:08 +00:00
2016-05-20 11:54:12 +00:00
west setFriend [independent, 0];
independent setFriend [west, 0];
};