update (detection\sql): Teleport Hack Edge Case and Log

Added additional logging to teleport hack GM notifications. Fixed edge case with false hit with teleport hack.
This commit is contained in:
M'Dic
2022-12-18 11:49:42 -05:00
parent 8287b4fff5
commit c0fb8fce6e
2 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1 @@
UPDATE `acore_string` SET `content_default`='|cffffff00[|cffff0000ANTICHEAT ALERT|r|cffffff00]:|r POSSIBLE TELEPORT HACK DETECTED|cFFFF8C00 [|Hplayer:%s|h%s|h|r|cFFFF8C00]|r - Latency: %u ms - GPS Diff x: %f, y: %f, z: %f', `locale_esES`='|cffffff00[|cffff0000ALERTA ANTITRAMPAS|r|cffffff00]:|r POSIBLE HACK DE TELEPORTE DETECTADO|cFFFF8C00[|Hplayer:%s|h%s|h|r|cFFFF8C00]|r - Latency: %u ms - GPS Diff x: %f, y: %f, z: %f', `locale_esMX`='|cffffff00[|cffff0000ALERTA ANTITRAMPAS|r|cffffff00]:|r POSIBLE HACK DE TELEPORTE DETECTADO|cFFFF8C00 [|Hplayer:%s|h%s|h|r|cFFFF8C00]|r - Latency: %u ms - GPS Diff x: %f, y: %f, z: %f' WHERE `entry`=30088;

View File

@@ -500,7 +500,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
if (player->duel)
{
if ((xDiff >= 50.0f || yDiff >= 50.0f || (zDiff >= 10.0f && !player->IsFlying() && !player->IsFalling())) && !player->CanTeleport())
if ((xDiff >= 50.0f || yDiff >= 50.0f || (zDiff >= 10.0f && !player->IsFlying() && !player->IsFalling())) && !player->CanTeleport() && !player->HasAuraType(SPELL_AURA_FEATHER_FALL))
{
Player* opponent = player->duel->Opponent;
@@ -528,7 +528,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
player->SetCanTeleport(false);
}
if ((xDiff >= 50.0f || yDiff >= 50.0f || (zDiff >= 10.0f && !player->IsFlying() && !player->IsFalling())) && !player->CanTeleport())
if ((xDiff >= 50.0f || yDiff >= 50.0f || (zDiff >= 10.0f && !player->IsFlying() && !player->IsFalling())) && !player->CanTeleport() && !player->HasAuraType(SPELL_AURA_FEATHER_FALL))
{
if (m_Players[key].GetTotalReports() > sConfigMgr->GetOption<uint32>("Anticheat.ReportsForIngameWarnings", 70))
{
@@ -548,7 +548,7 @@ void AnticheatMgr::TeleportHackDetection(Player* player, MovementInfo movementIn
// need better way to limit chat spam
if (m_Players[key].GetTotalReports() >= sConfigMgr->GetOption<uint32>("Anticheat.ReportinChat.Min", 70) && m_Players[key].GetTotalReports() <= sConfigMgr->GetOption<uint32>("Anticheat.ReportinChat.Max", 80))
{
sWorld->SendGMText(LANG_ANTICHEAT_TELEPORT, player->GetName().c_str(), latency);
sWorld->SendGMText(LANG_ANTICHEAT_TELEPORT, player->GetName().c_str(), player->GetName().c_str(), latency, xDiff, yDiff, zDiff);
}
_counter = 0;
}