Skip to content

[TF2] Fix being unable to change into an already desired class#1930

Open
Adrad1234 wants to merge 1 commit into
ValveSoftware:masterfrom
Adrad1234:class-switch
Open

[TF2] Fix being unable to change into an already desired class#1930
Adrad1234 wants to merge 1 commit into
ValveSoftware:masterfrom
Adrad1234:class-switch

Conversation

@Adrad1234
Copy link
Copy Markdown

@Adrad1234 Adrad1234 commented May 24, 2026

With hud_classautokill "0", you can choose to pick a class outside of a respawn room without being killed, which you will be changed into, the next time you respawn.
If you return to a respawn room however, you will be unable to pick that class, until you swap to another first.

This PR removes block that checks if picked class is the same as already desired class (aka a class that's queued). Code that follows after, already checks if picked class is the same as current class, and prevents respawn. Therefore this code only messes in situation described at the beginning.

Before:

before.webm

After:

after.webm

@Adrad1234 Adrad1234 closed this May 24, 2026
@Adrad1234 Adrad1234 deleted the class-switch branch May 24, 2026 11:56
@Adrad1234 Adrad1234 restored the class-switch branch May 24, 2026 11:56
@Adrad1234 Adrad1234 reopened this May 24, 2026
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.

1 participant