From 213973466262b74c98e8aa884cca5c08950c5c4b Mon Sep 17 00:00:00 2001 From: MDIC Date: Wed, 27 Apr 2022 17:25:07 -0400 Subject: [PATCH] fix (module\detection): Further Z-Axis rework --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index 5fcd015..e60a339 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -241,7 +241,7 @@ void AnticheatMgr::ZAxisHackDetection(Player* player, MovementInfo movementInfo) // We want to exclude this LiquidStatus from detection because it leads to false positives on boats, docks etc. // Basically everytime you stand on a game object in water - if (player->GetLiquidData().Status == LIQUID_MAP_ABOVE_WATER) + if (player->GetLiquidData().Status == LIQUID_MAP_ABOVE_WATER && movementInfo.HasMovementFlag(MOVEMENTFLAG_ONTRANSPORT)) return; // This is Black Magic. Check only for x and y difference but no z difference that is greater then or equal to z +2.5 of the ground