mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-09-23 22:43:43 +00:00
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:
26
dCommon/dEnums/eFunnessTypes.h
Normal file
26
dCommon/dEnums/eFunnessTypes.h
Normal 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
|
||||
Reference in New Issue
Block a user