Skip to content

Fix vscript variant EHANDLE conversions#390

Merged
Kenzzer merged 1 commit into
alliedmodders:tf2from
Mikusch:tf2
Jun 4, 2026
Merged

Fix vscript variant EHANDLE conversions#390
Kenzzer merged 1 commit into
alliedmodders:tf2from
Mikusch:tf2

Conversation

@Mikusch

@Mikusch Mikusch commented Jun 4, 2026

Copy link
Copy Markdown

a0d9a0f synced the hl2sdk with the Source SDK 2013. Unfortunately, this reverted a SourceMod-specific hack that was introduced in another sync commit:

// HACK HACK FOR SOURCEMOD
CBaseHandle(int index);

This being reverted now causes compilation errors for any extension relying on it. One case I ran into is the vscript CVariantBase. However, instead of restoring the hack, I'd rather just fix the SDK bug.

I have submitted the same fix to the Source SDK 2013 repo: ValveSoftware/source-sdk-2013#1948

@psychonic psychonic requested a review from Kenzzer June 4, 2026 13:59

@Kenzzer Kenzzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well that explains the fix I had to perform alliedmodders/sourcemod@047dd0d

I could not understand where that came from. Just like you suggested, I'm against restoring the sourcemod hack. Better to follow what is official. Real funny however that official valve code is broken and our sourcemod hack muted this.

@Kenzzer Kenzzer merged commit f8ec7a5 into alliedmodders:tf2 Jun 4, 2026
1 of 2 checks passed
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