update (detection): Fine tune jump hack deteciton

This commit is contained in:
M'Dic
2022-08-26 12:42:27 -04:00
parent ab65943a81
commit 0f7dbc1ba6

View File

@@ -299,6 +299,12 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo,
if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling())
return;
uint32 distance2D = (uint32)movementInfo.pos.GetExactDist2d(&m_Players[key].GetLastMovementInfo().pos);
// This is necessary since MovementHandler fires if you rotate the camera in place
if (!distance2D)
return;
if (ground_Z > 5.0f && movementInfo.pos.GetPositionZ() >= player->GetPositionZ())
{
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))