Door creation

From Valve Developer Community
Jump to navigation Jump to search

Creating a brush-based door.

Basics

To create a brush-based door, create a gap in the wall as a doorspace. To make the gap, split the wall in half and place a small brush over the top of the doorspace. Make sure that there is floor underneath the doorspace, otherwise there will be a leak.

Door creation 1.png

Creating a brush for the door

To start making the door, fill the doorspace with a brush. The brush should be a different texture from the wall (wood wall textures are good).

Door creation 2.png

Turning the brush into the door

To turn the brush into a door, right click on it while it is selected in one of the 2D views. Then select 'Tie to Entity' and from the entity list select either func_door_rotating or func_door. If the door is to move up or down, select func_door and scroll down the options until you reach 'Move Direction (Pitch Yaw Roll)' and select either up or down from the small box next to the select options bar.

Once this is done, to open the door(ingame) walk into it. To make it into a 'use' door, double click on it in 3d view, select 'flags' from the bar above selecting an entity. It is near the left. select 'use opens' and unselect 'touch opens'.

Making a button for your door

Name your door something like door1. To make a button for the door, create a small brush (can be any shape you want), and tie it (via Tie to Entity) to func_button. Name your button as well (i.e. door1_button). Then, once you have selected 'Apply', select 'Outputs' and 'Add Output'. The output should be:

OnPress | door1 | Open | <none> | 0.00 | Not checked for fire once.
Then press 'Apply' again, to make the button.
When you test the map, walk up to the button and press 'Use'. The door should then open.