From b0bef05111a95a4cce6250d2b79e2aa5baa6dd98 Mon Sep 17 00:00:00 2001 From: BobTheBob9 Date: Mon, 18 Jul 2022 00:00:39 +0100 Subject: use modular ServerPresence system for registering servers --- NorthstarDLL/r2server.h | 51 +++---------------------------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) (limited to 'NorthstarDLL/r2server.h') diff --git a/NorthstarDLL/r2server.h b/NorthstarDLL/r2server.h index c032d722..9d8cbdde 100644 --- a/NorthstarDLL/r2server.h +++ b/NorthstarDLL/r2server.h @@ -3,55 +3,10 @@ // use the R2 namespace for game funcs namespace R2 { - enum server_state_t - { - ss_dead = 0, // Dead - ss_loading, // Spawning - ss_active, // Running - ss_paused, // Running, but paused - }; - - extern server_state_t* g_pServerState; - // server entity stuff - extern void* (*Server_GetEntityByIndex)(int index); - - const int PERSISTENCE_MAX_SIZE = 0xD000; - - enum class ePersistenceReady : char - { - NOT_READY, - READY = 3, - READY_LOCAL = 3, - READY_REMOTE - }; - - #pragma pack(push, 1) - struct CBasePlayer - { - char pad0[0x16]; - - // +0x16 - char m_Name[64]; - // +0x56 - - char pad1[0x44A]; - - // +0x4A0 - ePersistenceReady m_iPersistenceReady; - // +0x4A1 - - char pad2[0x59]; - - // +0x4FA - char m_PersistenceBuffer[PERSISTENCE_MAX_SIZE]; - - char pad3[0x2006]; - - // +0xF500 - char m_UID[32]; - }; - #pragma pack(pop) + class CBaseEntity; + extern CBaseEntity* (*Server_GetEntityByIndex)(int index); + class CBasePlayer; extern CBasePlayer*(__fastcall* UTIL_PlayerByIndex)(int playerIndex); } // namespace R2 \ No newline at end of file -- cgit v1.2.3