feat: Add cheat detection knowledge (#2034)

* feat: Add cheat detection knowledge

tested that getting kicked correctly displays the reasons why and their corresponding values
tested that a user with developer permissions is not kicked for said funness
tested that logs are correct for those funness values which i could actually trigger

* fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
David Markowitz
2026-09-18 02:30:59 -07:00
committed by GitHub
parent 8f2004c9a3
commit 057de71773
4 changed files with 89 additions and 9 deletions

View File

@@ -0,0 +1,26 @@
#ifndef EFUNNESSTYPES_H
#define EFUNNESSTYPES_H
#include <cstdint>
// Most of these are guesses from the client, some are unused (maybe server side only?) and
// some are really hard to pin a definition down for because they are buried in havok stuff
enum class eFunnessTypes : int32_t {
DebuggerActive = 1,
CharacterPosLength = 2,
CharacterVelLength = 5,
CharacterRunMultiplier = 6,
CharacterGravityScale = 7,
Unknown_9 = 9,
Unknown_10 = 10,
RacingBoostTimeTooLong = 12,
SomeRacingManipCheat = 13,
FdbFailedChecksum = 14,
};
struct CaughtFunness {
eFunnessTypes cheatType{};
float cheatInfo{};
};
#endif //!EFUNNESSTYPES_H