Skip to content

Comments

Warpaint id fix#1792

Closed
rabscootle wants to merge 2 commits intoValveSoftware:masterfrom
rabscootle:warpaint-id-fix
Closed

Warpaint id fix#1792
rabscootle wants to merge 2 commits intoValveSoftware:masterfrom
rabscootle:warpaint-id-fix

Conversation

@rabscootle
Copy link
Contributor

Partial fix for ValveSoftware/Source-1-Games#3520

This PR fixes item names not constructing properly when handling war-painted items in certain UI (Player Status HUD, Target ID):
image

When dealing with dropped weapons, the live TF client currently typically points to static data in the item schema for weapon details, including paint kit index IDs. However, War Paint weapons bypass requiring their own respective schema entries by having attributes applied to individual instances of generic paintkit weapon entries. This approach breaks some UI code where it is expecting the attributes to be on the item schema definition:
image

Game code has been updated to store a paintkit index within CGameItemDefinition_EconItemInterfaceWrapper, which can be referenced in situations where we cannot point to an actual item instance.

When paired with #1756, War Paint items should have full feature parity with existing Decorated Weapons and will display War Paint name + Rarity Color in affected UI:
image

@rabscootle rabscootle marked this pull request as draft February 6, 2026 06:36
@rabscootle rabscootle marked this pull request as ready for review February 6, 2026 06:36
@rabscootle
Copy link
Contributor Author

Resubmitting this because I messed up the PR name (edit perms seem to have been locked down recently)

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