aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/gameutils.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-10 02:45:34 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-01-10 02:45:34 +0000
commit4a16290a48e65d9cb30c7aef6c405043d7c5d182 (patch)
tree0610ffce68238fa121e03e4d55a13b2dcb9cd3ed /NorthstarDedicatedTest/gameutils.h
parent99d58d760032ff89ff91df9afc58e23b50c011b9 (diff)
downloadNorthstarLauncher-4a16290a48e65d9cb30c7aef6c405043d7c5d182.tar.gz
NorthstarLauncher-4a16290a48e65d9cb30c7aef6c405043d7c5d182.zip
prevent FCVAR_GAMEDLL concommands without FCVAR_CLIENTCMD_CAN_EXECUTE from being called by non-local clients
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.h')
-rw-r--r--NorthstarDedicatedTest/gameutils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/gameutils.h b/NorthstarDedicatedTest/gameutils.h
index ff6a0fbf..aaa1dfb9 100644
--- a/NorthstarDedicatedTest/gameutils.h
+++ b/NorthstarDedicatedTest/gameutils.h
@@ -193,6 +193,16 @@ public:
extern CEngine* g_pEngine;
+enum server_state_t
+{
+ ss_dead = 0, // Dead
+ ss_loading, // Spawning
+ ss_active, // Running
+ ss_paused, // Running, but paused
+};
+
+extern server_state_t* sv_m_State;
+
// network stuff
extern ConVar* Cvar_hostport;
@@ -237,6 +247,9 @@ extern Plat_FloatTimeType Plat_FloatTime;
typedef bool(*ThreadInServerFrameThreadType)();
extern ThreadInServerFrameThreadType ThreadInServerFrameThread;
+typedef void*(*GetBaseLocalClientType)();
+extern GetBaseLocalClientType GetBaseLocalClient;
+
void InitialiseEngineGameUtilFunctions(HMODULE baseAddress);
void InitialiseServerGameUtilFunctions(HMODULE baseAddress);
void InitialiseTier0GameUtilFunctions(HMODULE baseAddress); \ No newline at end of file