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

  • If you're asking a question make sure to set the thread type to be a question!

ME2K

L1: Registered
Feb 22, 2008
2
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.
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
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.
 
Oct 25, 2007
219
690
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.
 

ME2K

L1: Registered
Feb 22, 2008
2
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.
 

Stueh!

L1: Registered
Mar 2, 2008
15
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
 

HojoTheGreat

L5: Dapper Member
Nov 11, 2008
206
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.
 

FaTony

Banned
Mar 25, 2008
901
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.
 

ExcessiveEvil

L1: Registered
Dec 5, 2008
4
0
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.

Still waiting :(
 

HojoTheGreat

L5: Dapper Member
Nov 11, 2008
206
34
Still waiting :(

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.
 

HojoTheGreat

L5: Dapper Member
Nov 11, 2008
206
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.