rotating tram platform

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

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
I remember something from half life, where a lift platform is centered inside a power conduit housing chamber, and the player rides on theses around the center of the giant cylindrical room. Would it be possible to replicate that in tf2?
 

henke37

aa
Sep 23, 2011
2,075
515
Probably. There is a lot of entities for moving brush entities. Since I didn't play that particular part, care to explain in more detail what kind of movement you are thinking of?
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
I really don't remember the chapter, its either right before On a rail, during Blast pit, or during forget freeman. Basically: a nuclear power facility suspended in the air several meters, and the main deck has a rotating tram that moves from the right spot of the main platform, to the center (halting to allow the player to access the ladder), the proceeding to finish at the left, then repeats the cycle in a U shape. I want to do something similar for my power generator room on my map, whereing the player can smack a panel (press button) and go to the other side of the room, or access the up and down one to gain access to main control panel (objective)
 

MaccyF

Notoriously Unreliable
aa
Mar 27, 2015
914
1,544
If its the bit i vaguely remember, you can probably do it using func_door_rotatings with offest origins, along with func_movelinears and some clever parenting. Thats how i made this:

Animation2.gif


although i didn't offset the rotation
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
the imagine failed to come through, and I thought func_door_rotating didn't work (I have yet to get it working properly on loop)
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
the imagine failed to come through, and I thought func_door_rotating didn't work (I have yet to get it working properly on loop)
Func_door_rotating does work, func_rotating doesn't.

Although, you want to be careful with elevators in TF2 or any multiplayer Source game. Hit detection gets really wonky when a player stands on an elevator.
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
well, elevator is wrong word in context, think of it as the same motion, lowering
 

MoonFox

L10: Glamorous Member
Mar 17, 2015
739
74
another question to be asked: how would I make a regular tram system, back and forth, lets say 1000 units