TmpMenu/src/core/data/infractions.hpp
maybegreat48 4a5dccd547 Huge protection improvements and other stuff (#1963)
* feat(protections): add a fuzzer
* feat(protections): improve protections
* feat(spoofing): add warning
* feat(world): force object cleanup
* fix(weapons): fix custom weapon code
* fix(weapons): fix for #1983
2023-08-19 13:01:08 +02:00

45 lines
1.8 KiB
C++

#pragma once
#include "gta/joaat.hpp"
namespace big
{
// Add new values to the bottom
enum class Infraction
{
DESYNC_PROTECTION, // do not use
BREAKUP_KICK_DETECTED, // do not use
LOST_CONNECTION_KICK_DETECTED, // do not use
SPOOFED_ROCKSTAR_ID, // do not use
TRIGGERED_ANTICHEAT,
TRIED_CRASH_PLAYER,
TRIED_KICK_PLAYER,
BLAME_EXPLOSION_DETECTED, // do not use (for now)
ATTACKING_WITH_GODMODE,
ATTACKING_WITH_INVISIBILITY,
ATTACKING_WHEN_HIDDEN_FROM_PLAYER_LIST,
SPOOFED_DATA,
SPOOFED_HOST_TOKEN,
INVALID_PLAYER_MODEL,
SUPER_JUMP,
UNDEAD_OTR,
};
inline std::unordered_map<Infraction, const char*> infraction_desc = {
{Infraction::DESYNC_PROTECTION, "Used desync protections"},
{Infraction::BREAKUP_KICK_DETECTED, "Kicked someone using breakup kick"},
{Infraction::LOST_CONNECTION_KICK_DETECTED, "Tried to kick someone using lost connection kick"},
{Infraction::SPOOFED_ROCKSTAR_ID, "Had spoofed RID"},
{Infraction::TRIGGERED_ANTICHEAT, "Triggered Rockstar's anticheat"},
{Infraction::TRIED_CRASH_PLAYER, "Tried to crash you"},
{Infraction::TRIED_KICK_PLAYER, "Tried to kick you"},
{Infraction::BLAME_EXPLOSION_DETECTED, "Tried to blame someone for their explosion"},
{Infraction::ATTACKING_WITH_GODMODE, "Attacked someone while using godmode"},
{Infraction::ATTACKING_WITH_INVISIBILITY, "Attacked someone while being invisible"},
{Infraction::ATTACKING_WHEN_HIDDEN_FROM_PLAYER_LIST, "Attacked someone while being hidden from the player list"},
{Infraction::SPOOFED_DATA, "Had spoofed data"},
{Infraction::SPOOFED_HOST_TOKEN, "Had spoofed their host token"},
{Infraction::INVALID_PLAYER_MODEL, "Had used an invalid player model"},
{Infraction::SUPER_JUMP, "Had used super jump"},
{Infraction::UNDEAD_OTR, "Had used undead OTR"},
};
}