How to make it appear as if the ground is moving?

Discussion in 'Mapping Questions & Discussion' started by Eureka, Aug 8, 2013.

  1. Eureka

    Eureka L1: Registered

    Messages:
    17
    Positive Ratings:
    0
    I want to make my map be a boat or a train that moves along the ground. It doesn't actually need to move, but I'd like to give the appearance that it does.

    A good example is CTF_Convoy which you can see in action HERE

    Any ideas?
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    Convoy uses a scrolling ground texture and the rock props are attached to trains that teleport back to the beginning.
     
  3. Fantasma

    aa Fantasma

    Messages:
    886
    Positive Ratings:
    980
    Yeah, convoy makes the skybox camera move through an environment, so the background is moving (not the player) which gives the illusion of the player moving.
    Decompile ctf_convoy or use no clip and look at the 3d skybox to learn it .
     
  4. The Asylum

    aa The Asylum

    Messages:
    1,658
    Positive Ratings:
    439
    take any vtf and paste this into its vmt:

    "LightmappedGeneric"
    {
    "$basetexture" "yourfolder/yourtexture"
    "$surfaceprop" "rock or whatever"
    "Proxies"
    {
    "TextureScroll"
    {
    "texturescrollvar" "$baseTextureTransform"
    "texturescrollrate" 0.6
    "texturescrollangle" 90
    }
    }
    }

    texturescrollrate controls the speed of the scroll (obviously) and texturescrollangle controls the direction of the scroll. You should just have it at 0 or 90