How do you go about setting up trains such as those in CP_Well?

Discussion in 'Mapping Questions & Discussion' started by ME2K, Feb 22, 2008.

  1. ME2K

    ME2K L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    How do i go about adding trains to my map with a timer so they go every 10-20 seconds?

    I have been looking all over the internet and cant find a tutorial on how to go about this, i know it involves using the track_path entity, but how?

    Myles

    P.S. Hammer is working again as of now! since the source content servers are up and running.
     
  2. DrHaphazard

    DrHaphazard L5: Dapper Member

    Messages:
    249
    Positive Ratings:
    12
    I thought i recalled seeing a tutorial on this subject but I am unable to locate it.

    My first step would be to open up the decompiled cp_well map and take a look at whats in there. Probably wouldn't tell you the whole story, but might get you started.
     
  3. spaceweasels

    aa spaceweasels

    Messages:
    219
    Positive Ratings:
    335
    You need three things for the trains.

    1. path_track. These give the path which the train follows.
    2. func_tracktrain. This is the entity that follows the paths. I would give it a NODRAW or INVISIBLE texture. Give it a name, like train.
    3. prop_dynamicoverrride. Associate this prop with one of the engine models. Set the parent to the func_tracktrain. Now the model will move as the (invisible) train entity will move
    4. trigger_hurt brush covering the model, and set the parent to the train entity.
    5. The tigger. You can have a logic_timer or a trigger_multiple entity to make the train start moving.

    If the train is going to go in a straight line, you could opt not to use the path_track and substitute the func_tracktrain with a func_movelinear.
     
  4. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    with movelinear you would have to kill it every time it went past and respawn it
     
  5. spaceweasels

    aa spaceweasels

    Messages:
    219
    Positive Ratings:
    335
    Or you could just have the train back-up.
     
  6. ME2K

    ME2K L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    ok so I have have created the path and the train, with the hurt trigger a timer and a prop.

    How do I link the logic_timer to the train (train that follows the line) and have the train terminate at the other end and stat from where it began again?

    I am trying to create a similar scenario as the one in well with the trains but with out the gates, i have a decompiled map but cannot seem to find the entity that sets it off.
     
  7. R!ghteous

    R!ghteous L1: Registered

    Messages:
    12
    Positive Ratings:
    0
    I have the same question... hope someone gets back to you soon... :-/
     
  8. Stueh!

    Stueh! L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    this will probably sound stupid but can you make a level where the 2 different teams are on a red and blue train and have internal carridges and stuff? cos that would be AWESOME
     
  9. ExcessiveEvil

    ExcessiveEvil L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Hey Guys, I was looking up how to do this, and found this on fps banana

    http://www.fpsbanana.com/tuts/5656

    Still not sure how to make the actual train models to move, but i'll figure it out :p
     
  10. HojoTheGreat

    HojoTheGreat L5: Dapper Member

    Messages:
    206
    Positive Ratings:
    34
    Alright, I can't go into it now as I'm in the middle of work, but I had to teach myself how to do this from scratch to build my map, using cp_well as an example. I've been meaning to write a tutorial for train construction, so tonight I'll put one together, seeing as there are a lot of twists and input/outputs that can get confusing.

    Don't bother with that FPSB tutorial, I looked at it too and it's crap. Not at all what you want. Check back tonight and I'll hopefully have a response tutorial.
     
  11. FaTony

    FaTony Banned

    Messages:
    902
    Positive Ratings:
    160
    Well trains are very complicated. They go from skybox and into skybox in random direction and random time, and there are lot of dynamic sprites there.

    Holy shit, 9 mo bump.
     
  12. ExcessiveEvil

    ExcessiveEvil L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Still waiting :(
     
  13. TheDarkerSideofYourShadow

    TheDarkerSideofYourShadow L10: Glamorous Member

    Messages:
    792
    Positive Ratings:
    144
    Eh, I can do this tomorrow. I implemented a train setup in one of my maps.
     
  14. HojoTheGreat

    HojoTheGreat L5: Dapper Member

    Messages:
    206
    Positive Ratings:
    34
    Gosh I'm sorry man :(, I've been extremely tied up with exams (I'm done on Monday) and my computer has gone to shit in the last week, so that was my main focus for the last couple of days. I started putting together a demo map that's almost done but studying has to be my main focus until I've written my last exam. Terribly sorry though, I should have warned you earlier! Sit tight though, I definitely will have something for you next week.
     
  15. HojoTheGreat

    HojoTheGreat L5: Dapper Member

    Messages:
    206
    Positive Ratings:
    34
    Sigh, I'm sorry dude, I've been having non-stop troubles with my computer as of late, and have continuously lost my work on the demo VMF I was putting together. So unfortunately I don't know if I'll have anything for you for a while :(. Maybe DarkerSide can do something for you like he mentioned, but until I fix some issues with my computer I'm not going to be able to put out a tutorial. Good luck though, and maybe if things start looking up I can finish what I started.