Team Fortress 2

Team Fortress 2

[FIX] [V2] Bazaar Bargain Lens on Albedo-Tinted War Paints [OBSOLETE]
Award
Favorite
Favorited
Unfavorite
Class: Sniper
Item Slot: Weapon
File Size
Posted
Updated
15.150 MB
13 Apr, 2024 @ 9:11pm
24 Jul @ 10:03pm
2 Change Notes ( view )

Would you like to see this item officially accepted and supported in Team Fortress 2?

Yes
No thanks /
Not interested
Ask me
again later
Description
EDIT: This fix is now obsolete, as Valve has since implemented an alternative "fix".

Of the twenty-three war paints in the game that have albedo tinting (not including Dragon Slayer), twenty-one of them have albedo tinting disabled on only the Bazaar Bargain. The reason for this is clearly visible when looking at a Bazaar Bargain in either of the two war paints on which albedo tinting isn't disabled for it -- Saccharine Striped and Elfin Enamel. On both, the Bazaar Bargain's lens texture is replaced with an unwrapped UVmesh of the weapon's skin (That is to say, it's broken).

This is due to the fact that albedo tinting uses the "material_override" tag in the proto_defs warpaint code, which does not play nice with weapons that use multiple materials, like the Bazaar Bargain (which uses a separate mat for the lens).

This submission fixes this issue for the Bazaar Bargain, now using the normal refractive lens for albedo-tinted war paints, the same as it does for all other skins.

EDIT: As of Scream Fortress XVI, the count has gone from 2 out of of 23 albedo-tinted paints to 5 out of 28. Gobi Glazed, Team Detail, and Team Charged all have this same issue, because they all used the Elfin/Saccharine base. The fix submitted here should fix these as well without any changes. I might at some point update this to include screenshots demonstrating this, as well as updating the secondary-optional fix for the two other albedo tinted paints (Stealth Specialist and Blackout).

EDIT: As of May 2025, Valve "fixed" this for Elfin Enamel. They fixed it by disabling Albedo Tinting on the Bazaar Bargain for Elfin Enamel. This fix made no attempt to make the material_override tag work nicely with multiple textures, nor a work-around method like was done here. They just disabled Albedo Tinting. The bug remains with the other four war paints that have the issue, because Valve only fixed Elfin Enamel this way.

EDIT: As of July 2025, Valve "fixed" this for the remaining four war paints that still had the issue, via the same method as the Elfin Enamel -- they removed Albedo Tinting. This Community Fix is now obsolete as the issue no longer remains on any war paint, however anyone who might want an Albedo Tinted Bazaar Bargain is thus robbed of the opportunity by this band-aid "fix".

-------------------------------------------------

This is a V2 of a previous submission of mine, https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3155556003 -- this new submission is an improvement both in its implementation (using a completely different method to achieve the fix, a cleaner implementation similar to how the Rescue Ranger screen works), and in its visible result (now using the refractive lens for ALL skins and not having the opaque lens on Albedo-Tinted skins).

-------------------------------------------------

Included as an optional, additional fix are several pieces of proto_defs code that would re-enable albedo tinting on the Bazaar Bargain for the other twenty-one war paints that have albedo tinting for the other weapons. Both uncompiled .json and compiled .vpd files are included for each, as well as a full proto_defs file in both uncompiled .json and compiled .vpd formats. The base fix makes these changes possible to make those skins more consistent, however those changes are separate and optional; the base fix for the Elfin Enamel and Saccharine Striped can be added without them.