Prevent issues caused by respawn_west marker being moved

Vanilla commit:

39bcedb4b6
This commit is contained in:
ebaydayz
2016-12-05 14:37:28 -05:00
parent 2db6692643
commit 5058308f00
11 changed files with 20 additions and 23 deletions

View File

@@ -3,7 +3,6 @@ disableSerialization;
_timeOut = 0;
_messTimer = 0;
_lastTemp = dayz_temperatur;
_debug = getMarkerpos "respawn_west";
_isPZombie = player isKindOf "PZombie_VB";
_radTimer = 0;
@@ -48,7 +47,7 @@ while {1 == 1} do {
//reset position
_randomSpot = true;
_tempPos = getPosATL player;
_distance = _debug distance _tempPos;
_distance = respawn_west_original distance _tempPos;
if (_distance < 2000) then {
_randomSpot = false;
};

View File

@@ -7,7 +7,7 @@
sched_antiTP_init = {
if (dayz_antihack == 1) then { diag_log [ diag_ticktime, __FILE__, "Anti Teleport inited"]; };
[dayz_antihack == 1, [], 0, 0, objNull]
[dayz_antihack == 1, [], 0, 0, objNull, respawn_west_original]
};
sched_antiTP = {
@@ -19,6 +19,7 @@ sched_antiTP = {
_lastheight = _this select 2;
_lasttime = _this select 3;
_lastVehicle = _this select 4;
_debug = _this select 5;
if (((_antihack) and {(typeName player == "OBJECT")}) AND {((player in playableUnits) AND {(alive player)})}) then {
if (count _lastpos != 3) then {
@@ -31,7 +32,6 @@ sched_antiTP = {
_distance = _lastpos distance _curpos;
_curtime = diag_ticktime;
_difftime = _curtime - _lasttime;
_debug = getMarkerpos "respawn_west";
if ((_distance > 10) OR {(_difftime > 1)}) then {
_curheight = (ATLtoASL _curpos) select 2;