[TF2] Fixed war paint items not displaying rarity color in various UI #1756
+12
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partial fix for ValveSoftware/Source-1-Games#3520
This PR is a more focused version of #856 and only contains fixes related to rarity colors not displaying
This PR fixes rarities not applying properly in various UI when handling war-painted items.
When dealing with dropped weapons, the live TF client currently typically points to static data in the item schema for weapon details, including item rarities. However, War Paint items bypass requiring their own respective schema entries by having attributes applied to individual instances of base paintkit items. This change meant that while the same attributes are present on war paint items, certain game code was not updated to support this:

Game code has been updated to extract details from dropped weapons rather than static schema entry to display rarity for War Paints in the following UI:



Weapon Pickup (Target HUD)
Loadout - Item Selection Screen
Player Status HUD (when using dropped weapon)