mirror of
https://github.com/azerothcore/mod-anticheat.git
synced 2026-03-16 13:15:08 +00:00
Additional Warning
Will alert when teleport hack is possibly being used. since no one is going to tele hack over 70 times for a auto report to kick in.
This commit is contained in:
@@ -203,6 +203,12 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
|
|||||||
|
|
||||||
if ((xDiff >= 50.0f || yDiff >= 50.0f) && !player->CanTeleport())
|
if ((xDiff >= 50.0f || yDiff >= 50.0f) && !player->CanTeleport())
|
||||||
{
|
{
|
||||||
|
// display warning at the center of the screen, hacky way?
|
||||||
|
std::string str = "";
|
||||||
|
str = "|cFFFFFC00[Playername:|cFF00FFFF[|cFF60FF00" + std::string(player->GetName().c_str()) + "|cFF00FFFF] Possible Teleport Hack Detected!";
|
||||||
|
WorldPacket data(SMSG_NOTIFICATION, (str.size() + 1));
|
||||||
|
data << str;
|
||||||
|
sWorld->SendGlobalGMMessage(&data);
|
||||||
LOG_INFO("module", "AnticheatMgr:: Teleport-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString());
|
LOG_INFO("module", "AnticheatMgr:: Teleport-Hack detected player {} ({})", player->GetName(), player->GetGUID().ToString());
|
||||||
BuildReport(player, TELEPORT_HACK_REPORT);
|
BuildReport(player, TELEPORT_HACK_REPORT);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user