Files
l4dtoolz_new/game_offsets.h

25 lines
980 B
C
Raw Permalink Normal View History

2024-05-05 14:08:27 +03:00
#ifndef _INCLUDE_GAME_OFFSETS_
#define _INCLUDE_GAME_OFFSETS_
2024-05-05 14:13:16 +03:00
#if SH_SYS == SH_SYS_WIN32
const int maxplayers_offs = 0x228; // m_nMaxClientsLimit (in CGameServer::SetMaxClients)
#if SOURCE_ENGINE == SE_LEFT4DEAD
const int sv_offs = 6; // IServer pointer (in IVEngineServer::CreateFakeClient)
const int maxhuman_idx = 131; // CTerrorGameRules::GetMaxHumanPlayers vtable
#else
const int sv_offs = 8; // IServer pointer (in IVEngineServer::CreateFakeClient)
const int maxhuman_idx = 136; // CTerrorGameRules::GetMaxHumanPlayers vtable
#endif
2024-05-05 14:08:27 +03:00
#else
const int maxplayers_offs = 0x220; // m_nMaxClientsLimit (in CGameServer::SetMaxClients)
#if SOURCE_ENGINE == SE_LEFT4DEAD
const char* engine_dll = "engine.so";
const int maxhuman_idx = 132; // CTerrorGameRules::GetMaxHumanPlayers vtable
#else
const char* engine_dll = "engine_srv.so";
const int maxhuman_idx = 137; // CTerrorGameRules::GetMaxHumanPlayers vtable
#endif
2024-05-05 14:08:27 +03:00
#endif
#endif //_INCLUDE_GAME_OFFSETS_