Page 1 of 2

Damn rotating doors

Posted: Wed Apr 30, 2003 9:25 am
by Sideways
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)

Posted: Wed Apr 30, 2003 10:16 am
by mohaa_rox
Don't use csg subtract, don't be lazy. :wink:

You have something called "func_rotatingdoor leak". You must make sure it's not stuck in the floor.

HOpe that helps.

Posted: Wed Apr 30, 2003 11:24 am
by Bjarne BZR
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...

Posted: Wed Apr 30, 2003 11:25 am
by rOger
Try setting the "angle" to 180 for those doors that only swing one way.

Posted: Wed Apr 30, 2003 11:30 am
by Bjarne BZR
Stop confusing him rOger! :wink:

If he has set 'alwaysaway/1' on all doors in the map, I dont think he wants to set anything else than 0 or 90 degrees on his doors... ( at least that is how I understood Mr Sideways... )

Posted: Wed Apr 30, 2003 11:47 am
by mohaa_rox
no no no no no no, a func_rotatingdoor doesn't need alwaysaway/1! Don't confuse him!!!!!!

Just set the angle to 90 or 135 if u want it to open more.

Posted: Wed Apr 30, 2003 12:06 pm
by Bjarne BZR
What are U saying rox?
Ofcourse he needs the alwaysaway! Or have I gotten this wrong the whole time? Only setting the angle will just make the door open in one static direction...

( and where did you get the angle 135? )

If I'm wrong here, I will have to re-boot my brain with the -n00b flag... :?

Posted: Wed Apr 30, 2003 12:14 pm
by mohaa_rox
It's not neccessary for alwaysaway with a func_rotatingdoor! jv, jv, could you help? :D

angle 135 is between 90 and 180, like:
/
/
/
_______/ _________
about 135 degrees

Old problem

Posted: Wed Apr 30, 2003 12:18 pm
by tltrude
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.

Image

Posted: Wed Apr 30, 2003 12:27 pm
by mohaa_rox
Yes! Exactly what I meant!

Haha Bjarne! :P :P :P I win!

Posted: Wed Apr 30, 2003 12:35 pm
by Bjarne BZR
Well... if that makes a door that swings both ways, how do you make door open only one way?

One way door

Posted: Wed Apr 30, 2003 12:40 pm
by tltrude
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.

Posted: Wed Apr 30, 2003 4:16 pm
by Bjarne BZR
OK... then why have I carefully set 'alwaysaway 1' on all my door according to all tutorials on the subjet? :cry: :cry: :cry:

Oh, well, no big harm done I guess :oops:

Posted: Wed Apr 30, 2003 5:11 pm
by nuggets
lol, we all did that when we 1st started :D

using angle 45 and 135, can b used aswell but only for diagonal doors,

if you want it to open to those degrees then use
key: openangle
value: 135
as required :D

Posted: Wed Apr 30, 2003 6:39 pm
by m4rine
Please, if you're reading this, and you know the solution to my problem, e-mail me at:

sideways@telusplanet.net
he did say to e-mail him but if hes too lazy to check his own post then its his own fault.

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:
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
Wacko told me this so thank him not me if u find it useful. if this is useless info then blame me!