From 82d4333da3677afbed44f4509aa9c19d714dc063 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Mon, 8 Jan 2024 13:31:06 -0500 Subject: [PATCH] update (anticheat): Z-Axis false hit --- src/server/game/Anticheat/AnticheatMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/game/Anticheat/AnticheatMgr.cpp b/src/server/game/Anticheat/AnticheatMgr.cpp index 8b803d0d81..1be0b68fb9 100644 --- a/src/server/game/Anticheat/AnticheatMgr.cpp +++ b/src/server/game/Anticheat/AnticheatMgr.cpp @@ -980,6 +980,12 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo) return; uint32 key = player->GetGUID().GetCounter(); + uint32 distance2D = (uint32)movementInfo.pos.GetExactDist2d(&m_Players[key].GetLastMovementInfo().pos); + + // We don't need to check for a waterwalk hack if the player hasn't moved + // This is necessary since MovementHandler fires if you rotate the camera in place + if (!distance2D) + return; // If he is flying we dont need to check if (movementInfo.HasMovementFlag(MOVEMENTFLAG_CAN_FLY | MOVEMENTFLAG_FLYING))