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

@@ -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;