Skip to content

[TF2] Fix MvM upgrade panel persisting across map changes - #2083

Open
SanyaKor wants to merge 1 commit into
ValveSoftware:masterfrom
SanyaKor:mvm-upgrade-inspect-ui-fix
Open

SanyaKor wants to merge 1 commit into
ValveSoftware:masterfrom
SanyaKor:mvm-upgrade-inspect-ui-fix

Conversation

@SanyaKor

Copy link
Copy Markdown

Fix MvM upgrade panel persisting after a server change

In MvM, the upgrade panel can be opened by pressing the inspect key (F by default) to view upgrades or by touching an upgrade station zone to buy them. If the player changes servers without closing the panel, it can remain visible with state from the previous server.

Note

This does not transfer purchased upgrades between servers. Only the upgrade panel remains visible; the upgrades themselves are still server-side.

Video

YouTube demonstration

Cause and fix

This happened because CHudUpgradePanel did not override LevelShutdown(). It therefore used the default CHudElement handler, which returns without cleaning up any panel state:

virtual void LevelShutdown( void ) { ... };

This change overrides the method to clear and hide the panel during level shutdown. It calls CHudElement::SetActive(false) directly to avoid sending MvM_UpgradesDone while leaving the server.

@SanyaKor SanyaKor changed the title [TF2] Fix MvM upgrade panel persisting across level changes [TF2] Fix MvM upgrade panel persisting across map changes Sep 14, 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