From 0f7dbc1ba6060cc55340b6db78aedefdd0420629 Mon Sep 17 00:00:00 2001 From: M'Dic Date: Fri, 26 Aug 2022 12:42:27 -0400 Subject: [PATCH] update (detection): Fine tune jump hack deteciton --- src/AnticheatMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 49fe4d9..0ee3b7e 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -299,6 +299,12 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling()) return; + uint32 distance2D = (uint32)movementInfo.pos.GetExactDist2d(&m_Players[key].GetLastMovementInfo().pos); + + // This is necessary since MovementHandler fires if you rotate the camera in place + if (!distance2D) + return; + if (ground_Z > 5.0f && movementInfo.pos.GetPositionZ() >= player->GetPositionZ()) { if (sConfigMgr->GetOption("Anticheat.WriteLog", true))