mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-01-13 00:58:35 +00:00
update (Module): New Min Requirements, Remove Drift
New minimal required revision due to helper placements in core. Remove Drift and Can Teleport Helper as we no longer need it due to new core helpers
This commit is contained in:
2
.github/README.md
vendored
2
.github/README.md
vendored
@@ -14,7 +14,7 @@ https://github.com/azerothcore/mod-anticheat/wiki
|
||||
|
||||
## Notice
|
||||
|
||||
Requires revision [c50f7feda](https://github.com/azerothcore/azerothcore-wotlk/commit/c50f7feda0ee360f7bcca7f004bf6fb22abde533) or newer.
|
||||
Requires revision [eb91bbf](https://github.com/azerothcore/azerothcore-wotlk/commit/eb91bbfc5627ca3d410cdef5a08e7baf23f6452f) or newer.
|
||||
|
||||
## How to install
|
||||
|
||||
|
||||
2
.github/README_ES.md
vendored
2
.github/README_ES.md
vendored
@@ -14,7 +14,7 @@ https://github.com/azerothcore/mod-anticheat/wiki
|
||||
|
||||
## Aviso
|
||||
|
||||
Requiere revisión [c50f7feda](https://github.com/azerothcore/azerothcore-wotlk/commit/c50f7feda0ee360f7bcca7f004bf6fb22abde533) o posterior.
|
||||
Requiere revisión [eb91bbf](https://github.com/azerothcore/azerothcore-wotlk/commit/eb91bbfc5627ca3d410cdef5a08e7baf23f6452f)) o posterior.
|
||||
|
||||
## Cómo instalar
|
||||
|
||||
|
||||
@@ -503,9 +503,7 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
|
||||
|
||||
if (player->duel)
|
||||
{
|
||||
if ((clientSpeedRate > speedRate * 1.25f) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING))
|
||||
{
|
||||
if (!player->CanTeleport())
|
||||
if ((clientSpeedRate > speedRate) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING))
|
||||
{
|
||||
Player* opponent = player->duel->Opponent;
|
||||
std::string str = "|cFFFFFC00[DUEL CHEAT ALERT Playername:|cFF00FFFF[|cFF60FF00" + std::string(player->GetName().c_str()) + "|cFF00FFFF] Possible Speed Hack Detected! While Dueling [|cFF60FF00" + std::string(opponent->GetName().c_str()) + "|cFF00FFFF]";
|
||||
@@ -521,22 +519,20 @@ void AnticheatMgr::SpeedHackDetection(Player* player, MovementInfo movementInfo)
|
||||
}
|
||||
BuildReport(player, SPEED_HACK_REPORT);
|
||||
BuildReport(opponent, SPEED_HACK_REPORT);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 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 ((clientSpeedRate > speedRate) && !m_Players[key].GetLastMovementInfo().HasMovementFlag(MOVEMENTFLAG_FALLING))
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user