Skip to content

[TF2] Fix Vaccinator resist icons persisting when a player changes (displayed) team #1452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bakugo
Copy link

@bakugo bakugo commented Jul 26, 2025

Whenever a player gains or loses Vaccinator resist conds, the client adds/removes a team-colored icon above their head corresponding to the resistance they have. However, if a player loses a resist cond and changes their displayed team on the same frame (such as when a disguised enemy spy being healed by a friendly Vaccinator medic undisguises, or when someone actually switches teams while being healed by the Vaccinator, manually or via round end team swap), the game only removes the icon corresponding to the team they just changed to, not the icon for the previous team, which is the one they actually have, so the icon stays above their head, and persists even through deaths (and gives away cloaked spies' positions).

Fixed by simply removing the icons for both teams whenever a player loses the relevant cond, instead of only the icon for their current displayed team.

Fixes ValveSoftware/Source-1-Games#2334, fixes ValveSoftware/Source-1-Games#3941

Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Jul 26, 2025
@bakugo bakugo changed the title Fix Vaccinator resist icons persisting when a player changes (displayed) team [TF2] Fix Vaccinator resist icons persisting when a player changes (displayed) team Jul 26, 2025
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.

[TF2] Vaccinator Resist icon can permanently stay on enemy Spies Vaccinator shield sprites are persisting after round end
1 participant