Ep2 Multiple floor elevator Created 15 years ago2009-09-04 20:08:09 UTC by Gone_Latin Gone_Latin

Created 15 years ago2009-09-04 20:08:09 UTC by Gone_Latin Gone_Latin

Posted 15 years ago2009-09-04 20:08:09 UTC Post #272943
Hey all

Had a look around for tutorials, example maps and other threads, but couldn't find anything exactly on this.

I'm trying to make an elevator which stops at multiple floors based on which button was pressed (like a real elevator). Fairly confident I could have done this in the old engine with a func_train, and change the next_stop_targets of all the paths. But valve decided to get rid of the func_train it seems.

Any ideas on how to do this with the new engine?

Thanks
Posted 15 years ago2009-09-04 22:33:34 UTC Post #272944
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2009-09-06 20:36:08 UTC Post #273004
Hmm that's sort of the thing I'm looking for.

I'm trying to build a lift like the one in the advanced version of that map, but which can go to any floor in any order. It's not a difficult idea to programme, but I can't think of any source maps with something like that.

Just about to post my WIP of this question to the map vault too. Its annoyingly over the 2MB limit of TWHL.
Posted 15 years ago2009-09-19 17:30:11 UTC Post #273504
Map has been added to the vault, I took the elevators out of the proper map just to get them working in a quick to compile map.

http://www.twhl.co.za/vault.php?map=5345

I've basically given up with the multiple floor idea, but now I'm getting a rendering issue.

Post any ideas as comments to the map vault.

Thanks
Posted 15 years ago2009-09-19 17:39:50 UTC Post #273505
Something like this?
http://sdknuts.net/tutorials/wiseElevators.
asp
Of all the over 10 mapping sites I've found(good stuff), how come I didn't saw this ?! Thanks man !
Striker StrikerI forgot to check the oil pressure
Posted 15 years ago2009-09-19 22:00:24 UTC Post #273520
That site in particular has changed URLs many times over the years. Every time I go to look at it, I have to find the new URL all over again. Which is probably why not many people know of it.
Penguinboy PenguinboyHaha, I died again!
Posted 15 years ago2009-09-19 23:13:36 UTC Post #273521
Pretty simple really. I have done a ton of elevators. If you are in hl2 then it's a snap. Just use a brush-based func_movelinear and set the distance. Instead of using the open/close commands use the setposition from your trigger. Set the override with the "floor number". Position 0 is your start and then 1,2,3,etc. All it's doing is taking the distance times your number input and setting the movelinear at that distance. You can manipulate this many many ways with the logic_relays and triggers. Just remember the math.

So.... Brush-based func_movelinear
Set distance and speed
Distance=Height between floors
Parameter Override=Floor Number or Multiplier
This is a great elevator set-up but doesn't allow you to use the on-fully open or on-fully closed commands which are useful for things like opening the doors when it stops. I use a trigger with the func_movelinear on each floor to open the doors. Others might have other opinions or a better solution for you on this. Elevators are fun!
Posted 15 years ago2009-09-20 06:45:01 UTC Post #273528
You Genius kdunivan!

Thank you so much!! That solution is much simpler than my designs heh.
Posted 15 years ago2009-12-11 03:36:46 UTC Post #276544
a bit late i guess, but a question penguin, it seems SDKnuts has shut down or something? i went to the last known web address to me and it was a godaddy place holder. any hint as to what the new link is? or is it gone?
brendanmint brendanmintBrendan
Posted 15 years ago2009-12-11 08:45:40 UTC Post #276546
It may have finally dissapeared, but maybe they moved. Try googling for it.
Notewell NotewellGIASFELFEBREHBER
You must be logged in to post a response.