False Hit Reduction: Speed Hack

False Speed Hack flag reduction for transporters such as undercity and silvermoon translocators and using flight managers are now fixed. Current Speed Hack detections and Teleport Hacks Detections are working as intended with no issues with false hit reports as of current.
This commit is contained in:
MDIC
2022-04-09 12:04:01 -04:00
parent 2861f1d686
commit 93b3570234

View File

@@ -477,14 +477,17 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
// We did the (uint32) cast to accept a margin of tolerance
// We check the last MovementInfo for the falling flag since falling down a hill and sliding a bit triggered a false positive
if ((clientSpeedRate > speedRate * 1.25f) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING))
{
if (!player->CanTeleport())
{
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
{
LOG_INFO("module", "AnticheatMgr:: Speed-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString());
}
BuildReport(player, SPEED_HACK_REPORT);
}
return;
}
}
void AnticheatMgr::HandlePlayerLogin(Player* player)