aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/gameutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.cpp')
-rw-r--r--NorthstarDedicatedTest/gameutils.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/gameutils.cpp b/NorthstarDedicatedTest/gameutils.cpp
index adf13be7..2ad2821c 100644
--- a/NorthstarDedicatedTest/gameutils.cpp
+++ b/NorthstarDedicatedTest/gameutils.cpp
@@ -26,10 +26,17 @@ GetCurrentPlaylistVarType GetCurrentPlaylistVar;
// server entity stuff
Server_GetEntityByIndexType Server_GetEntityByIndex;
+// server tickrate stuff
+ConVar* Cvar_base_tickinterval_mp;
+ConVar* Cvar_base_tickinterval_sp;
+
// auth
char* g_LocalPlayerUserID;
char* g_LocalPlayerOriginToken;
+// misc stuff
+ConVar* Cvar_match_defaultMap;
+
void InitialiseEngineGameUtilFunctions(HMODULE baseAddress)
{
Cbuf_GetCurrentPlayer = (Cbuf_GetCurrentPlayerType)((char*)baseAddress + 0x120630);
@@ -48,9 +55,13 @@ void InitialiseEngineGameUtilFunctions(HMODULE baseAddress)
g_LocalPlayerUserID = (char*)baseAddress + 0x13F8E688;
g_LocalPlayerOriginToken = (char*)baseAddress + 0x13979C80;
+
+ Cvar_match_defaultMap = (ConVar*)((char*)baseAddress + 0x8AB530);
}
void InitialiseServerGameUtilFunctions(HMODULE baseAddress)
{
Server_GetEntityByIndex = (Server_GetEntityByIndexType)((char*)baseAddress + 0xFB820);
+ Cvar_base_tickinterval_mp = (ConVar*)((char*)baseAddress + 0xBFC360);
+ Cvar_base_tickinterval_mp = (ConVar*)((char*)baseAddress + 0xBFBEA0);
} \ No newline at end of file