feat (experimential\conf): Op Code Ack Hack Check

New conf:
Anticheat.OpAckOrderHack = 1

This is experimental. It will run with just the new conf. This checks for the more advance hacks of op code manipulation sent to the server.
It will not alert the GMs and will not add to the collumn counts at the current moment. It will only log into the log file when the conf is enabled.
This is experimental until we get feed back on performance impact.
This commit is contained in:
MDIC
2022-08-18 12:59:04 -04:00
parent 9e9105080b
commit a4e1ef2feb
4 changed files with 111 additions and 1 deletions

View File

@@ -51,6 +51,12 @@ public:
if (sConfigMgr->GetOption<bool>("Anticheat.LoginMessage", true))
ChatHandler(player->GetSession()).PSendSysMessage("This server is running an Anticheat Module.");
}
void OnUpdate(Player* player, uint32 diff) override
{
if (sConfigMgr->GetOption<bool>("Anticheat.OpAckOrderHack", true))
sAnticheatMgr->AckUpdate(player, diff);
}
};
class AnticheatWorldScript : public WorldScript