Add packet logging option to movement anticheat.

You can parse the logs with https://github.com/ratkosrb/wowpacketparser/tree/classic
This commit is contained in:
ratkosrb
2021-08-05 08:55:17 +03:00
parent a83040d897
commit 9e2da1bd72
14 changed files with 312 additions and 9 deletions
+4
View File
@@ -47,6 +47,7 @@
#include "ZoneScriptMgr.h"
#include "InstanceData.h"
#include "Chat.h"
#include "Anticheat.h"
#include "packet_builder.h"
#include "MovementBroadcaster.h"
@@ -2020,6 +2021,9 @@ void WorldObject::SendObjectMessageToSet(WorldPacket* data, bool self, WorldObje
void WorldObject::SendMovementMessageToSet(WorldPacket data, bool self, WorldObject const* except)
{
if (self && !except && IsPlayer())
static_cast<Player*>(this)->GetCheatData()->LogMovementPacket(false, data);
if (!IsPlayer() || !sWorld.GetBroadcaster()->IsEnabled())
SendObjectMessageToSet(&data, true, except);
else