Name:
My First Door Description:
This tutorial shows in easy steps how to make a basic moving door
window
Update: December 3,
2000 Download the tutorial here
as *.zip file
1. Make a brush with a door texture
For this tutorial I took the the two rooms from the 'My First Hallway'
tutorial and added two triggered doors in the hallway.
First of all make a brush 64 units wide and 112 units high and give
it a door texture (in the example I used the C1A0B-DR4B texture and
as you can see the texture is right fitted without stretching it)
Then put the door in the hallway (remember when the door opens the
brush doesn't disappear it only moves into the wall. To cover the
open door completely with wall you have to put the door a little bit
in side the hallway [around 4 units] as you can see on the picture)
Then copy the door and put it also in the hallway next to the right
room (just a possibility that isn't so important for this tutorial)
and because the right door should open in the opposite direction you
have to enter a minus before the horizontal stretch value at the surface
inspector 'S'. You
also can make this step after the first door is completely finished.
As you can see both doors should open to the right side if you're
standing in front of them.
2. Make the door brush to a (triggered) func_door
Select one door-brush and make it a func_door. Then open the entity
inspector and enter this keys: FOR THE LEFT DOOR: Key: angle
value: 270 The open direction in degrees
Key: delay
value: 1 The time to wait before the door open after it was triggered Key: wait
value: 10 The time to wait before closing again Key: speed
value: 100 The moving speed in units per seconds Key: lip
value: 4 The part of the door you will see standing out of the wall in
the open position Key: movesnd
value: 2 The moving sound Key: stopsnd
value: 6 The stop sound Key: targetname
value: d1 A possible target name if you decide to trigger the door
FOR THE RIGHT DOOR:
The same keys. I only changed the opening direction in the opposite
one (90°)
After entering all key your doors should look like this in the XY-screen
If you want to trigger the doors go one with the next step otherwise
you are finish (but make sure you haven't used the targetname key)
3. A trigger_multiple to open the doors
In order to trigger the doors you need a trigger_multiple entity in
front of every door.
So make three brushes one for every door and one in the hallway and
give them the AAAtrigger texture. Then select them all and make them
a trigger_multiple with this keys: key:target value:d1
Give it the same value you choose for the key targetname by the func_door key:wait value:11 Give it minimum the same value you used for the wait key by the
func_door
After all your two doors should look like this in the XY-screen or
like that in your camera view