Skip to content

[TF2] War-Painted weapons do not display grade/color in viewtarget/player status HUD elements. #3520

@ajsig98

Description

@ajsig98

TF2 client seems to be scrubbing the item schema for properties not explicitly found on War Paint weapons, specifically 'paintkit_proto_def_index' value and a listed rarity (presumably through case lootlists). The former handles attaching the design name (i.e. 'Smissmas Sweater') to the string while the latter seems to handle the rarity coloring being applied. For clarification, the paintkit index # is included on War Paint weapons as a hidden item attribute (same as a Decorated Weapon), but is not on an explicit item schema entry.

Bug is caused by War Paint weapons sharing a common item schema entry instead of having a proper listing like older skins do.

image
image

Updating the UI to search for a paintkit index # from the actual weapon on the floor (hidden item attribute) would fix the name not showing. The game would need another way to search item rarities to fix the color not being applied to on War Paint weapons.
image

The correct behavior only occurs on the War Paint tools (what's actually unboxed from the case) as they have explicit item schema entries + rarity.
image

Issue also affects the player status HUD when carrying a weapon dropped by another user:
image

In addition, War Painted weapons do not display their rarity on their item borders. Instead, they currently display the color of their respective quality.
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions