update (conf\logging): Add conf for stricter jump hack

added stricter jump hack detection conf. This cheat is used to flag a alternative to a fly hack which uses jump hack mix with a lag switch manipulation.
This commit is contained in:
M'Dic
2022-09-09 13:33:56 -04:00
parent 50763fa8a3
commit cbd6277183
2 changed files with 11 additions and 1 deletions

View File

@@ -94,6 +94,13 @@ Anticheat.OpAckOrderHack = 1
Anticheat.StricterFlyHackCheck = 0 Anticheat.StricterFlyHackCheck = 0
# Anticheat.StricterDetectJumpHack
# Description: Checks Stricter moveflag jumping (may give false positives)
# Default: 0 - (Disabled)
# 1 - (Enabled)
Anticheat.StricterDetectJumpHack = 0
# Automatic Moderation Features # Automatic Moderation Features
# #
# Anticheat.KickPlayer # Anticheat.KickPlayer

View File

@@ -299,6 +299,9 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo,
} }
else if (no_fly_auras && no_fly_flags && no_swim_water) else if (no_fly_auras && no_fly_flags && no_swim_water)
{ {
if (!sConfigMgr->GetOption<bool>("Anticheat.StricterDetectJumpHack", true))
return;
if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling()) if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling())
return; return;
@@ -324,7 +327,7 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo,
uint32 latency = 0; uint32 latency = 0;
latency = player->GetSession()->GetLatency(); latency = player->GetSession()->GetLatency();
std::string goXYZ = ".go xyz " + std::to_string(player->GetPositionX()) + " " + std::to_string(player->GetPositionY()) + " " + std::to_string(player->GetPositionZ() + 1.0f) + " " + std::to_string(player->GetMap()->GetId()) + " " + std::to_string(player->GetOrientation()); std::string goXYZ = ".go xyz " + std::to_string(player->GetPositionX()) + " " + std::to_string(player->GetPositionY()) + " " + std::to_string(player->GetPositionZ() + 1.0f) + " " + std::to_string(player->GetMap()->GetId()) + " " + std::to_string(player->GetOrientation());
LOG_INFO("anticheat.module", "AnticheatMgr:: Jump-Hack detected player {} ({}) - Latency: {} ms - IP: {} - Cheat Flagged At: {}", player->GetName(), player->GetGUID().ToString(), latency, player->GetSession()->GetRemoteAddress().c_str(), goXYZ); LOG_INFO("anticheat.module", "AnticheatMgr:: Stricter Check Jump-Hack detected player {} ({}) - Latency: {} ms - IP: {} - Cheat Flagged At: {}", player->GetName(), player->GetGUID().ToString(), latency, player->GetSession()->GetRemoteAddress().c_str(), goXYZ);
} }
BuildReport(player, JUMP_HACK_REPORT); BuildReport(player, JUMP_HACK_REPORT);
} }