Lower destroyed vehicle cleanup time to 5 minutes

Update to 78460ce
This commit is contained in:
ebayShopper
2017-10-31 14:06:43 -04:00
parent f74e065de1
commit 6e48434001
3 changed files with 4 additions and 9 deletions

View File

@@ -18,7 +18,7 @@
[UPDATED] Newest version of DayZero enterable buildings, which fixes #1601 - provided by Tansien and Zac https://zombies.nu/
[UPDATED] Locking and unlocking safes no longer plays the medic animation. #1942 @SmokeyBR
[UPDATED] Locking and unlocking safes now uses call instead of spawn on the server. This fixes the user input lock and safes appearing to disappear momentarily when server FPS is low.
[UPDATED] Added cleanup of destroyed vehicles and CraterLong after 25 minutes in sched_corpses.sqf
[UPDATED] Added cleanup of destroyed vehicles and CraterLong after 5 minutes in sched_corpses.sqf.
[UPDATED] Reverted group menu color scheme to A2OA default for consistency with game dialogs
[UPDATED] Positions defined in DZE_SafeZonePosArray no longer spawn loot or zombies in their respective radius, added new compile to check positions against DZE_SafeZonePosArray "_PosInSafeZone = _positionToCheck call DZE_SafeZonePosCheck;"
[UPDATED] DZE_ZombieSpeed = [min, max]; has replaced the, now removed, DZE_slowZombies variable. set DZE_ZombieSpeed = [2,2]; for DZE_slowZombies = true; behavior. see configvariables.sqf for more info

View File

@@ -23,9 +23,6 @@ class RscXListBox;
class RscShortcutButton;
class RscHTML;
class RscDisplayEmpty;
class RscEdit;
class RscCombo;
class RscXSliderH;
#include "CfgPlayerStats\defines.hpp"
#include "CfgPlayerStats\p_cover.hpp"
@@ -39,7 +36,6 @@ class RscXSliderH;
class RscDisplayMission: RscDisplayEmpty
{
//access = 0;
idd = 46;
onKeyDown = "_handled = if (isNil 'DZ_KeyDown_EH') then {false} else {_this call DZ_KeyDown_EH}; _handled"; //assigned much quicker than spawning init_keyboard
};
@@ -111,7 +107,6 @@ class RscDisplayChannel
class RscPictureGUI
{
//access = 0;
type = 0;
idc = -1;
colorBackground[] = {0,0,0,0};
@@ -820,7 +815,7 @@ class RscDisplayDSinterface: RscStandardDisplay
y = "(93/100) * SafeZoneH + SafeZoneY";
w = "(20/100) * SafeZoneW";
default = 0;
text = "Close";
text = $STR_UI_CLOSE;
};
};
};

View File

@@ -127,8 +127,8 @@ sched_corpses = {
_x setVariable ["sched_co_deathTime", _deathTime];
};
// 25 minutes = how long a destroyed vehicle stays on the map
if (diag_tickTime - _deathTime > 25*60) then {
// 5 minutes = how long a destroyed vehicle stays on the map
if (diag_tickTime - _deathTime > 5*60) then {
{deleteVehicle _x} forEach (_x nearObjects ["CraterLong",50]);
_x call sched_co_deleteVehicle;
_delQtyV = _delQtyV + 1;