initial files
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
waitUntil {sleep 1; !isNil "active_sectors"};
|
||||
|
||||
while {true} do {
|
||||
uiSleep 600;
|
||||
private _markedgroups = 0;
|
||||
{
|
||||
private _groupOwner = groupOwner _x;
|
||||
private _owner = "Server";
|
||||
|
||||
if (_groupOwner != 2) then {
|
||||
_owner = name ((allPlayers select {_groupOwner == (owner _x)}) select 0);
|
||||
};
|
||||
|
||||
if !(isNil "_owner") then {
|
||||
if !(isGroupDeletedWhenEmpty _x) then {
|
||||
if (local _x) then {
|
||||
_x deleteGroupWhenEmpty true;
|
||||
} else {
|
||||
[_x, true] remoteExec ["deleteGroupWhenEmpty", groupOwner _x];
|
||||
};
|
||||
_markedgroups = _markedgroups + 1;
|
||||
};
|
||||
};
|
||||
} forEach allGroups;
|
||||
};
|
||||
@@ -0,0 +1,19 @@
|
||||
add_civ_waypoints = compileFinal preprocessFileLineNumbers "scripts\server\ai\add_civ_waypoints.sqf";
|
||||
add_defense_waypoints = compileFinal preprocessFileLineNumbers "scripts\server\ai\add_defense_waypoints.sqf";
|
||||
battlegroup_ai = compileFinal preprocessFileLineNumbers "scripts\server\ai\battlegroup_ai.sqf";
|
||||
building_defence_ai = compileFinal preprocessFileLineNumbers "scripts\server\ai\building_defence_ai.sqf";
|
||||
patrol_ai = compileFinal preprocessFileLineNumbers "scripts\server\ai\patrol_ai.sqf";
|
||||
prisonner_ai = compileFinal preprocessFileLineNumbers "scripts\server\ai\prisonner_ai.sqf";
|
||||
troup_transport = compileFinal preprocessFileLineNumbers "scripts\server\ai\troup_transport.sqf";
|
||||
|
||||
ied_manager = compileFinal preprocessFileLineNumbers "scripts\server\sector\ied_manager.sqf";
|
||||
manage_one_sector = compileFinal preprocessFileLineNumbers "scripts\server\sector\manage_one_sector.sqf";
|
||||
wait_to_spawn_sector = compileFinal preprocessFileLineNumbers "scripts\server\sector\wait_to_spawn_sector.sqf";
|
||||
manage_asymIED = compileFinal preprocessFileLineNumbers "scripts\server\asymmetric\ied\manage_asymIED.sqf";
|
||||
sector_guerilla = compileFinal preprocessFileLineNumbers "scripts\server\asymmetric\random\sector_guerilla.sqf";
|
||||
asym_sector_ambush = compileFinal preprocessFileLineNumbers "scripts\server\asymmetric\random\asym_sector_ambush.sqf";
|
||||
civinfo_task = compileFinal preprocessFileLineNumbers "scripts\server\civinformant\tasks\civinfo_task.sqf";
|
||||
|
||||
execVM "scripts\client\misc\synchronise_vars.sqf";
|
||||
execVM "scripts\client\misc\synchronise_eco.sqf";
|
||||
execVM "scripts\server\offloading\show_fps.sqf";
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user