Advanced elevators: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (wip!)
(Still a work in progress?)
Line 1: Line 1:
{{wip}}
{{note|This is a seemingly abandoned work in progress. [[User:CrabbyData|CrabbyData]] told us he was working on three articles including this one, so if you want to see this article being made, speak with him about it.}}
{{wip}}
 
{{wip}}
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.
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
*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_multiple]]s)}}
: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_multiple]]s).}}
*Counterweight
*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]].
: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)
*Multi-part sliding doors (one part slides into the other, while the other slides into the wall)
:{{TODO|describe method}}
:{{TODO|Describe method.}}

Revision as of 10:43, 7 September 2006

Note.pngNote:This is a seemingly abandoned work in progress. CrabbyData told us he was working on three articles including this one, so if you want to see this article being made, speak with him about it.

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.