From 9a3e1ec2daf753106ee95d53719d94921d3b051f Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Mon, 9 Aug 2021 22:21:46 +0100 Subject: add mod localisation, say command and more masterserver stuff --- NorthstarDedicatedTest/gameutils.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'NorthstarDedicatedTest/gameutils.h') diff --git a/NorthstarDedicatedTest/gameutils.h b/NorthstarDedicatedTest/gameutils.h index 4c2254e7..042e9bd5 100644 --- a/NorthstarDedicatedTest/gameutils.h +++ b/NorthstarDedicatedTest/gameutils.h @@ -1,4 +1,5 @@ #pragma once +#include "convar.h" // cmd.h @@ -54,4 +55,33 @@ extern Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer; typedef void(*Cbuf_AddTextType)(ECommandTarget_t eTarget, const char* text, cmd_source_t source); extern Cbuf_AddTextType Cbuf_AddText; + +// hoststate stuff + +struct CHostState +{ +public: + int32_t m_iCurrentState; + int32_t m_iNextState; + + float m_vecLocation[3]; + float m_angLocation[3]; + + char m_levelName[32]; + + // not reversed past this point, struct seems weird +}; + +extern CHostState* g_GameCHostStateSingleton; + +// network stuff + +extern ConVar* Cvar_hostport; + + +// playlist stuff + +typedef const char*(*GetCurrentPlaylistType)(); +extern GetCurrentPlaylistType GetCurrentPlaylistName; + void InitialiseEngineGameUtilFunctions(HMODULE baseAddress); \ No newline at end of file -- cgit v1.2.3