Files
l4dtoolz_new/game_offsets.h
T
Accelerator ef2a8df7e0
build / build with mms1.12 on oldlinux (push) Has been cancelled
build / build with mms1.12 on linux (push) Has been cancelled
build / build with mms1.12 on win (push) Has been cancelled
build / Release (push) Has been cancelled
2.2.0
New method for changing the MaxClients limit. Thanks to @A1mDev
2025-11-18 18:57:20 +03:00

23 lines
800 B
C

#ifndef _INCLUDE_GAME_OFFSETS_
#define _INCLUDE_GAME_OFFSETS_
#if SH_SYS == SH_SYS_WIN32
#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
#else
#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
#endif
#endif //_INCLUDE_GAME_OFFSETS_