Why does my elevator get stuck?

Open Blade

L420: High Member
Nov 30, 2007
439
34
I added an elevator to my map. It's a simple one using func_door and a trigger multiple. Everything worked fine when I was testing map, it moved up and down just perfect, over and over again.

I put it on the server and it worked at first but then sometimes it would get stuck at the top and not come back down. Then we noticed sometimes when you got on and started riding up you would get stuck and could not move.


How do I fix this, what did I do wrong?

There are no multiple stops. Just a single stop at the top and back down.
 

theydidntnameme

L1: Registered
Jan 2, 2009
40
8
im pretty sure its due to the server side player prediction. elevators dont work well in multiplayer source games (though that wont stop me from trying it in my map :)).


however i decompiled one of the left 4 dead maps and they have a new entity (func_elevator) which seems to work pretty well online. heres hoping it makes it way over to tf2 ;)
 

Ezekel

L11: Posh Member
Dec 16, 2008
818
245
my advice is using a tracktrain + setting the hl1 train flag (which makes it treat anyone riding the train as if the train was standing still relative to them)
 

theydidntnameme

L1: Registered
Jan 2, 2009
40
8
my advice is using a tracktrain + setting the hl1 train flag (which makes it treat anyone riding the train as if the train was standing still relative to them)

actually the hl1 train flag makes the train user controllable. by pushing the use key, a small set of buttons pop up which let you control the trains speed forward or in reverse. im not sure if you want that degree of control for your elevator. (someone could just control the elevator and stop it inbetween 2 floors so nobody could ever get inside it again.

heres an example of a hl1 train. he gets on it at about 20 seconds

[ame="http://www.youtube.com/watch?v=0t5P1U4PqQY"]YouTube - Half-Life PC Walkthrough - On A Rail Pt.1/4[/ame]