Damn rotating doors
Moderator: Moderators
Damn rotating doors
Please, if you're reading this, and you know the solution to my problem, e-mail me at:
sideways@telusplanet.net
I make a wall, then a door-sized brush. I then CGS subtract the brush in that wall. I then use that brush as the door, center it in the hole I created, create an origin, select 'func_rotatingdoor' then in the entity window I type 'alwaysaway/1'. However, even though every door in the level I am making is made exactly this way, some of them only open one way. I can get all of the doors to open away from me, if I target the door at the hinge and hit 'use'. But if I'm not targeting the hinge exactly, the doors (some of them, anyways) swing towards me. PLEASE help me fix this. This has to be the most frustrating thing ever.
Thanks in advance for any help!
Sincerely: [TaF]Capt.|RADIOHEAD(I/SO)
sideways@telusplanet.net
I make a wall, then a door-sized brush. I then CGS subtract the brush in that wall. I then use that brush as the door, center it in the hole I created, create an origin, select 'func_rotatingdoor' then in the entity window I type 'alwaysaway/1'. However, even though every door in the level I am making is made exactly this way, some of them only open one way. I can get all of the doors to open away from me, if I target the door at the hinge and hit 'use'. But if I'm not targeting the hinge exactly, the doors (some of them, anyways) swing towards me. PLEASE help me fix this. This has to be the most frustrating thing ever.
Thanks in advance for any help!
Sincerely: [TaF]Capt.|RADIOHEAD(I/SO)
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Your problem is that even if you use 'alwaysaway/1', you must still set the angle parameter correctly. The reason some doors work and some don't, is that all the ones that should have 'angle/0' will work without setting the angle ( angle defaults to 0 if no angle is set ). So set 'angle/90' on the ones that is rotated 90 or 270 degrees ( the ones that dont work ) compared to the working doors.
( If the doors are not at even 90 degree turns, you'll have to do the math yourself )
Good luck...
( If the doors are not at even 90 degree turns, you'll have to do the math yourself )
Good luck...
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Old problem
We thrashed this out months ago and came up with a simple rule.....
=========================================
Rotating Door Rule:
Set the angle to a direction players will face to open the door!
=========================================
Alwaysaway does not work at all, so it matters not if it is set. In the below screenshot, the two lower doors work right. And the two on the Y axis work right even with no angle set.

=========================================
Rotating Door Rule:
Set the angle to a direction players will face to open the door!
=========================================
Alwaysaway does not work at all, so it matters not if it is set. In the below screenshot, the two lower doors work right. And the two on the Y axis work right even with no angle set.

-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
One way door
To make a door that only opens one way, you don't use a function door. You would have to make a script_object door with a trigger and set its rotation in the script.
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
he did say to e-mail him but if hes too lazy to check his own post then its his own fault.Please, if you're reading this, and you know the solution to my problem, e-mail me at:
sideways@telusplanet.net
and about the alwaysaway/1 stuff it does work if u put it with angle/<depends which way ure door opens>
in other words read this:
Wacko told me this so thank him not me if u find it useful. if this is useless info then blame me!Made a door?
One brush for the door, one for the hinge with texture origin?
Selected both and turned into func_rotatingdoor?
Fine!
Select the door, press 'n'.
If the door shall open just in one direction and it opens in the wrong direction, check 'opendirection', and it will open the other way.
If the door shall open always away from the player, enter key/value alwaysaway/1.
Now, give the door a key/value angle/###, where ### depends on how your door is standing in the top-view:
A | like door gets no angle or 0 or 180
a ----- like door gets an angle of 90 or 270 .
A / like door gets 135 and a \ gets 45. Always perpendicular to the doorbrush.
You could also search the forum, the biggest part of it is about rotating doors
"We must become the change we want to see in the world" (Mahatma Gandhi)

