Hi,
I had the idea to put a (fast) moving train in my map, since I am building a small railway station with a few (thus far) empty rails. One of the rails starts and ends in the mountains nearby and is just straight and looks kind of boring. I was hoping I would be able to make a train rage over the rails at a random interval.
I have two reasons for this:
- If it works how I want it to it will look awesome
- The attacking team can camp behind other trains (non-moving) on the station, but this means that they will sit on the train tracks. It would be cool if a train moves across those tracks once every while so they canât stay there indefinitely (place an MG there for example).
Of course, I donât want just a silent train suddenly CRASH into 6 players at a time, I want a nice loud warning: sound and more importantly lights. Since the train comes out of a tunnel I want the sound in three stages:
- Train inside tunnel: very load and echo-ing
- Train infront of player(s)
- Train behind players, shift in frequency due to doppler effect.
From 1 to 2 wonât be a problem as itâs just timing of the sound effect, but 2 to 3 is (pretty sure) impossible to do this for each player individually, so I guess I have to find kind of a center point where the sound suddenly shifts frequency. I know it wonât look perfect for everyone but if I get it right it might be convincingâŠ
Also, when the train is inside the tunnel the lights should suddenly light up the whole tunnel (it is completely dark right now) which should be a very strong visual clue to get the hell off the tracks 
If the train is going to look a little realistic the sound and the lights should obviously move with the train, so this limits me to dlights (correct?) which are supposed to be a real FPS hit? Is this really bad? Would 2 dlights as the train headlights moving across half the map very fast cause an FPS drop suddenly?
Furthermore, is it even possible to link dlights to a moving source? I know about the sound because that is used in nearly all vehicles in ET so that wonât be a problem, but I canât remember ever seeing dlights movingâŠ
Just need your opinions and if itâs possible 
Thanks
EDIT
Something like this, but with more light effects (my map is night time) and a much shorter âsound warningâ before the train pops out (and possibly much faster
)
