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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user