Reject movement packet if a cheat is detected.

Completely neutralizes some cheats, without kicking innocent players on false positive. The packet is rejected and correct position and flags are sent back to the client.
This commit is contained in:
ratkosrb
2019-06-20 23:35:51 +03:00
parent bd5a1a7ded
commit f6bfb9a2ed
9 changed files with 728 additions and 444 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ WorldSession::WorldSession(uint32 id, WorldSocket *sock, AccountTypes sec, time_
m_sessionDbLocaleIndex(sObjectMgr.GetIndexForLocale(locale)), m_latency(0), m_tutorialState(TUTORIALDATA_UNCHANGED), m_warden(nullptr), m_cheatData(nullptr),
m_bot(nullptr), m_lastReceivedPacketTime(0), _clientOS(CLIENT_OS_UNKNOWN), _gameBuild(0),
_charactersCount(10), _characterMaxLevel(0), _clientHashComputeStep(HASH_NOT_COMPUTED), m_masterSession(nullptr), m_nodeSession(nullptr),
m_masterPlayer(nullptr), m_lastPubChannelMsgTime(NULL)
m_masterPlayer(nullptr), m_lastPubChannelMsgTime(NULL), m_moveRejectTime(0)
{
if (sock)
{