Rotating Door

Tutorial collection, comprehensive listings on main site.

Rotating Door

Postby Tutorial on Mon Mar 07, 2005 12:42 am

category
General Half-Life 2/Entities

description
More basic looking then a prop_door_rotating but with more uses available.

keywords
rotating, door, doors, rotate.

This tutorial is going to show you how to create a simple rotating door.

We first need to start off with the area that the door is going to be located. It is important to make sure the gap is large enough for the player to fit through. You can see below that I have a simple gap in a wall which leads to another room. This is where I am going to place my door.

Image

Next we will insert the door. Select your brush tool and create a brush that fills up the gap where the door is to be, then apply the texture you want for this door as shown in the image below.

Image

We now have to apply the origin brush. The best way that I can describe the origin brush is that it works as a hinge, and this is wot the door will rotate around. You must make a brush that is textured on all sides with "tools/toolsorigin" and place it where you want the door to rotate. The image below should help you understand.

Note: It's preferred practice to use the small origin circle visible when the entity is selected. Drag this to the position of your origin.

Image

We must now select both the door brush and the origin brush at the same time. You can select multiple objects by holding down ctrl as you click. One you have both brushes select press ctrl+t and choose func_door_rotating. For this basic door you don't have to worry about the properties, although feel free to change the settings.

Thats it done. When you compile and load the map in game your door should swing open.

Image

Example Map
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby RabidGoat on Tue Mar 29, 2005 11:13 pm

easy enough! Im ready for an advanced door tutorial. how does Valve get theirs to look so good? do they use models? should I make the brush a phys_brush? can anyone be more specific on size of door brush, and the properties?

Your friendly neiborhood Hammer n00b
-Rabid Goat :?
RabidGoat
Regular
Regular
 
Joined: Sun Mar 20, 2005 4:52 am
Location: Florida (It's just as hot as you think it is) =P

Postby RabidGoat on Tue Mar 29, 2005 11:17 pm

errrrr........disregard my last post..........seems it is already a tutorial called "Prop Door Rotating" :oops:

if that one is available....why would anyone use a brush to make a door?
RabidGoat
Regular
Regular
 
Joined: Sun Mar 20, 2005 4:52 am
Location: Florida (It's just as hot as you think it is) =P

Postby Spartan on Tue Mar 29, 2005 11:17 pm

easy enough! Im ready for an advanced door tutorial. how does Valve get theirs to look so good? do they use models? should I make the brush a phys_brush? can anyone be more specific on size of door brush, and the properties?

Yes they do use models. There is even an entity for it.
Spartan
Veteran
Veteran
 
Joined: Sat Oct 09, 2004 2:58 pm

Postby Serever on Tue Mar 29, 2005 11:52 pm

RabidGoat wrote:if that one is available....why would anyone use a brush to make a door?

you dont have to use it as a "door". you could use this entity for anything you want to rotate a set distance, like a train turntable
"Hey Scott. It's Dougal. Can I have my hair from the 1980's back?"
User avatar
Serever
Senior Member
Senior Member
 
Joined: Tue Nov 23, 2004 9:23 pm
Location: NSW, Australia

Postby iambadsim on Wed Mar 30, 2005 2:30 pm

HEY IS THERE NEWA7Y OF CREATING A BUTTON OPENED DOOR BECAUSE WEN I TRY THE BUTTON MOVES INSTED OF THE DOOR :(
iambadsim
Member
Member
 
Joined: Wed Mar 30, 2005 2:28 pm

Postby Serever on Wed Mar 30, 2005 9:36 pm

ROFL
Image




but anyway, in the "Flags" tab for the button, tick "Don't Move"
in the "Outputs" tab for the button, add one:
first field: <name of door>
second field: OnPressed
third field: Open

shoyuld work :wink:
"Hey Scott. It's Dougal. Can I have my hair from the 1980's back?"
User avatar
Serever
Senior Member
Senior Member
 
Joined: Tue Nov 23, 2004 9:23 pm
Location: NSW, Australia

Postby Spartan on Wed Mar 30, 2005 9:44 pm

Just a suggestion but try including how to add glass onto the door.
Spartan
Veteran
Veteran
 
Joined: Sat Oct 09, 2004 2:58 pm

Postby Grim Reaper on Wed May 04, 2005 4:13 pm

How do you make the gap that you put your door into?
Grim Reaper
May Contain Skills
May Contain Skills
 
Joined: Mon May 02, 2005 9:40 am
Location: Its this place, with air, and buildings, and there is lots of concrete...

Postby -|Dizmas|- on Thu May 19, 2005 10:50 am

To answere Grim:

You can make your brush the door texuter (its a dev dexture)
Then just trace the outer border (it has a line for the door border) with brushes. Then just delete the middle part and add the door.


My question:

Where is the model for the pushbar? I looked and couldn't find it. I need one for my door. And when i find it, I attatch it to the door by saying that the parent of the pushbar is the door, right?


:D
-|Dizmas|-
Regular
Regular
 
Joined: Sun May 15, 2005 5:04 pm

Return to Tutorials

Who is online

Users browsing this forum: No registered users