feat (New Detection) Ignore Z-Axis Check

So this happens when a player is able to block their z-axis from updating with the server. This achieves the ability to run across the sky while avoiding fly hack detection. Usually get on a high object and then run accross, their x and y will chance but their elevation will not.
Warning: At times there will be false positives due to "pot holes" in the vmaps. This can not be avoided unless someone wants to redo all the maps with a better map extractor pr or rework all the maps in recast demo.
This commit is contained in:
MDIC
2022-03-30 19:28:05 -04:00
parent 0e8a84637f
commit 870cd832f8
3 changed files with 59 additions and 3 deletions

View File

@@ -36,8 +36,8 @@ enum ReportTypes
TELEPORT_PLANE_HACK_REPORT = 4,
CLIMB_HACK_REPORT = 5,
TELEPORT_HACK_REPORT = 6,
IGNORE_CONTROL_REPORT = 7
IGNORE_CONTROL_REPORT = 7,
ZAXIS_HACK_REPORT = 8
// MAX_REPORT_TYPES
};
@@ -50,7 +50,8 @@ enum DetectionTypes
TELEPORT_PLANE_HACK_DETECTION = 16,
CLIMB_HACK_DETECTION = 32,
TELEPORT_HACK_DETECTION = 64,
IGNORE_CONTROL_DETECTION = 128
IGNORE_CONTROL_DETECTION = 128,
ZAXIS_HACK_DETECTION = 256
};
// GUID is the key.
@@ -92,6 +93,7 @@ class AnticheatMgr
void ClimbHackDetection(Player* player,MovementInfo movementInfo,uint32 opcode);
void TeleportHackDetection(Player* player, MovementInfo movementInfo);
void IgnoreControlHackDetection(Player* player, MovementInfo movementInfo);
void ZAxisHackDetection(Player* player, MovementInfo movementInfo);
void BuildReport(Player* player,uint16 reportType);
bool MustCheckTempReports(uint8 type);