Add server-side anti-cheat evidence scoring
Some checks failed
build / Linux asan (push) Has been cancelled
build / Linux release (push) Has been cancelled
build / FreeBSD build (push) Has been cancelled

This commit is contained in:
server
2026-04-16 11:18:39 +02:00
parent b4ee8aa5d7
commit e8bcfe06f0
5 changed files with 160 additions and 17 deletions

View File

@@ -1304,14 +1304,20 @@ class CHARACTER : public CEntity, public CFSM, public CHorseRider
void ResetComboHackCount();
void SkipComboAttackByTime(int interval);
DWORD GetSkipComboAttackByTime() const;
void RecordAntiCheatViolation(const char* category, int score, const char* detail = nullptr, bool forcePersist = false);
int GetAntiCheatScore() const { return m_iAntiCheatScore; }
protected:
void DecayAntiCheatScore(DWORD dwNow);
BYTE m_bComboSequence;
DWORD m_dwLastComboTime;
int m_iValidComboInterval;
BYTE m_bComboIndex;
int m_iComboHackCount;
DWORD m_dwSkipComboAttackByTime;
int m_iAntiCheatScore;
DWORD m_dwLastAntiCheatScoreTime;
DWORD m_dwLastAntiCheatPersistTime;
protected:
void UpdateAggrPointEx(LPCHARACTER ch, EDamageType type, int dam, TBattleInfo & info);