Panels: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with 'thumb|right|300px|Panels in Portal 2 Panels are a game mechanic from Portal 2. They can "edit" a Room. Bigger or Smaller, or they can create Stairs o…')
 
No edit summary
Line 1: Line 1:
[[File:Portal2_panels.jpg|thumb|right|300px|Panels in Portal 2]]
[[File:Portal2_panels.jpg|thumb|right|300px|Panels in Portal 2]]


Panels are a game mechanic from Portal 2. They can "edit" a Room. Bigger or Smaller, or they can create Stairs or Platforms. The Mapper can use them to change the Rooms like he want.
The Panels are a kind of game mechanic from Portal 2. They can change a room's architecture. Bigger or smaller, they can create stairs or platforms. A mapper can use them to change a room like he want.


== Creating Pannels ==
== Creating Panels ==


What we need:
What we need:
Line 14: Line 14:




1. Create the prop_dynamic and set the Model "''models/anim_wp/room_transform/arm64x64_interior.mdl''" and set the Name from the prop_dynamic to e.g. "panel1". And set the "Collision" to "Not Solid".
1. Create the prop_dynamic and set the Model "''models/anim_wp/room_transform/arm64x64_interior.mdl''" and set the Name of the prop_dynamic to e.g. "panel1". And set the "Collision" to "Not Solid".




2. Create a func_brush on the "top side" from the Model. Set the Name to e.g. "panel1_brush". And set the Parent to "panel1".
2. Create a func_brush on the "top side" of the Model. Set the Name to e.g. "panel1_brush". And set the Parent to "panel1".




Line 24: Line 24:
OnMapSpawn  panel1_brush  SetParentAttachmentMaintainOffset  panel_attach
OnMapSpawn  panel1_brush  SetParentAttachmentMaintainOffset  panel_attach


Now can the func_brush follow the Animation from the prop_dynamic.
Now the func_brush can follow the animation of the prop_dynamic.




4. Create a logic_relay, or some type of Trigger, set the name e.g. "relay_panel1_animation".
4. Create a logic_relay, or some type of Trigger, set the name to e.g. "relay_panel1_animation".


And fire follow Output to the prop_dynamic:
And fire follow Output to the prop_dynamic:

Revision as of 04:37, 28 April 2011

Panels in Portal 2

The Panels are a kind of game mechanic from Portal 2. They can change a room's architecture. Bigger or smaller, they can create stairs or platforms. A mapper can use them to change a room like he want.

Creating Panels

What we need:


1. Create the prop_dynamic and set the Model "models/anim_wp/room_transform/arm64x64_interior.mdl" and set the Name of the prop_dynamic to e.g. "panel1". And set the "Collision" to "Not Solid".


2. Create a func_brush on the "top side" of the Model. Set the Name to e.g. "panel1_brush". And set the Parent to "panel1".


3. Create a Logic_auto and fire follow Output to the panel1_brush:

OnMapSpawn panel1_brush SetParentAttachmentMaintainOffset panel_attach

Now the func_brush can follow the animation of the prop_dynamic.


4. Create a logic_relay, or some type of Trigger, set the name to e.g. "relay_panel1_animation".

And fire follow Output to the prop_dynamic:

OnTrigger pannel1 SetAnimation ANIMATION_NAME

See Also