initial files

This commit is contained in:
Samuele Lorefice
2025-05-24 16:17:33 +02:00
commit 9e023649ac
477 changed files with 118566 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
private _sourcestr = "Server";
private _position = 0;
if (!isServer) then {
if (!isNil "HC1") then {
if (!isNull HC1) then {
if (local HC1) then {
_sourcestr = "HC1";
_position = 1;
};
};
};
if (!isNil "HC2") then {
if (!isNull HC2) then {
if (local HC2) then {
_sourcestr = "HC2";
_position = 2;
};
};
};
if (!isNil "HC3") then {
if (!isNull HC3) then {
if (local HC3) then {
_sourcestr = "HC3";
_position = 3;
};
};
};
};
private _myfpsmarker = createMarker [format ["fpsmarker%1", _sourcestr], [0, -500 - (500 * _position)]];
_myfpsmarker setMarkerType "mil_start";
_myfpsmarker setMarkerSize [0.7, 0.7];
while {true} do {
private _myfps = diag_fps;
private _localgroups = {local _x} count allGroups;
private _localunits = {local _x} count allUnits;
_myfpsmarker setMarkerColor "ColorGREEN";
if (_myfps < 30) then {_myfpsmarker setMarkerColor "ColorYELLOW";};
if (_myfps < 20) then {_myfpsmarker setMarkerColor "ColorORANGE";};
if (_myfps < 10) then {_myfpsmarker setMarkerColor GRLIB_color_enemy_bright;};
_myfpsmarker setMarkerText format ["%1: %2 fps, %3 local groups, %4 local units", _sourcestr, (round (_myfps * 100.0)) / 100.0, _localgroups, _localunits];
sleep 15;
};