report teleport hack specifically after auto report account is hit

this is to reduce false flags warnings early in the play session.
This commit is contained in:
MDIC
2022-02-13 12:02:11 -05:00
parent 1f53b570af
commit 9bdd2226b0

View File

@@ -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<uint32>("Anticheat.ReportsForIngameWarnings", 70))
{
// display warning at the center of the screen, hacky way?
std::string str = "";