Skip to content

Comments

[TF2] Fixes for War Paint support + additional item details in several UI#856

Closed
rabscootle wants to merge 10 commits intoValveSoftware:masterfrom
rabscootle:weapon_pickup_fixes
Closed

[TF2] Fixes for War Paint support + additional item details in several UI#856
rabscootle wants to merge 10 commits intoValveSoftware:masterfrom
rabscootle:weapon_pickup_fixes

Conversation

@rabscootle
Copy link
Contributor

@rabscootle rabscootle commented Feb 26, 2025

Fixes ValveSoftware/Source-1-Games#3520

When dealing with dropped weapons, the live TF client currently typically points to static data in the item schema for weapon details, particularly paintkit IDs and item rarities. However, War Paint items bypass requiring their own respective schema entries and instead have attributes applied to individual instances of base paintkit items. This change meant that while the same attributes were present on war paint items, they were not being picked up by the game for specific UI.
image (2)

Game code has been updated to extract details from currently held weapon rather than static schema entry for compatibility with War Paint weapons + additional item details.

Fixed rarity and weapon skin name not displaying on dropped weapons:
image
Additional check for Self-Made quality has been added to match other economy UI behavior.

Dropped weapon UI will also now display additional item details (ie. Australium, Strange Rank). It will also display custom names to their owners:
image

Fixed rarity and weapon skin name not displaying in playerstatus UI for dropped war paint items:
image

Fixed color border not updating to match rarity of war paint items in Loadout Selection UI:
image

@rabscootle rabscootle changed the title Weapon pickup fixes [TF2] Fix for War Paint support + additional item details in several UI Feb 26, 2025
@rabscootle rabscootle changed the title [TF2] Fix for War Paint support + additional item details in several UI [TF2] Fixes for War Paint support + additional item details in several UI Feb 26, 2025
@bobatealee
Copy link
Contributor

Love this!

Bitl added a commit to BitlDevelopmentStudios/source-sdk-2013-bds-base that referenced this pull request Mar 8, 2025
@rabscootle
Copy link
Contributor Author

rabscootle commented Feb 6, 2026

This PR is now outdated. You can find updated (better) solutions to this PR in the following entries:
#1756 - Fixes Rarity colors not displaying in affected UI
#1793 - Updated approach for grabbing paintkit index # on dropped war paint items

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] War-Painted weapons do not display grade/color in viewtarget/player status HUD elements.

2 participants