False hit Reduction: Climb Hack

Climb Hack should only check if climbing not when falling.
This commit is contained in:
MDIC
2022-04-09 15:19:50 -04:00
parent 05713af3dd
commit e2cee25102

View File

@@ -354,7 +354,7 @@ void AnticheatMgr::ClimbHackDetection(Player* player, MovementInfo movementInfo,
float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY)); float angle = Position::NormalizeOrientation(tan(deltaZ / deltaXY));
if (angle > CLIMB_ANGLE) if ((angle > CLIMB_ANGLE) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING))
{ {
if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true)) if (sConfigMgr->GetOption<bool>("Anticheat.WriteLog", true))
{ {