#include "pch.h" #include "gameutils.h" #include "convar.h" // cmd.h Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer; Cbuf_AddTextType Cbuf_AddText; // hoststate stuff CHostState* g_GameCHostStateSingleton; // network stuff ConVar* Cvar_hostport; // playlist stuff GetCurrentPlaylistType GetCurrentPlaylistName; void InitialiseEngineGameUtilFunctions(HMODULE baseAddress) { Cbuf_GetCurrentPlayer = (Cbuf_GetCurrentPlayerType)((char*)baseAddress + 0x120630); Cbuf_AddText = (Cbuf_AddTextType)((char*)baseAddress + 0x1203B0); g_GameCHostStateSingleton = (CHostState*)((char*)baseAddress + 0x7CF180); Cvar_hostport = (ConVar*)((char*)baseAddress + 0x1FA6070); GetCurrentPlaylistName = (GetCurrentPlaylistType)((char*)baseAddress + 0x18C640); }