Skip to content

Add TFCond & TFCollision as consts#2386

Open
Kenzzer wants to merge 2 commits intomasterfrom
k/tf_consts
Open

Add TFCond & TFCollision as consts#2386
Kenzzer wants to merge 2 commits intomasterfrom
k/tf_consts

Conversation

@Kenzzer
Copy link
Member

@Kenzzer Kenzzer commented Jan 13, 2026

Partially completes #1618
Takes over #497

As discussed in #497 this PR adds the entire ETFCond enum as const variables in tf2.inc + TFCollision enum.
PR also deprecates gamedata usage for TFHoliday values and instead grab the ones from hl2sdk.

@Kenzzer
Copy link
Member Author

Kenzzer commented Jan 26, 2026

@psychonic I assume you're holding off on a review because of your concerns around switch statement right ? Should this be a feature request over sourcepawn repo ? allowing usage of const variables in switch statements ? I genuinely realise this is far easier said than done, SP has quite the amount of quirks surrounding its variables.

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