diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-15 00:20:56 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-15 00:20:56 +0100 |
commit | ba26be9bea801f219fa6340178fd6b13f02d574e (patch) | |
tree | f50e67e06f7174daca0c97cf95659c7cbcef8151 /NorthstarDLL/limits.h | |
parent | d2907aa522d56a4baacec1c17426f7d6f1fae3a2 (diff) | |
download | NorthstarLauncher-ba26be9bea801f219fa6340178fd6b13f02d574e.tar.gz NorthstarLauncher-ba26be9bea801f219fa6340178fd6b13f02d574e.zip |
clang format, fix issues with server registration and rpak loading
Diffstat (limited to 'NorthstarDLL/limits.h')
-rw-r--r-- | NorthstarDLL/limits.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/NorthstarDLL/limits.h b/NorthstarDLL/limits.h index 943e07b6..068f91c9 100644 --- a/NorthstarDLL/limits.h +++ b/NorthstarDLL/limits.h @@ -13,6 +13,8 @@ struct PlayerLimitData double lastSayTextLimitStart = -1.0; int sayTextLimitCount = 0; + + float flFrameUserCmdBudget = 0.0; }; struct UnconnectedPlayerLimitData @@ -31,12 +33,17 @@ class ServerLimitsManager ConVar* Cvar_net_chan_limit_msec_per_sec; ConVar* Cvar_sv_querylimit_per_sec; ConVar* Cvar_sv_max_chat_messages_per_sec; + ConVar* Cvar_sv_antispeedhack_enable; + ConVar* Cvar_sv_antispeedhack_maxtickbudget; + ConVar* Cvar_sv_antispeedhack_budgetincreasemultiplier; std::unordered_map<R2::CBaseClient*, PlayerLimitData> m_PlayerLimitData; std::vector<UnconnectedPlayerLimitData> m_UnconnectedPlayerLimitData; public: + void RunFrame(double flCurrentTime, float flFrameTime); void AddPlayer(R2::CBaseClient* player); + void RemovePlayer(R2::CBaseClient* player); bool CheckStringCommandLimits(R2::CBaseClient* player); bool CheckChatLimits(R2::CBaseClient* player); }; |