From 3edf302041d080ac31090a24018567a5629caf19 Mon Sep 17 00:00:00 2001 From: Zepheris Date: Sat, 22 Feb 2020 22:39:04 -0700 Subject: [PATCH] Set check time for weapon despawn from 20 minutes to 5 hours. --- .../addons/epoch_server/system/server_monitor.fsm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/@epochhive/addons/epoch_server/system/server_monitor.fsm b/Server/@epochhive/addons/epoch_server/system/server_monitor.fsm index 3349e73..0e90758 100644 --- a/Server/@epochhive/addons/epoch_server/system/server_monitor.fsm +++ b/Server/@epochhive/addons/epoch_server/system/server_monitor.fsm @@ -151,11 +151,11 @@ class FSM " _this setVariable[""LAST_CHECK"", diag_tickTime];" \n " _lastCheck = diag_tickTime;" \n " };" \n - " if (diag_tickTime - _lastCheck > 1200) then {" \n + " if (diag_tickTime - _lastCheck > 18000) then {" \n " private _list = (_this nearEntities [[""Epoch_Male_F"",""Epoch_Female_F"",""LandVehicle"",""Ship"",""Air"",""Tank""], 45]) select {isPlayer _x};" \n " if (_list isEqualTo []) then {" \n " _this setVariable [""LAST_CHECK"",nil];" \n - " //diag_log format[""DEBUG: _cleanIT del %1"", _this];" \n + " diag_log format[""DEBUG: _cleanIT del %1"", _this];" \n " deleteVehicle _this;" \n " };" \n " };" \n @@ -177,7 +177,7 @@ class FSM " deleteVehicle _x;" \n " }forEach ((nearestObjects [_this, [""WeaponHolder""], 2]) select {!(_x iskindof ""Constructions_lockedstatic_F"" || _x iskindof ""Buildable_Storage"")});" \n " _this setVariable [""LAST_CHECK"",nil];" \n - " //diag_log format[""DEBUG: _cleanIT2 del %1"", _this];" \n + " diag_log format[""DEBUG: _cleanIT2 del %1"", _this];" \n " deleteVehicle _this;" \n " _removed = true;" \n " };" \n @@ -616,4 +616,4 @@ class FSM { }; }; -/*%FSM*/ \ No newline at end of file +/*%FSM*/