aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/gameutils.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-11-29 01:06:10 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-11-29 01:06:10 +0000
commitac0c658516d8eaef2c788624f94e974ef47acbb8 (patch)
tree366e3b600788c35841610bfb469369800768d4f5 /NorthstarDedicatedTest/gameutils.cpp
parent9855e3c4efeb58fe298147fe52460b358739d7dc (diff)
downloadNorthstarLauncher-ac0c658516d8eaef2c788624f94e974ef47acbb8.tar.gz
NorthstarLauncher-ac0c658516d8eaef2c788624f94e974ef47acbb8.zip
web browser changes and dedi fixes
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