mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
cleanup of unused code
This commit is contained in:
@@ -2,16 +2,6 @@ private["_handle","_body","_cursor","_delMe"];
|
|||||||
while {true} do {
|
while {true} do {
|
||||||
_handle = [] spawn player_animalCheck;
|
_handle = [] spawn player_animalCheck;
|
||||||
waitUntil{scriptDone _handle};
|
waitUntil{scriptDone _handle};
|
||||||
/*
|
|
||||||
//check fly objects
|
|
||||||
{
|
|
||||||
_body = _x getVariable["body",objNull];
|
|
||||||
if (isNull _body) then {
|
|
||||||
dayz_flyMonitor = dayz_flyMonitor - [_x];
|
|
||||||
deleteVehicle _x;
|
|
||||||
};
|
|
||||||
} forEach dayz_flyMonitor;
|
|
||||||
*/
|
|
||||||
|
|
||||||
//check monitored buildings
|
//check monitored buildings
|
||||||
_cursor = 0;
|
_cursor = 0;
|
||||||
@@ -30,25 +20,7 @@ while {true} do {
|
|||||||
if (_delMe) then {
|
if (_delMe) then {
|
||||||
dayz_buildingMonitor = dayz_buildingMonitor - ["DEL"];
|
dayz_buildingMonitor = dayz_buildingMonitor - ["DEL"];
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
//check bodies
|
|
||||||
_cursor = 0;
|
|
||||||
_delMe = false;
|
|
||||||
{
|
|
||||||
private["_bPos","_isNoone"];
|
|
||||||
_bPos = getPosATL _x;
|
|
||||||
_isNoone = {isPlayer _x} count (_bPos nearEntities ["Man",50]) == 0;
|
|
||||||
if (_isNoone) then {
|
|
||||||
deleteVehicle _x;
|
|
||||||
dayz_bodyMonitor set [_cursor,"DEL"];
|
|
||||||
_delMe = true;
|
|
||||||
};
|
|
||||||
_cursor = _cursor + 1;
|
|
||||||
} forEach dayz_bodyMonitor;
|
|
||||||
if (_delMe) then {
|
|
||||||
dayz_bodyMonitor = dayz_bodyMonitor - ["DEL"];
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
//Check if new day
|
//Check if new day
|
||||||
_day = round(360 * (dateToNumber date));
|
_day = round(360 * (dateToNumber date));
|
||||||
if(dayz_currentDay != _day) then {
|
if(dayz_currentDay != _day) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user