Skip to content

Conversation

@rabscootle
Copy link
Contributor

@rabscootle rabscootle commented Feb 2, 2026

Resolves ValveSoftware/Source-1-Games#4608

This PR aims to add additional functionality to the Player Status HUD via a new convar (cl_hud_playerclass_display_weapon_info, default = 0).

When enabled (value = 1), the Player Status HUD will display the item name underneath the player portrait (similar to when picking up a dropped weapon). This function differs from the one used for dropped weapons and supports more detailed names:
Photoshop_WmR6mI0fyH

'Dropped by' portion of UI has been retooled for player's own weapons to display primary Strange count (when one is available). Code dynamically pulls localized string token to support other languages:
Discord_6voY9TZzEI

PR has been tested in community modes with custom weapons (Zombie Infection, VSH):
Photoshop_o3UKMDybHY

Feature has been disabled in Mann vs Machine due to conflicts with existing UI (image below is image of weapon info UI if kept visible in MvM)
Discord_1Yj9t4aJ5e

Known issue is that weapon info panel is known to conflict with the Killstreak meter if an item has a long enough name:
Discord_QzAe5xORQh

A similar issue can currently be experienced when inspecting dropped weapons.

If constructed item name is too long for your liking, replace pItem->GetItemName() with CEconItemLocalizedFullNameGenerator(GLocalizationProvider(), pItem->GetItemDefinition(), pItem->GetItemQuality()).GetFullName()

image

@rabscootle rabscootle changed the title [TF2] Feature: Added option to display item name/strange count in Player Status HUD [TF2] Added option to display owned weapons' name/strange count in Player Status HUD Feb 2, 2026
@GrubPL
Copy link

GrubPL commented Feb 3, 2026

kinda sad that valve only seems to merge bugfix PR's (and even with that they only merge a few PR's)
it would be quite cool to see it in the actual game

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] Feature Request - Add "Stat Clock" counter in player HUD

2 participants