Team Fortress 2

Team Fortress 2

[FIX] Bazaar Bargain Scope on Albedo-Tinted War Paints [OUTDATED]
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
16.938 MB
6 Feb, 2024 @ 3:10pm
28 Jun, 2024 @ 7:06pm
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
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 scope 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 scope).

This submission fixes this issue for the Bazaar Bargain. The scope texture is replaced on albedo-tinted skins with an opaque texture from the stock rifle's scope. The normal refractive transparent scope is UNCHANGED on all non-albedo-tinted Bazaar Bargains (including the unadorned, unskinned version).

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

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.

I've also included files to add compatibility with a separate submission of mine, https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3145962004 -- which adds albedo tinting for four war paints from the Summer 2023 update whose authors requested albedo tinting, but didn't get it.

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

I've released a V2 of this, at https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3221863663
The V2 is much better, being both a cleaner implementation and a nicer result.
This version is being de-listed.