agrastiOs / Ultimate-TF2-Visual-Fix-Pack

A pack of visual fixes for TF2, to be sent to Valve.
178 stars 14 forks source link

Sniper rifle skins are incorrectly applied to scope #50

Closed Tkain closed 3 years ago

Tkain commented 3 years ago

When a skinned Sniper Rifle is used, the Sniper Rifle's texture is incorrectly applied to the scope of the rifle. See the images below for reference:

Without UTF2VFP installed:

Without pack (correct)

With UTF2VFP installed:

With pack (incorrect)

What I think is happening is that TF2 is replacing the sniper rifle scope's texture with that of the skinned sniper rifle's body because it only expects the rifle to use one texture, resulting in incorrect UV mappings. Interestingly, however, the scope seems to keep its shine, hinting that it might be keeping its material properties.

So, what I propose is to make the sniper rifle scope's material use the right part of the sniper rifle body's texture, just like it does in live TF2, alongside its custom material properties. That way, when the textures get replaced, the scope looks like it usually does.

agrastiOs commented 3 years ago

That's actually a great idea! Closing as duplicate, please add this post to #25.