mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 09:07:22 +00:00
update (module): Reformulated for false reductions
This commit is contained in:
@@ -158,15 +158,6 @@ void AnticheatMgr::TeleportPlaneHackDetection(Player* player, MovementInfo movem
|
||||
if (!sConfigMgr->GetOption<bool>("Anticheat.DetectTelePlaneHack", true))
|
||||
return;
|
||||
|
||||
if (player->GetAreaId())
|
||||
{
|
||||
switch (player->GetAreaId())
|
||||
{
|
||||
case 2100: //Maraudon https://github.com/azerothcore/azerothcore-wotlk/issues/2437
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ObjectGuid key = player->GetGUID();
|
||||
|
||||
if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP)
|
||||
@@ -178,10 +169,9 @@ void AnticheatMgr::TeleportPlaneHackDetection(Player* player, MovementInfo movem
|
||||
if (movementInfo.HasMovementFlag(MOVEMENTFLAG_FALLING | MOVEMENTFLAG_SWIMMING))
|
||||
return;
|
||||
|
||||
float x, y, z;
|
||||
player->GetPosition(x, y, z);
|
||||
float ground_Z = player->GetMap()->GetHeight(x, y, z);
|
||||
float z_diff = fabs(ground_Z - z);
|
||||
float pos_z = player->GetPositionZ();
|
||||
float ground_Z = player->GetFloorZ();
|
||||
float z_diff = fabs(ground_Z - pos_z);
|
||||
|
||||
// we are not really walking there
|
||||
if (z_diff > 1.0f)
|
||||
|
||||
Reference in New Issue
Block a user