mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Remove two unused files
This commit is contained in:
@@ -3,15 +3,11 @@ _base="z\addons\dayz_server\system\scheduler\";
|
||||
|
||||
call compile preprocessFileLineNumbers (_base+"sched_corpses.sqf");
|
||||
call compile preprocessFileLineNumbers (_base+"sched_lootpiles.sqf");
|
||||
//call compile preprocessFileLineNumbers (_base+"sched_playersHivesync.sqf");
|
||||
//call compile preprocessFileLineNumbers (_base+"sched_vehiclesHivesync.sqf");
|
||||
call compile preprocessFileLineNumbers (_base+"sched_sync.sqf");
|
||||
call compile preprocessFileLineNumbers (_base+"sched_safetyVehicle.sqf");
|
||||
|
||||
[
|
||||
// period offset code <-> ctx init code ->ctx
|
||||
//[ 60, 121, sched_playersHivesync, sched_playersHivesync_init ],
|
||||
//[ 60, 133, sched_vehiclesHivesync, sched_vehiclesHivesync_init ],
|
||||
[ 60, 224, sched_corpses ],
|
||||
[ 300, 336, sched_lootpiles_5m, sched_lootpiles_5m_init ],
|
||||
[ 6, 340, sched_lootpiles ],
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
|
||||
|
||||
sched_playershivewrite = {
|
||||
private ["_n","_x","_damage","_pos","_otime","_opos","_odamage"];
|
||||
// EVERY 1 MINUTE
|
||||
// FORCE HIVE WRITE FOR PLAYERS WHO NEED IT (HUMANITY OR POSITION OR TIMEOUT CHANGE)
|
||||
_n = 0;
|
||||
{
|
||||
if ((isPlayer _x) AND {(alive _x)}) then {
|
||||
_damage = _x getVariable [ "USEC_BloodQty", -1 ];
|
||||
_pos = visiblePosition _x; // genuine position, deals with player in vehicle or not
|
||||
if (_damage >= 0) then { // not a character?
|
||||
_otime = _x getVariable [ "sched_ph_sync_time", -1];
|
||||
_opos = _x getVariable [ "sched_ph_sync_pos", _pos];
|
||||
_odamage = _x getVariable [ "sched_ph_sync_dmg", _damage];
|
||||
if (_otime == -1) then {
|
||||
_otime = diag_tickTime;
|
||||
_x setVariable [ "sched_ph_sync_time", _otime];
|
||||
_x setVariable [ "sched_ph_sync_pos", _opos];
|
||||
_x setVariable [ "sched_ph_sync_dmg", _odamage];
|
||||
};
|
||||
if ((diag_tickTime - _otime > 600) OR {((_pos distance _opos > 50) OR {(_odamage != _damage)})}) then {
|
||||
[_x, nil, true] call server_playerSync;
|
||||
_x setVariable [ "sched_ph_sync_time", diag_tickTime];
|
||||
_x setVariable [ "sched_ph_sync_pos", _pos];
|
||||
_x setVariable [ "sched_ph_sync_dmg", _damage];
|
||||
_n = _n + 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
} forEach playableUnits;
|
||||
if (_n > 0) then {
|
||||
diag_log format ["%1: sync'ed %2 players to HIVE", __FILE__, _n];
|
||||
};
|
||||
|
||||
objNull
|
||||
};
|
||||
@@ -1,37 +0,0 @@
|
||||
|
||||
sched_vehicleshivewrite = {
|
||||
private ["_n","_x","_damage","_pos","_otime","_opos","_odamage"];
|
||||
// EVERY 1 MINUTE
|
||||
// FORCE HIVE WRITE FOR VEHICLES WHO NEED IT (DAMAGE OR POSITION OR TIMEOUT CHANGE)
|
||||
_n = 0;
|
||||
{
|
||||
if (_x isKindOf "AllVehicles") then {
|
||||
_damage = damage _x;
|
||||
_pos = getPosASL _x;
|
||||
_otime = _x getVariable [ "sched_vh_sync_time", -1];
|
||||
_opos = _x getVariable [ "sched_vh_sync_pos", _pos];
|
||||
_odamage = _x getVariable [ "sched_vh_sync_dmg", _damage];
|
||||
if (_otime == -1) then {
|
||||
_otime = diag_tickTime - random 480;
|
||||
_x setVariable [ "sched_vh_sync_time", _otime];
|
||||
_x setVariable [ "sched_vh_sync_pos", _opos];
|
||||
_x setVariable [ "sched_vh_sync_dmg", _odamage];
|
||||
};
|
||||
if ((diag_tickTime - _otime > 600) OR {((_pos distance _opos > 50) OR {(_odamage != _damage)})}) then {
|
||||
_x setVariable [ "sched_vh_sync_time", diag_tickTime];
|
||||
_x setVariable [ "sched_vh_sync_pos", _pos];
|
||||
_x setVariable [ "sched_vh_sync_dmg", _damage];
|
||||
[_x, "all", true] call server_updateObject;
|
||||
_n = _n + 1;
|
||||
}/*
|
||||
else {
|
||||
diag_log format ["%1: veh %2 %3 %4 %5", __FILE__, _x, _otime, _opos, _odamage];
|
||||
}*/;
|
||||
};
|
||||
} forEach vehicles;
|
||||
if (_n > 0) then {
|
||||
diag_log format ["%1: sync'ed %2 vehicles to HIVE", __FILE__, _n];
|
||||
};
|
||||
|
||||
objNull
|
||||
};
|
||||
Reference in New Issue
Block a user