mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-04-18 10:16:39 +03:00
Properly disable antiTP and sched security when dayz_antihack=0;
This prevents them being called unnecessarily on loop.
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
sched_antiTP_init = {
|
||||
if (dayz_antihack == 1) then { diag_log [ diag_ticktime, __FILE__, "Anti Teleport inited"]; };
|
||||
[dayz_antihack == 1, [], 0, 0, objNull, respawn_west_original]
|
||||
diag_log [ diag_ticktime, __FILE__, "Anti Teleport inited"];
|
||||
[true, [], 0, 0, objNull, respawn_west_original]
|
||||
};
|
||||
|
||||
sched_antiTP = {
|
||||
@@ -21,7 +21,7 @@ sched_antiTP = {
|
||||
_lastVehicle = _this select 4;
|
||||
_debug = _this select 5;
|
||||
|
||||
if (((_antihack) and {(typeName player == "OBJECT")}) AND {((player in playableUnits) AND {(alive player)})}) then {
|
||||
if (typeName player == "OBJECT" && {(player in playableUnits) && (alive player)}) then {
|
||||
if (count _lastpos != 3) then {
|
||||
_lastpos = getPosATL (vehicle player);
|
||||
_lastheight = (ATLtoASL _lastpos) select 2;
|
||||
|
||||
Reference in New Issue
Block a user