Pyroland visibility

Discussion in 'Mapping Questions & Discussion' started by Zeigh, Jul 16, 2012.

  1. Zeigh

    Zeigh L2: Junior Member

    Messages:
    60
    Positive Ratings:
    13
    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?
     
  2. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,114
    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.
     
    • Thanks Thanks x 1
    Last edited: Jul 16, 2012
  3. Zeigh

    Zeigh L2: Junior Member

    Messages:
    60
    Positive Ratings:
    13
    I see. Thanks. Does the texture replace apply to decals as well?
     
  4. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,035
    Positive Ratings:
    3,990
  5. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,114
    Should apply to anything that uses a VMT file (everything)

    EDIT: Damn Ninjas
     
    Last edited: Jul 16, 2012