Skip to content

[TF2] Add ConVar for Tournament HUD to ensure client visiblity #1358

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

irql-notlessorequal
Copy link

This adds a new ConVar (cl_hud_tournament_always_centered) that creates an additional pass to CHudTournament::RecalculatePlayerPanels that when enabled and past 9 defenders, will swap out our client with a player in the middle of the panel list, ensuring that we are once again visible.

Useful for community MvM gamemodes utilizing above normal defender counts.

Before:
Screenshot_2025-06-16_01-27-35

After and enabled:
Screenshot_2025-06-16_01-27-08

This new ConVar adds an additional pass to `CHudTournament::RecalculatePlayerPanels` that
when enabled and past 9 defenders, will swap out our client with a player in the middle of the panel list, ensuring
that we are once again visible.

Useful for community MvM gamemodes utilizing above normal defender counts.
@FlaminSarge
Copy link
Contributor

It may be worth allowing this UI to overflow onto a 2nd line or use wider bounds instead, even if that would need hud file updates as well.

@irql-notlessorequal
Copy link
Author

irql-notlessorequal commented Jun 23, 2025

It may be worth allowing this UI to overflow onto a 2nd line or use wider bounds instead, even if that would need hud file updates as well.

In my opinion having it overflow into a 2nd line could work however it'd cause visual clutter, and would get worse with more defenders a community gamemode would have.

On the otherhand, using wider bounds doesn't help much for 4:3 and 5:4 users and isn't enough to for example have all 24 players be visible (maybe at 4K or higher resolutions it would?) considering the HUD does scale, see below screenshot as a proof of concept.

Screenshot_2025-06-23_12-46-08

Maybe having a new variant of the tournament HUD that would show a percentage of the ready state of players would be a much better idea but that would be additional work.

Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Jun 25, 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.

2 participants