feat (new detection): Anti-Knock Back Detection

Anti-knock Back Detection established.
This commit is contained in:
MDIC
2022-08-05 20:54:54 -04:00
parent 3398b78eee
commit eaa8e3fc3e
5 changed files with 76 additions and 42 deletions

View File

@@ -48,7 +48,8 @@ enum ReportTypes
IGNORE_CONTROL_REPORT = 7,
ZAXIS_HACK_REPORT = 8,
ANTISWIM_HACK_REPORT = 9,
GRAVITY_HACK_REPORT = 10
GRAVITY_HACK_REPORT = 10,
ANTIKNOCK_BACK_HACK_REPORT = 11
// MAX_REPORT_TYPES
};
@@ -83,6 +84,7 @@ class AnticheatMgr
void AnticheatDeleteCommand(ObjectGuid guid);
void AnticheatPurgeCommand(ChatHandler* handler);
void ResetDailyReportStates();
private:
void SpeedHackDetection(Player* player, MovementInfo movementInfo);
void FlyHackDetection(Player* player, MovementInfo movementInfo);
@@ -95,7 +97,7 @@ class AnticheatMgr
void WalkOnWaterHackDetection(Player* player, MovementInfo movementInfo);
void ZAxisHackDetection(Player* player, MovementInfo movementInfo);
void AntiSwimHackDetection(Player* player, MovementInfo movementInfo, uint32 opcode);
void AntiKnockBackHactDetection(Player* player, MovementInfo movementInfo);
void BuildReport(Player* player,uint16 reportType);
bool MustCheckTempReports(uint8 type);
uint32 _counter = 0;