nib's Mapper Resource Center
     

Rotating Door

by nib


Creating a basic door is surprisingly easy. The door we're about to create works, but I've taken a lot of things out of it that is used in the official maps. I'm not sure if they are necessary or not, but the door seems to work fine. I think the extra stuff I removed had to do with the enemy AI in single player, which I'm not worried about right now. So, on with the tutorial.


Assumptions:

I'm assuming you have the basics down already. You should know how to create rooms and join them with a hall.

Step 1:

Create two rooms with a connecting hallway. It should look something like this:
Small Image of map

Step 2:

Draw the basic door in the hallway between the two room. Then, you have to create another brush that acts as the pivot point for the door. This brush is the key to making sure your door opens appropriately. Create this brush on the side of the door where you want the hinge to be and give it the common/origin texture. Make sure this brush is thicker than the door itself. Here is a screen shot:
Small Image of map

Step 3:

Finally, select the two brushes you just made, right click in the 2D window and choose func->func_door_rotating. Make sure both brushes change colors indicating that they are both part of func_door_rotating. That's it. You now have a door that will open from either side.
Small Image of map

Conclusion:

There are several options that you can set for the func_door_rotating entity that affects your door's behavior or sound. For example, if you set type = 4 it makes the door use a "wood" sound. These options can be seen by selecting the door and pressing N.

Files:

rotating_door_tut.zip