blckeagles-revisited-RC/@GMS/addons/custom_server/init/blck_init_HC.sqf

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-19 02:31:53 +00:00
/*
By Ghostrider-GRG-
2017-10-19 02:31:53 +00:00
--------------------------
License
--------------------------
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
http://creativecommons.org/licenses/by-nc-sa/4.0/
*/
2018-12-01 17:59:38 +00:00
if (hasInterface || isServer) exitWith{};
2017-10-19 02:31:53 +00:00
#include "\q\addons\custom_server\Configs\blck_defines.hpp";
if !(isNil "blck_Initialized") exitWith{};
2018-12-01 17:59:38 +00:00
private _blck_loadingStartTime = diag_tickTime;
2017-10-19 02:31:53 +00:00
#include "\q\addons\custom_server\init\build.sqf";
call compileFinal preprocessFileLineNumbers "\q\addons\custom_server\Compiles\blck_functions_HC.sqf";
diag_log format["[blckeagls] Loading Headless Client Version %2 | Build Date %1 | Build %3 | loaded in %4 seconds",blck_buildDate,blck_versionNumber,blck_buildNumber,diag_tickTime - _blck_loadingStartTime];
while {true} do
{
uiSleep 60;
private _localGroups = allGroups select {local _x};
private _localUnits = 0;
{
_localUnits = _localUnits + count(units _x);
} forEach _localGroups;
diag_log format["[blckeagls] HC Logging: Groups offloaded = %1 | Units offloaded = %2 | fps = %3 | time = %4 ",_localGroups,_localUnits,diag_FPS,diag_tickTime];
};
2018-10-21 11:56:34 +00:00