diff --git a/exile_vemf_reloaded/functions/fn_checkSide.sqf b/exile_vemf_reloaded/functions/fn_checkSide.sqf index b13ff43..efa4347 100644 --- a/exile_vemf_reloaded/functions/fn_checkSide.sqf +++ b/exile_vemf_reloaded/functions/fn_checkSide.sqf @@ -43,7 +43,7 @@ if (_this isEqualType "") then }; } else { - ["fn_checkSide", 0, format["Failed to find faction of %1", _this]] spawn VEMFr_fnc_log; + ["fn_checkSide", 0, format["Failed to find faction of %1", _this]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; if not isNil"_return" then { diff --git a/exile_vemf_reloaded/functions/fn_findPos.sqf b/exile_vemf_reloaded/functions/fn_findPos.sqf index 23d21b0..5a721d3 100644 --- a/exile_vemf_reloaded/functions/fn_findPos.sqf +++ b/exile_vemf_reloaded/functions/fn_findPos.sqf @@ -120,7 +120,7 @@ if not(_mode isEqualTo "") then }; if not(count _x isEqualTo 2) then { - ["fn_findPos", 0, format["found invalid entry in mission blacklist: %1", _x]] spawn VEMFr_fnc_log; + ["fn_findPos", 0, format["found invalid entry in mission blacklist: %1", _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _blackPos; }; diff --git a/exile_vemf_reloaded/functions/fn_getSetting.sqf b/exile_vemf_reloaded/functions/fn_getSetting.sqf index cf456f7..d494c07 100644 --- a/exile_vemf_reloaded/functions/fn_getSetting.sqf +++ b/exile_vemf_reloaded/functions/fn_getSetting.sqf @@ -62,7 +62,7 @@ if (_this isEqualType []) then { private ["_path","_build"]; _path = _this select 0; - //["fn_getSetting", 1, format["_path = %1", _path]] spawn VEMFr_fnc_log; + //["fn_getSetting", 1, format["_path = %1", _path]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _build = { { @@ -74,16 +74,16 @@ if (_this isEqualType []) then _cfg = configFile >> "CfgVemfReloadedOverrides"; call _build; _cfg = _cfg >> _x; - //["fn_getSetting", 1, format["_cfg after first build = %1", _cfg]] spawn VEMFr_fnc_log; + //["fn_getSetting", 1, format["_cfg after first build = %1", _cfg]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; if (isNull _cfg) then { - //["fn_getSetting", 1, format["_cfg isNull. Resetting _cfg...."]] spawn VEMFr_fnc_log; + //["fn_getSetting", 1, format["_cfg isNull. Resetting _cfg...."]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _cfg = configFile >> "CfgVemfReloaded"; call _build; _cfg = _cfg >> _x; - //["fn_getSetting", 1, format["_cfg after second build = %1", _cfg]] spawn VEMFr_fnc_log; + //["fn_getSetting", 1, format["_cfg after second build = %1", _cfg]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; - //["fn_getSetting", 1, format["_cfg after appending _x = %1", _cfg]] spawn VEMFr_fnc_log; + //["fn_getSetting", 1, format["_cfg after appending _x = %1", _cfg]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; call _check; if not isNil"_v" then { diff --git a/exile_vemf_reloaded/functions/fn_giveAmmo.sqf b/exile_vemf_reloaded/functions/fn_giveAmmo.sqf index ab7c2d7..a6dd7a1 100644 --- a/exile_vemf_reloaded/functions/fn_giveAmmo.sqf +++ b/exile_vemf_reloaded/functions/fn_giveAmmo.sqf @@ -61,14 +61,14 @@ if (_this isEqualType []) then _done = true; } else // If unit is not local { - ["fn_giveAmmo", 0, format["%1 is not local. Can not execute!", _unit]] spawn VEMfr_fnc_log; + ["fn_giveAmmo", 0, format["%1 is not local. Can not execute!", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } else // If unit isNull { - ["fn_giveAmmo", 0, "_unit isNull. Can not execute!"] spawn VEMFr_fnc_log; + ["fn_giveAmmo", 0, "_unit isNull. Can not execute!"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } else { - ["fn_giveAmmo", 0, "_this is not an ARRAY"] spawn VEMFr_fnc_log; + ["fn_giveAmmo", 0, "_this is not an ARRAY"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; _done diff --git a/exile_vemf_reloaded/functions/fn_giveWeaponItems.sqf b/exile_vemf_reloaded/functions/fn_giveWeaponItems.sqf index c701d23..6ddc28e 100644 --- a/exile_vemf_reloaded/functions/fn_giveWeaponItems.sqf +++ b/exile_vemf_reloaded/functions/fn_giveWeaponItems.sqf @@ -33,13 +33,13 @@ if (_this isEqualType []) then { if (_x find "tws" > -1) then { - //["fn_giveWeaponItems", 0, format["This scope is not allowed: %1", _x]] spawn VEMFr_fnc_log; + //["fn_giveWeaponItems", 0, format["This scope is not allowed: %1", _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _indexes pushBack _forEachIndex; } else { if (_x find "TWS" > -1) then { - //["fn_giveWeaponItems", 0, format["This scope is not allowed: %1", _x]] spawn VEMFr_fnc_log; + //["fn_giveWeaponItems", 0, format["This scope is not allowed: %1", _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _indexes pushBack _forEachIndex; }; }; diff --git a/exile_vemf_reloaded/functions/fn_headLessClient.sqf b/exile_vemf_reloaded/functions/fn_headLessClient.sqf index 37c8cd0..3978e4b 100644 --- a/exile_vemf_reloaded/functions/fn_headLessClient.sqf +++ b/exile_vemf_reloaded/functions/fn_headLessClient.sqf @@ -53,7 +53,7 @@ if (("headLessClientSupport" call VEMFr_fnc_getSetting) isEqualTo 1) then }; } else { - ["fn_headLessClient", 0, "Can not run. headLessClientSupport is not enabled"] spawn VEMFr_fnc_log; + ["fn_headLessClient", 0, "Can not run. headLessClientSupport is not enabled"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; // Lowest load found, send it _hasLowest diff --git a/exile_vemf_reloaded/functions/fn_launch.sqf b/exile_vemf_reloaded/functions/fn_launch.sqf index 58ec7be..4e14f9c 100644 --- a/exile_vemf_reloaded/functions/fn_launch.sqf +++ b/exile_vemf_reloaded/functions/fn_launch.sqf @@ -5,7 +5,7 @@ launches VEMFr (You don't say?) */ -["Launcher", 2, format["/// STARTING v%1 \\\", getText (configFile >> "CfgPatches" >> "exile_vemf_reloaded" >> "version")]] spawn VEMFr_fnc_log; +["Launcher", 2, format["/// STARTING v%1 \\\", getText (configFile >> "CfgPatches" >> "exile_vemf_reloaded" >> "version")]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; uiNamespace setVariable ["VEMFrUsedLocs", []]; uiNamespace setVariable ["VEMFrAttackedFlags", []]; uiNamespace setVariable ["VEMFrHcLoad", []]; @@ -28,19 +28,19 @@ uiNamespace setVariable ["VEMFrHcLoad", []]; { if not(isClass _x) then { - ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2 >> %3'", _classLv1Name, _classLv2Name, configName _x]] spawn VEMFr_fnc_log; + ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2 >> %3'", _classLv1Name, _classLv2Name, configName _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _levelTwo; }; if not(isClass _x) then { - ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2", _classLv1Name, configName _x]] spawn VEMFr_fnc_log; + ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1 >> %2", _classLv1Name, configName _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _levelOne; }; if not(isClass _x) then { - ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1'", configName _x]] spawn VEMFr_fnc_log; + ["overridesToRPT", 1, format["Overriding 'CfgVemfReloaded >> %1'", configName _x]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _root; }; diff --git a/exile_vemf_reloaded/functions/fn_loadInv.sqf b/exile_vemf_reloaded/functions/fn_loadInv.sqf index 1356f1d..9390d93 100644 --- a/exile_vemf_reloaded/functions/fn_loadInv.sqf +++ b/exile_vemf_reloaded/functions/fn_loadInv.sqf @@ -113,13 +113,13 @@ if (_this isEqualType []) then _givenAmmo = [_unit] call VEMFr_fnc_giveAmmo; if not _givenAmmo then { - ["fn_loadInv", 0, format["FAILED to give ammo to AI: %1", _unit]] spawn VEMFr_fnc_log; + ["fn_loadInv", 0, format["FAILED to give ammo to AI: %1", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; // Give this guy some weaponItems _giveAttachments = [_unit] call VEMFr_fnc_giveWeaponItems; if not _giveAttachments then { - ["fn_loadInv", 0, format["FAILED to giveWeaponItems to %1", _unit]] spawn VEMFr_fnc_log; + ["fn_loadInv", 0, format["FAILED to giveWeaponItems to %1", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _units; @@ -177,13 +177,13 @@ if (_this isEqualType []) then _givenAmmo = [_unit] call VEMFr_fnc_giveAmmo; if not _givenAmmo then { - ["fn_loadInv", 0, format["FAILED to give ammo to AI: %1", _unit]] spawn VEMFr_fnc_log; + ["fn_loadInv", 0, format["FAILED to give ammo to AI: %1", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; // Give this guy some weaponItems _giveAttachments = [_unit] call VEMFr_fnc_giveWeaponItems; if not _giveAttachments then { - ["fn_loadInv", 0, format["FAILED to giveWeaponItems to %1", _unit]] spawn VEMFr_fnc_log; + ["fn_loadInv", 0, format["FAILED to giveWeaponItems to %1", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _units; _ok = true; @@ -229,13 +229,13 @@ if (_this isEqualType []) then _givenAmmo = [_unit] call VEMFr_fnc_giveAmmo; if not _givenAmmo then { - ["fn_loadInv", 0, format["FAILED to give ammo to AI: %1", _unit]] spawn VEMFr_fnc_log; + ["fn_loadInv", 0, format["FAILED to give ammo to AI: %1", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; // Give this guy some weaponItems _giveAttachments = [_unit] call VEMFr_fnc_giveWeaponItems; if not _giveAttachments then { - ["fn_loadInv", 0, format["FAILED to giveWeaponItems to %1", _unit]] spawn VEMFr_fnc_log; + ["fn_loadInv", 0, format["FAILED to giveWeaponItems to %1", _unit]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } forEach _units; _ok = true; diff --git a/exile_vemf_reloaded/functions/fn_placeMines.sqf b/exile_vemf_reloaded/functions/fn_placeMines.sqf index 5b01ba8..ceaa346 100644 --- a/exile_vemf_reloaded/functions/fn_placeMines.sqf +++ b/exile_vemf_reloaded/functions/fn_placeMines.sqf @@ -46,12 +46,12 @@ if (_missionName in ("missionList" call VEMFr_fnc_getSetting)) then if (_mineSetting isEqualTo 3) then { _mineTypes = ["ATMine","APERSMine"] }; if (_mineSetting < 1 OR _mineSetting > 3) then { - ["fn_placeMines", 0, "Invalid mines mode!"] spawn VEMFr_fnc_log; + ["fn_placeMines", 0, "Invalid mines mode!"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "main" }; _mines = []; - ["fn_placeMines", 1, format["Placing %1 mines at %2", _amount, _pos]] spawn VEMFr_fnc_log; + ["fn_placeMines", 1, format["Placing %1 mines at %2", _amount, _pos]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; for "_m" from 1 to _amount do { private ["_mine"]; diff --git a/exile_vemf_reloaded/functions/fn_spawnInvasionAI.sqf b/exile_vemf_reloaded/functions/fn_spawnInvasionAI.sqf index e1e9a93..8bc92f4 100644 --- a/exile_vemf_reloaded/functions/fn_spawnInvasionAI.sqf +++ b/exile_vemf_reloaded/functions/fn_spawnInvasionAI.sqf @@ -158,7 +158,7 @@ if (count _pos isEqualTo 3) then _housePositions deleteAt _houseIndex; }; - _unit addMPEventHandler ["mpkilled","if (isDedicated) then { [_this select 0, _this select 1] spawn VEMFr_fnc_aiKilled }"]; + _unit addMPEventHandler ["mpkilled","if (isDedicated) then { [_this select 0, _this select 1] ExecVM 'exile_vemf_reloaded\sqf\aiKilled.sqf' }"]; // Set skills _unit setSkill ["aimingAccuracy", _accuracy]; _unit setSkill ["aimingShake", _aimShake]; @@ -180,7 +180,7 @@ if (count _pos isEqualTo 3) then _invLoaded = [units _grp, _missionName, _mode] call VEMFr_fnc_loadInv; // Load the AI's inventory if not _invLoaded then { - ["fn_spawnInvasionAI", 0, "failed to load AI's inventory..."] spawn VEMFr_fnc_log; + ["fn_spawnInvasionAI", 0, "failed to load AI's inventory..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; _groups pushBack _grp; // Push it into the _groups array }; diff --git a/exile_vemf_reloaded/functions/fn_spawnVEMFrAI.sqf b/exile_vemf_reloaded/functions/fn_spawnVEMFrAI.sqf index 6dfcc32..ae2fc00 100644 --- a/exile_vemf_reloaded/functions/fn_spawnVEMFrAI.sqf +++ b/exile_vemf_reloaded/functions/fn_spawnVEMFrAI.sqf @@ -78,7 +78,7 @@ if (_pos isEqualTypeArray [0,0,0]) then private ["_unit"]; _unit = _grp createUnit [_sldrClass, _pos, [], _spawnRadius, "FORM"]; // Create Unit There _allUnits pushBack _unit; - _unit addMPEventHandler ["mpkilled","if (isDedicated) then { [_this select 0, _this select 1] spawn VEMFr_fnc_aiKilled }"]; + _unit addMPEventHandler ["mpkilled","if (isDedicated) then { [_this select 0, _this select 1] ExecVM 'exile_vemf_reloaded\sqf\aiKilled.sqf' }"]; // Set skills _unit setSkill ["aimingAccuracy", _accuracy]; @@ -101,7 +101,7 @@ if (_pos isEqualTypeArray [0,0,0]) then _spawned pushBack _grp; } else { - ["fn_spawnVEMFrAI", 0, "failed to retrieve _groupSide"] spawn VEMFr_fnc_log; + ["fn_spawnVEMFrAI", 0, "failed to retrieve _groupSide"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; }; @@ -111,12 +111,12 @@ if (_pos isEqualTypeArray [0,0,0]) then if not _invLoaded then { _spawned = false; - ["fn_spawnVEMFrAI", 0, "failed to load AI's inventory..."] spawn VEMFr_fnc_log; + ["fn_spawnVEMFrAI", 0, "failed to load AI's inventory..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; } else { - ["fn_spawnVEMFrAI", 0, format["(%1) is not in missionList!"]] spawn VEMFr_fnc_log; + ["fn_spawnVEMFrAI", 0, format["(%1) is not in missionList!"]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; }; diff --git a/exile_vemf_reloaded/missions/BaseAttack.sqf b/exile_vemf_reloaded/missions/BaseAttack.sqf index db2ce52..6030c4a 100644 --- a/exile_vemf_reloaded/missions/BaseAttack.sqf +++ b/exile_vemf_reloaded/missions/BaseAttack.sqf @@ -70,8 +70,8 @@ if (VEMFrAttackCount <= ([[_missionName],["maxAttacks"]] call VEMFr_fnc_getSetti _signed = [_x] call VEMFr_fnc_signAI; } forEach _paraGroups; _players = nearestObjects [_flagPos, ["Exile_Unit_Player"], 275]; - [[format["A para team is on the way to %1 @ %2's location!", _flagName, name _nearestPlayer],"BaseAttack", _players]] spawn VEMFr_fnc_broadCast; - ["BaseAttack", 1, format["A para team is on the way to %1 @ %2's location!", _flagName, name _nearestPlayer]] spawn VEMFr_fnc_log; + [[format["A para team is on the way to %1 @ %2's location!", _flagName, name _nearestPlayer],"BaseAttack", _players]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; + ["BaseAttack", 1, format["A para team is on the way to %1 @ %2's location!", _flagName, name _nearestPlayer]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; while {true} do { @@ -92,7 +92,7 @@ if (VEMFrAttackCount <= ([[_missionName],["maxAttacks"]] call VEMFr_fnc_getSetti }; }; _players = nearestObjects [_flagPos, ["Exile_Unit_Player"], 275]; - [[format["Attack on %1 has been defeated", _flagname],"SUCCESS", _players]] spawn VEMFr_fnc_broadCast; + [[format["Attack on %1 has been defeated", _flagname],"SUCCESS", _players]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; breakOut "outer"; } else { @@ -101,12 +101,12 @@ if (VEMFrAttackCount <= ([[_missionName],["maxAttacks"]] call VEMFr_fnc_getSetti deleteVehicle _x; } forEach (units _x); } forEach _paraGroups; - ["BaseAttack", 0, format["Incorrect amount of total units (%1). Should be %2", _unitCount, (_aiSetup select 0) * (_aiSetup select 1)]] spawn VEMFr_fnc_log; + ["BaseAttack", 0, format["Incorrect amount of total units (%1). Should be %2", _unitCount, (_aiSetup select 0) * (_aiSetup select 1)]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; } else { - ["BaseAttack", 0, format["Incorrect spawned group count (%1). Should be %2", count _paraGroups, _aiSetup select 0]] spawn VEMFr_fnc_log; + ["BaseAttack", 0, format["Incorrect spawned group count (%1). Should be %2", count _paraGroups, _aiSetup select 0]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; } else @@ -115,12 +115,12 @@ if (VEMFrAttackCount <= ([[_missionName],["maxAttacks"]] call VEMFr_fnc_getSetti if (_index > -1) then { _attackedFlags deleteAt _index; - ["BaseAttack", 1, "Flag deleted from attackedFlag array"] spawn VEMFr_fnc_log; + ["BaseAttack", 1, "Flag deleted from attackedFlag array"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; } else { - ["BaseAttack", 0, "Unable to locate and remove attacked flag!"] spawn VEMFr_fnc_log; + ["BaseAttack", 0, "Unable to locate and remove attacked flag!"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; - ["BaseAttack", 0, "Can not find player near flag!"] spawn VEMFr_fnc_log; + ["BaseAttack", 0, "Can not find player near flag!"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; } else @@ -129,12 +129,12 @@ if (VEMFrAttackCount <= ([[_missionName],["maxAttacks"]] call VEMFr_fnc_getSetti }; } else { - ["BaseAttack", 0, format["invalid aiSetup setting! (%1)", _aiSetup]] spawn VEMFr_fnc_log; + ["BaseAttack", 0, format["invalid aiSetup setting! (%1)", _aiSetup]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; } else { - ["BaseAttack", 0, format["Failed to start mission. Given _missionName (%1) is not in active missionList", _missionName]] spawn VEMFr_fnc_log; + ["BaseAttack", 0, format["Failed to start mission. Given _missionName (%1) is not in active missionList", _missionName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; }; diff --git a/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf b/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf index caaeb4f..a12c181 100644 --- a/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf +++ b/exile_vemf_reloaded/missions/DynamicLocationInvasion.sqf @@ -34,7 +34,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get _locName = text _loc; _locPos = position _loc; if (_locName isEqualTo "") then { _locName = "Area"; }; - [_missionName, 1, format["Invading %1...", _locName]] spawn VEMFr_fnc_log; + [_missionName, 1, format["Invading %1...", _locName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; // Send message to all players private ["_mode"]; _mode = "aiMode" call VEMFr_fnc_getSetting; @@ -47,15 +47,15 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get { if (_mode isEqualTo 0) then { - [[format["Plundering groups have invaded %1 @ %2", _locName, mapGridPosition _locPos], "NEW INVASION"]] spawn VEMFr_fnc_broadCast; + [[format["Plundering groups have invaded %1 @ %2", _locName, mapGridPosition _locPos], "NEW INVASION"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; }; if (_mode isEqualTo 1) then { - [[format["%1 Police forces are now controlling %2 @ %3", worldName, _locName, mapGridPosition _locPos], "NEW MISSION"]] spawn VEMFr_fnc_broadCast; + [[format["%1 Police forces are now controlling %2 @ %3", worldName, _locName, mapGridPosition _locPos], "NEW MISSION"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; }; if (_mode isEqualTo 2) then { - [[format["%1 S.W.A.T. teams are now raiding %2 @ %3", worldName, _locName, mapGridPosition _locPos], "NEW RAID"]] spawn VEMFr_fnc_broadCast; + [[format["%1 S.W.A.T. teams are now raiding %2 @ %3", worldName, _locName, mapGridPosition _locPos], "NEW RAID"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; }; }; private["_marker"]; @@ -66,7 +66,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get _marker setMarkerType "o_unknown"; if (_mode < 0 OR _mode > 2) then { - ["DynamicLocationInvasion", 0, format["Invalid aiMode (%1) detected, failed to setMarkerColor!", _aiMode]] spawn VEMFr_fnc_log; + ["DynamicLocationInvasion", 0, format["Invalid aiMode (%1) detected, failed to setMarkerColor!", _aiMode]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; if (_mode isEqualTo 0) then @@ -121,7 +121,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get _heliPatrolSettings = ([[_missionName],["heliPatrol"]] call VEMFr_fnc_getSetting) select 0; if (_heliPatrolSettings select 0 isEqualTo 1) then { // If heliPatrol setting is enabled - [_missionName, 1, format["Adding a heli patrol to the invasion of %1 at %2", _locName, mapGridPosition _locPos]] spawn VEMFr_fnc_log; + [_missionName, 1, format["Adding a heli patrol to the invasion of %1 at %2", _locName, mapGridPosition _locPos]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _classToSpawn = selectRandom (_heliPatrolSettings select 1); if (_classToSpawn isKindOf "Air") then { @@ -183,7 +183,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get [_heliGroup] spawn VEMFr_fnc_signAI; }; } else { // If the select classname is not an air vehicle - [_missionName, 0, format["%1 IS NOT AN AIR VEHICLE", _classToSpawn]] spawn VEMFr_fnc_log; + [_missionName, 0, format["%1 IS NOT AN AIR VEHICLE", _classToSpawn]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; }; @@ -195,11 +195,11 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get _minesPlaced = [_locPos, 5, 100, _missionName] call VEMFr_fnc_placeMines param [0, [], [[]]]; if (count _minesPlaced > 0) then { - [_missionName, 1, format["Successfully placed mines at %1", _locName]] spawn VEMFr_fnc_log; + [_missionName, 1, format["Successfully placed mines at %1", _locName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; if (count _minesPlaced isEqualto 0) then { - [_missionName, 0, format["Failed to place mines at %1", _locName]] spawn VEMFr_fnc_log; + [_missionName, 0, format["Failed to place mines at %1", _locName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _minesPlaced = nil; }; }; @@ -219,15 +219,15 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get { if (_mode isEqualTo 0) then { - [[format["%1 @ %2 has been cleared of %3 bad guys", _locName, mapGridPosition (_locPos), worldName], "COMPLETED"]] spawn VEMFr_fnc_broadCast; + [[format["%1 @ %2 has been cleared of %3 bad guys", _locName, mapGridPosition (_locPos), worldName], "COMPLETED"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; }; if (_mode isEqualTo 1) then { - [[format["%1 @ %2 has been cleared of %3 Police forces", _locName, mapGridPosition (_locPos), worldName], "CLEARED"]] spawn VEMFr_fnc_broadCast; + [[format["%1 @ %2 has been cleared of %3 Police forces", _locName, mapGridPosition (_locPos), worldName], "CLEARED"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; }; if (_mode isEqualTo 2) then { - [[format["S.W.A.T. raid on %1 @ %2 has been eliminated", _locName, mapGridPosition (_locPos)], "DEFEATED"]] spawn VEMFr_fnc_broadCast; + [[format["S.W.A.T. raid on %1 @ %2 has been eliminated", _locName, mapGridPosition (_locPos)], "DEFEATED"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; }; }; // Deal with the 50s @@ -270,9 +270,9 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get { _crate enableRopeAttach false; }; - [_missionName, 1, format ["Crate parachuted at: %1 / Grid: %2", (getPosATL _crate), mapGridPosition (getPosATL _crate)]] spawn VEMFr_fnc_log; + [_missionName, 1, format ["Crate parachuted at: %1 / Grid: %2", (getPosATL _crate), mapGridPosition (getPosATL _crate)]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _lootLoaded = [_crate] call VEMFr_fnc_loadLoot; - if _lootLoaded then { [_missionName, 1, "Loot loaded successfully into parachuting crate"] spawn VEMFr_fnc_log }; + if _lootLoaded then { [_missionName, 1, "Loot loaded successfully into parachuting crate"] ExecVM "exile_vemf_reloaded\sqf\log.sqf" }; }; }; if (_useChute isEqualTo 0) then @@ -284,7 +284,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get _crate enableRopeAttach false; }; _lootLoaded = [_crate] call VEMFr_fnc_loadLoot; - if _lootLoaded then { [_missionName, 1, format["Loot loaded successfully into crate at %1", _locName]] spawn VEMFr_fnc_log }; + if _lootLoaded then { [_missionName, 1, format["Loot loaded successfully into crate at %1", _locName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf" }; }; if (_markCrateVisual isEqualTo 1) then { @@ -349,7 +349,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get if isNil "_crate" then { - [_missionName, 0, "ERROR! _crate not found"] spawn VEMFr_fnc_log; + [_missionName, 0, "ERROR! _crate not found"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; // Explode or remove the mines @@ -366,7 +366,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get uiSleep (2 + round random 2); }; } forEach _minesPlaced; - [_missionName, 1, format["Successfully exploded all %1 mines at %2", count _minesPlaced, _locName]] spawn VEMFr_fnc_log; + [_missionName, 1, format["Successfully exploded all %1 mines at %2", count _minesPlaced, _locName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _minesPlaced = nil; }; if (_cleanMines isEqualTo 1) then @@ -377,7 +377,7 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get deleteVehicle _x; }; } forEach _minesPlaced; - [_missionName, 1, format["Successfully deleted all %1 mines at %2", count _minesPlaced, _locName]] spawn VEMFr_fnc_log; + [_missionName, 1, format["Successfully deleted all %1 mines at %2", count _minesPlaced, _locName]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _minesPlaced = nil; }; }; @@ -399,12 +399,12 @@ if (VEMFrInvasionCount <= (([[_missionName],["maxInvasions"]] call VEMFr_fnc_get }; } else { - [[format["Failed to spawn AI in %1 @ %2", _locName, mapGridPosition (_locPos)], "ERROR!"]] spawn VEMFr_fnc_broadCast; + [[format["Failed to spawn AI in %1 @ %2", _locName, mapGridPosition (_locPos)], "ERROR!"]] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; breakOut "outer"; }; } else { // If done waiting, and no players were detected - [_missionName, 1, format["Invasion of %1 @ %2 timed out.", _locName, mapGridPosition _locPos]] spawn VEMFr_fnc_log; + [_missionName, 1, format["Invasion of %1 @ %2 timed out.", _locName, mapGridPosition _locPos]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; if not isNil"_marker" then { deleteMarker _marker }; _usedLocs = uiNamespace getVariable "VEMFrUsedLocs"; _index = _usedLocs find _loc; diff --git a/exile_vemf_reloaded/sqf/checkLoot.sqf b/exile_vemf_reloaded/sqf/checkLoot.sqf index b253e0d..ff3c327 100644 --- a/exile_vemf_reloaded/sqf/checkLoot.sqf +++ b/exile_vemf_reloaded/sqf/checkLoot.sqf @@ -15,10 +15,10 @@ if ("validateLoot" call VEMFr_fnc_getSetting isEqualTo 1) then { // _validateLoot is enabled, go ahead... if ("debugMode" call VEMFr_fnc_getSetting < 1) then { - ["CheckLoot", 0, "Failed to validate loot: no output allowed in RPT"] spawn VEMFr_fnc_log; + ["CheckLoot", 0, "Failed to validate loot: no output allowed in RPT"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; } else { - ["CheckLoot", 1, "Validating loot tables..."] spawn VEMFr_fnc_log; + ["CheckLoot", 1, "Validating loot tables..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _invalidClasses = []; _mags = []; @@ -56,10 +56,10 @@ if ("validateLoot" call VEMFr_fnc_getSetting isEqualTo 1) then if (count _invalidClasses isEqualTo 0) then { - ["CheckLoot", 1, "Loot tables are all valid :)"] spawn VEMFr_fnc_log; + ["CheckLoot", 1, "Loot tables are all valid :)"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; } else { - ["CheckLoot", 0, format["Invalid classes found in loot! | %1", _invalidClasses]] spawn VEMFr_fnc_log; + ["CheckLoot", 0, format["Invalid classes found in loot! | %1", _invalidClasses]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; }; }; diff --git a/exile_vemf_reloaded/sqf/handleRespectGain.sqf b/exile_vemf_reloaded/sqf/handleRespectGain.sqf index c51b5c3..e94e102 100644 --- a/exile_vemf_reloaded/sqf/handleRespectGain.sqf +++ b/exile_vemf_reloaded/sqf/handleRespectGain.sqf @@ -96,11 +96,11 @@ if not(isNull _target AND isNull _killer) then format["setAccountMoneyAndRespect:%1:%2:%3", _killer getVariable ["ExileMoney", 0], _newRespect, (getPlayerUID _killer)] call ExileServer_system_database_query_fireAndForget; } else { - ["fn_aiKilled", 0, format["Failed to get respect from %1 (%2)", name _killer, _killer]] spawn VEMFr_fnc_log; + ["fn_aiKilled", 0, format["Failed to get respect from %1 (%2)", name _killer, _killer]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; } else { - ["handleKillMessage", 0, format["There is something wrong with the kill distance (%1)", _dist]] spawn VEMFr_fnc_log; + ["handleKillMessage", 0, format["There is something wrong with the kill distance (%1)", _dist]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; // Stop doing anything after this line }; }; diff --git a/exile_vemf_reloaded/sqf/missionTimer.sqf b/exile_vemf_reloaded/sqf/missionTimer.sqf index a9f933a..825a73b 100644 --- a/exile_vemf_reloaded/sqf/missionTimer.sqf +++ b/exile_vemf_reloaded/sqf/missionTimer.sqf @@ -28,11 +28,11 @@ if (_minNew > -1) then waitUntil { if ([_minPlayers] call VEMFr_fnc_playerCount AND diag_fps > _minFps OR VEMFrForceStart) then { true } else { uiSleep 5; false } }; if VEMFrForceStart then { - ["missionTimer", 1, format["VEMFr has been forced to start. Server FPS: %1", diag_fps]] spawn VEMFr_fnc_log; + ["missionTimer", 1, format["VEMFr has been forced to start. Server FPS: %1", diag_fps]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; } else { - ["missionTimer", 1, format["Enough players online (%1) and server FPS (%2) is above %3. Starting missionTimer...", count allPlayers, diag_fps, _minFps]] spawn VEMFr_fnc_log; - ["missionTimer", 1, format["Global mission limit is set on: %1", _maxGlobalMissions]] spawn VEMFr_fnc_log; + ["missionTimer", 1, format["Enough players online (%1) and server FPS (%2) is above %3. Starting missionTimer...", count allPlayers, diag_fps, _minFps]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; + ["missionTimer", 1, format["Global mission limit is set on: %1", _maxGlobalMissions]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; VEMFrMissionCount = 0; private ["_ignoreLimit"]; @@ -71,7 +71,7 @@ if (_minNew > -1) then { if (VEMFrMissionCount < 0) then { - ["missionTimer", 0, format["VEMFrMissionCount (%1) is BELOW 0! Stopping missionTimer...", VEMFrMissionCount]] spawn VEMFr_fnc_log; + ["missionTimer", 0, format["VEMFrMissionCount (%1) is BELOW 0! Stopping missionTimer...", VEMFrMissionCount]] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; breakOut "outer"; }; diff --git a/exile_vemf_reloaded/sqf/sayKilledWeapon.sqf b/exile_vemf_reloaded/sqf/sayKilledWeapon.sqf index b93ceda..a1bafad 100644 --- a/exile_vemf_reloaded/sqf/sayKilledWeapon.sqf +++ b/exile_vemf_reloaded/sqf/sayKilledWeapon.sqf @@ -26,7 +26,7 @@ if not(isNull _target AND isNull _killer) then if (_sayKilled isEqualTo 1) then { _kMsg = format["(VEMFr) %1 [%2, %3m] AI", name _killer, getText(configFile >> "CfgWeapons" >> _curWeapon >> "displayName"), round _dist]; - [_kMsg, "sys"] spawn VEMFr_fnc_broadCast; + [_kMsg, "sys"] ExecVM "exile_vemf_reloaded\sqf\broadCast.sqf"; breakOut "outer"; }; if (_sayKilled isEqualTo 2) then @@ -39,5 +39,5 @@ if not(isNull _target AND isNull _killer) then }; } else { - ["sayKilledWeapon.sqf", 0, "_killer isNull!"] spawn VEMFr_fnc_log; + ["sayKilledWeapon.sqf", 0, "_killer isNull!"] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; }; diff --git a/exile_vemf_reloaded/sqf/spawnStaticAI.sqf b/exile_vemf_reloaded/sqf/spawnStaticAI.sqf index 3af5c0c..c43e935 100644 --- a/exile_vemf_reloaded/sqf/spawnStaticAI.sqf +++ b/exile_vemf_reloaded/sqf/spawnStaticAI.sqf @@ -13,10 +13,10 @@ if (([["aiStatic"],["enabled"]] call VEMFr_fnc_getSetting) select 0 isEqualTo 1) then { - ["spawnStaticAI", 2, "launching..."] spawn VEMFr_fnc_log; + ["spawnStaticAI", 2, "launching..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _settings = [["aiStatic"],["positions","amount"]] call VEMFr_fnc_getSetting; _positions = _settings select 0; - ["spawnStaticAI", 2, "spawning AI on positions..."] spawn VEMFr_fnc_log; + ["spawnStaticAI", 2, "spawning AI on positions..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf"; _amounts = _settings select 1; { [_x, 2, _amounts select _foreachindex, "aiMode" call VEMFr_fnc_getSetting, "Static"] spawn VEMFr_fnc_spawnVEMFrAI;