fix(): False positives against speed hacks and countermeasures (#114)

This commit is contained in:
Synful-Syn
2023-06-07 14:21:13 -04:00
committed by GitHub
parent 00e1399838
commit 3177f5deca
4 changed files with 107 additions and 27 deletions

View File

@@ -27,6 +27,7 @@
AnticheatData::AnticheatData()
{
lastOpcode = 0;
lastSpeedRate = 0.0f;
totalReports = 0;
for (uint8 i = 0; i < MAX_REPORT_TYPES; i++)
{
@@ -34,15 +35,23 @@ AnticheatData::AnticheatData()
tempReports[i] = 0;
tempReportsTimer[i] = 0;
}
average = 0;
average = 0.0f;
creationTime = 0;
hasDailyReport = false;
justUsedMovementSpell = false;
}
AnticheatData::~AnticheatData()
{
}
void AnticheatData::SetLastInformations(MovementInfo movementInfo, uint32 opcode, float speedRate)
{
SetLastMovementInfo(movementInfo);
SetLastOpcode(opcode);
SetLastSpeedRate(speedRate);
}
void AnticheatData::SetDailyReportState(bool b)
{
hasDailyReport = b;