Convoy style walls

Discussion in 'Mapping Questions & Discussion' started by AWESOME-O, Mar 29, 2008.

  1. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    67
    I've noticed that in ctf_convoy the big cars doesn't move but the walls, how can you make such a thing?
     
  2. Spike

    Spike L10: Glamorous Member

    Messages:
    716
    Positive Ratings:
    82
    Walls doesn't move, only the texture moves.
     
  3. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,746
    The texture is static I believe it has a little bit extra in one of the text files that tells it to scroll.



    Spike - smaller signature please, looks good but long thin signatures work best.
     
  4. phatal

    phatal L6: Sharp Member

    Messages:
    259
    Positive Ratings:
    21
    If you want to see EXACTLY how he did it you can use this... VMEX This will decompile the level so that you can open it in Hammer. I wouldn't recompile the level because the decompile and recompile process can cause issues on occasions.
     
  5. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    VMEX wouldn't really help because the key is in a custom texture, not the entities. Using Pakrat you can look at the textures included and see that, as Youme said, there is a VMT file that takes one of the standard textures and tells it to scroll. It uses the TextureScroll material proxy.
     
  6. phatal

    phatal L6: Sharp Member

    Messages:
    259
    Positive Ratings:
    21
    Hmm... I thought when I looked at it he used a path track. Maybe that was just part of it.
     
  7. Half-Life_Maniac

    Half-Life_Maniac L3: Member

    Messages:
    122
    Positive Ratings:
    88
    Basically there are 2 ways of doing it. You can build actual scenery out of func_trains that will move along a path (they can teleport back to the start after reaching the end). Remember that displacements can't be tied to entities, so if you're looking to make cliffs or anything, you'll have to use models or make them the old fashioned way. Models can be parented to the moving func_trains (visable or not).

    The other way is to use a scrolling texture. This might be more suitable if you're dealing with flat walls, and would be best to use with the floor as well. Unfortunately, I don't know much about creating textures for Source, other than you'll have a normal VTF file, and then do some trickery with the VMT text file to tell it to scroll.
     
  8. Narkissus

    Narkissus L5: Dapper Member

    Messages:
    228
    Positive Ratings:
    9
    On my map im using scrolling textures(on the ground) as well as func_train, i believe thats the best looking, to combine the two.
     
  9. AWESOME-O

    AWESOME-O L10: Glamorous Member

    Messages:
    782
    Positive Ratings:
    67
    he uses the path_track for his giants rocks not for the train, its an custom skybox he uses when i look at it.

    I use this code:



    "LightmappedGeneric"
    {
    "$basetexture" "rockwall00001"
    "$translucent" "1"
    "$nocull" "1"
    "$decal" "1"
    "$envmap" "env_cubemap"
    "$envmaptint" "[.2 0 0]"
    "$envmapcontrast" ".5"

    "Proxies"
    {
    "TextureScroll"
    {
    "texturescrollvar" "$baseTextureTransform"
    "texturescrollrate" ".15"
    "texturescrollangle" "270.00"
    }
    }
    }

    But when i use it, it is white, in hammer it seems just normal but than in the 3d view it views white, what to do?
    i putted in in the map: D:\Games\Steam\SteamApps\<my username>\team fortress 2\tf\materials\Custom
    screenshot:
    [​IMG]
     
    Last edited: Mar 30, 2008