aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-02 20:51:22 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-02 20:51:22 +0000
commitff875c0551c54bb187b5320b81029f8fe7f010fb (patch)
treea99a9df3b30bb85c76acc05afb005d87d6614950 /NorthstarDedicatedTest/serverauthentication.h
parentbe0d965142ec2078a20f402dd12d0f2f135842fe (diff)
downloadNorthstarLauncher-ff875c0551c54bb187b5320b81029f8fe7f010fb.tar.gz
NorthstarLauncher-ff875c0551c54bb187b5320b81029f8fe7f010fb.zip
add chat ratelimits and system for hooking chat messages
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.h')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.h b/NorthstarDedicatedTest/serverauthentication.h
index 8b346f1d..6702eb3d 100644
--- a/NorthstarDedicatedTest/serverauthentication.h
+++ b/NorthstarDedicatedTest/serverauthentication.h
@@ -23,7 +23,10 @@ struct AdditionalPlayerData
int numClientCommandsInQuota = 0;
double lastNetChanProcessingLimitStart = -1.0;
- double netChanProcessingLimitTime = 0;
+ double netChanProcessingLimitTime = 0.0;
+
+ double lastSayTextLimitStart = -1.0;
+ int sayTextLimitCount = 0;
};
#pragma once
@@ -98,6 +101,7 @@ typedef void(*CBaseClient__DisconnectType)(void* self, uint32_t unknownButAlways
extern CBaseClient__DisconnectType CBaseClient__Disconnect;
void InitialiseServerAuthentication(HMODULE baseAddress);
+void InitialiseServerAuthenticationServerDLL(HMODULE baseAddress);
extern ServerAuthenticationManager* g_ServerAuthenticationManager;
extern ConVar* Cvar_ns_player_auth_port; \ No newline at end of file