Difference between revisions of "Test Door (Portal 2)"

From Valve Developer Community
Jump to: navigation, search
Line 17: Line 17:
  
 
'''*Bug:''' The animated door cannot be set to '''idleclose''', it will automatically default back to '''idleopen'''.
 
'''*Bug:''' The animated door cannot be set to '''idleclose''', it will automatically default back to '''idleopen'''.
'''*Fix:''' Place a [[logic_auto]] , in the outputs tab, make an output with these settings:
+
'''*Fix:''' Place a [[logic_auto]] , in the outputs tab, make an output with these settings:
  
 
  My output named: '''OnMapSpawn'''
 
  My output named: '''OnMapSpawn'''

Revision as of 03:30, 5 January 2012

A Test Door corresponds to the double round doors found in the regular testing course. One of the sides displays Portal 2's Exit symbol.

Test Door

In the official levels following the introduction chapter, that type of door is used specifically in test chambers to show the beginning and the end of the test chamber, in order to separate unrelated puzzles (as opposed to Portal where that type of door can be found in the middle of the course as an integral puzzle element).

prop_testchamber_door is the main entity that creates the door visuals, collisions and sounds. Its corresponding instance makes use of areaportals, tweaks and further exploit prevention mechanisms.

A simpler method* is to create a prop_dynamic entity, select it and press alt+enter to view its properties. Change the world model to portal_door_combined.mdl , this has all the door animations in it, you can use triggers to trigger these animations. The door will NOT automatically make sound, so you are going to have to trigger these sounds using an ambient_generic entity.

The sound names are:

prop_portal_door.open prop_portal_door.close

*Bug: The animated door cannot be set to idleclose, it will automatically default back to idleopen.

*Fix: Place a logic_auto , in the outputs tab, make an output with these settings:
My output named: OnMapSpawn
Target entities named: <Name you gave your door> 
Via this Input: SetAnimation
With a parameter override of: Idleclose