From 95b41b6f8cc612953eafd7f8b6b40124e1590bc7 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sun, 12 Feb 2023 21:15:00 +0000 Subject: Add `CGlobals` class and `g_pGlobals`, and update code to support (#411) * add CGlobals class and g_pGlobals, and update scripts to support * don't automatically enable antispeedhack (oops) * add dedicated.cpp * format * bad push oops * reformat again --- NorthstarDLL/engine/r2engine.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'NorthstarDLL/engine/r2engine.cpp') diff --git a/NorthstarDLL/engine/r2engine.cpp b/NorthstarDLL/engine/r2engine.cpp index 22884a73..eaa392c8 100644 --- a/NorthstarDLL/engine/r2engine.cpp +++ b/NorthstarDLL/engine/r2engine.cpp @@ -21,6 +21,8 @@ namespace R2 char* g_pModName = nullptr; // we cant set this up here atm since we dont have an offset to it in engine, instead we store it in IsRespawnMod + + CGlobalVars* g_pGlobals; } // namespace R2 ON_DLL_LOAD("engine.dll", R2Engine, (CModule module)) @@ -37,4 +39,6 @@ ON_DLL_LOAD("engine.dll", R2Engine, (CModule module)) g_pClientArray = module.Offset(0x12A53F90).As(); g_pServerState = module.Offset(0x12A53D48).As(); + + g_pGlobals = module.Offset(0x7C6F70).As(); } -- cgit v1.2.3