From cbd62771834bba71d9407bfb7635f1330df83e2c Mon Sep 17 00:00:00 2001 From: M'Dic Date: Fri, 9 Sep 2022 13:33:56 -0400 Subject: [PATCH] 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. --- conf/Anticheat.conf.dist | 7 +++++++ src/AnticheatMgr.cpp | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/conf/Anticheat.conf.dist b/conf/Anticheat.conf.dist index fe35e07..48598e2 100644 --- a/conf/Anticheat.conf.dist +++ b/conf/Anticheat.conf.dist @@ -94,6 +94,13 @@ Anticheat.OpAckOrderHack = 1 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 # # Anticheat.KickPlayer diff --git a/src/AnticheatMgr.cpp b/src/AnticheatMgr.cpp index a71895f..7d6f78c 100644 --- a/src/AnticheatMgr.cpp +++ b/src/AnticheatMgr.cpp @@ -299,6 +299,9 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, } else if (no_fly_auras && no_fly_flags && no_swim_water) { + if (!sConfigMgr->GetOption("Anticheat.StricterDetectJumpHack", true)) + return; + if (m_Players[key].GetLastOpcode() == MSG_MOVE_JUMP && !player->IsFalling()) return; @@ -324,7 +327,7 @@ void AnticheatMgr::JumpHackDetection(Player* player, MovementInfo movementInfo, uint32 latency = 0; 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()); - 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); }