Pyroland visibility

Zeigh

L2: Junior Member
Jul 13, 2012
60
18
Greetings everyone.
I've recently started diving into TF2 mapmaking, getting used to, and learning Hammer and such, and been thinking about the recently added Pyroland effect. I know all it does is replace some textures, but would it be possible to make something only visible in pyroland? Things like decals on a wall, or light sources in some dark room. Is it possible?
 

Geit

💜 I probably broke it 💜
aa
May 28, 2009
598
1,161
From my understanding, the Pyro Vision system looks for a file called replacements.vmt in each of the game's material directories and applies a bunch of overrides to the default VMT file for the texture when pyrovision is active.

These overide include things like "washing out" the texture and applying stripes, it also appears that it is able to completely change the basetexture for a given material, so on the notion of having stuff appear only in Pyroland, you could have a VMT file specify a transparent texture as the default, and override it to a different texture in the replacements.vmt file.

The replacements.vmt for that might look like:
Code:
        my_custom_material
        {
            "LightmappedGeneric"
            {
                pyro_vision
                {
                    $basetexture            'geit/my_custom_material'
                }
            }
        }
and the my_custom_material.vmt might look like
Code:
LightmappedGeneric
{
    "$basetexture"    "transparent"
}
Obviously, there's a bit more to it than that, and I don't think Pyroland works at all on custom maps at the moment, but should it ever start working, that would be the general gist to it. - As for lightsources, I think that is probably impossible without some wizardry with making your own prebaked lightmaps.
 
Last edited:

Zeigh

L2: Junior Member
Jul 13, 2012
60
18
I see. Thanks. Does the texture replace apply to decals as well?
 

Geit

💜 I probably broke it 💜
aa
May 28, 2009
598
1,161
I see. Thanks. Does the texture replace apply to decals as well?

Should apply to anything that uses a VMT file (everything)

EDIT: Damn Ninjas
 
Last edited: