Skip to content

Commit

Permalink
Fix l4d1 reservation offsets
Browse files Browse the repository at this point in the history
accelerator74 committed May 6, 2024

Verified

This commit was signed with the committer’s verified signature.
mariancraciun1983 Marian Craciun
1 parent 057e6ce commit 93ae32e
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l4d1_offsets_linux.h
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

const char* engine_dll = "engine.so";
int slots_offs = 94; // m_numGameSlots (in CGameServer::ExecGameTypeCfg)
int reservation_idx = 61; // CBaseServer::ReplyReservationRequest(netadr_s&, bf_read&) vtable
int reservation_idx = 60; // CBaseServer::ReplyReservationRequest(netadr_s&, bf_read&) vtable
int maxhuman_idx = 132; // CTerrorGameRules::GetMaxHumanPlayers vtable

#endif //_INCLUDE_L4D1_OFFSETS_LINUX_
2 changes: 1 addition & 1 deletion l4d1_offsets_win32.h
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

int sv_offs = 6; // IServer pointer (in IVEngineServer::CreateFakeClient)
int slots_offs = 96; // m_numGameSlots (in CGameServer::ExecGameTypeCfg)
int reservation_idx = 60; // CBaseServer::ReplyReservationRequest(netadr_s&, bf_read&) vtable
int reservation_idx = 59; // CBaseServer::ReplyReservationRequest(netadr_s&, bf_read&) vtable
int maxhuman_idx = 131; // CTerrorGameRules::GetMaxHumanPlayers vtable

#endif //_INCLUDE_L4D1_OFFSETS_WIN32_

0 comments on commit 93ae32e

Please sign in to comment.