From 9bdd2226b0fb50e9694f43ee60bab49db49ac08a Mon Sep 17 00:00:00 2001 From: MDIC Date: Sun, 13 Feb 2022 12:02:11 -0500 Subject: [PATCH] report teleport hack specifically after auto report account is hit this is to reduce false flags warnings early in the play session. --- src/AnticheatMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index ff4c33b..750918b 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -201,7 +201,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn float xDiff = fabs(lastX - newX); float yDiff = fabs(lastY - newY); - if ((xDiff >= 50.0f || yDiff >= 50.0f) && !player->CanTeleport()) + if ((xDiff >= 50.0f || yDiff >= 50.0f) && !player->CanTeleport() && m_Players[key].GetTotalReports() > sConfigMgr->GetOption("Anticheat.ReportsForIngameWarnings", 70)) { // display warning at the center of the screen, hacky way? std::string str = "";