Why does my elevator get stuck?

Discussion in 'Mapping Questions & Discussion' started by Open Blade, Jan 9, 2009.

  1. Open Blade

    Open Blade L7: Fancy Member

    Messages:
    439
    Positive Ratings:
    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.
     
  2. theydidntnameme

    theydidntnameme L1: Registered

    Messages:
    40
    Positive Ratings:
    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 ;)
     
  3. Ezekel

    Ezekel L11: Posh Member

    Messages:
    818
    Positive Ratings:
    244
    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)
     
  4. Acegikmo

    aa Acegikmo

    Messages:
    555
    Positive Ratings:
    490
    And you used OnStartTouchAll and OnEndTouchAll ?
     
  5. theydidntnameme

    theydidntnameme L1: Registered

    Messages:
    40
    Positive Ratings:
    8
    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]