fix (module): False Detection Telepane Hack

This commit is contained in:
MDIC
2022-05-11 07:48:45 -04:00
parent de22e25cb2
commit 81f0dbfd81

View File

@@ -175,10 +175,11 @@ void AnticheatMgr::TeleportPlaneHackDetection(Player* player, MovementInfo movem
float pos_z = player->GetPositionZ();
float ground_Z = player->GetFloorZ();
float z_diff = fabs(ground_Z - pos_z);
float groundZ = player->GetMapHeight(player->GetPositionX(), player->GetPositionY(), MAX_HEIGHT);
float floorZ = player->GetMapHeight(player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
// we are not really walking there
if (z_diff > 1.0f)
if (groundZ == floorZ && (fabs(ground_Z - pos_z) > 1.0f || fabs(ground_Z - pos_z) < -1.0f))
{
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
{
@@ -189,6 +190,7 @@ void AnticheatMgr::TeleportPlaneHackDetection(Player* player, MovementInfo movem
BuildReport(player, TELEPORT_PLANE_HACK_REPORT);
}
}
void AnticheatMgr::IgnoreControlHackDetection(Player* player, MovementInfo movementInfo, uint32 opcode)