Advanced elevators

From Valve Developer Community
Revision as of 10:53, 2 November 2005 by Maven (talk | contribs) (initial junk; I might come back to do more)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Once you've created an elevator (see Two-stop elevators or Multi-stop elevators), there are several extra features that you could add to make it more realistic.

  • Doors that re-open when blocked
Simply tying an Open output to an OnBlocked input will not work, because the OnBlocked doesn't detect both phyics objects and the player.
Todo: describe the solution (parented trigger_multiples)
  • Counterweight
Use a func_physbox for the counterweight, constrained to the wall with a vertical phys_slideconstraint and attached to the elevator with a phys_pulleyconstraint. Remember to add the cables. Since there's more than one constraint, also use a phys_constraintsystem.
  • Multi-part sliding doors (one part slides into the other, while the other slides into the wall)
Todo: describe method