Skip to content

Fix: use direct Schema access instead of broken engine vtable calls#22

Open
Tsukasa-Nefren wants to merge 1 commit into
Source2ZE:masterfrom
Tsukasa-Nefren:master
Open

Fix: use direct Schema access instead of broken engine vtable calls#22
Tsukasa-Nefren wants to merge 1 commit into
Source2ZE:masterfrom
Tsukasa-Nefren:master

Conversation

@Tsukasa-Nefren

Copy link
Copy Markdown

No description provided.

Replaced IVEngineServer::GetClientSteamID and IServerGameClients::GetPlayerScore
vtable calls with direct CCSPlayerController Schema field access (m_steamID, m_iScore).
This avoids breakage from CS2 engine updates that shifted CPlayerSlot to CEntityIndex.
@Vauff

Vauff commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

I don't believe these changes are really needed, the existing setup works fine with an SDK rebuild, just an alternative way of doing things.

Even if this was just for reducing future update maintenance of similar breakage, GetServerGlobals() was still affected by the same VTable shift (see #21).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants