Page 1 of 1
func_rotatingdoor problem
Posted: Wed Nov 30, 2005 9:39 pm
by acdc992004
Well ive been mapping for little over 6 months now. And i still have problems with doors. Its kinda funny if you think about it. But everyone has their flaws. My problem is when making the func_rotatingdoor, my doors always open towards the player. never away. Some open only in one direction. I have tried the key and value of "alwaysaway" "1" but that doesnt help. Anyone have any other suggestions? Is there something to do with angles?if so, I dont know what number the angle should be.
Posted: Wed Nov 30, 2005 10:16 pm
by neillomax
Alwaysaway 1 has always worked for me, but I've seen other posts where some people say it won't. You can try "alwaysaway", or "angle" and then hit one of those 45 - 90 - 180 - 270, etc. blocks in the bottom of the entities window and see if that helps. gotta keep futzin with it.
Posted: Wed Nov 30, 2005 11:36 pm
by PKM
even though it's not needed i always include an angle when using the key alwaysaway with the value 1
Posted: Thu Dec 01, 2005 12:20 am
by LeadHead
Same here.
Here is how I know what angle to put (because sometimes I get confused also). I am not entirely sure if my reasoning is correct, so someone please correct me if I'm wrong.
My understanding of doors is that the default opening angle is 0 degrees. So, if looking down on the door from the top view in the editor, and the door is mainly along the y-axis (like in the first picture), "alwaysaway" "1" should work fine.
But if the door is oriented along the x-axis (like in the second picture), you need to set an angle.
For this door, setting the angle to either be 90 or 270 degrees would be the key. In addition to that, you should have "alwaysaway" "1" set.
I hope that this helps you.
P.S. I know Tom Trude made a door tutorial that explained all of this somewhere, but I don't remember where I saw it.
Posted: Thu Dec 01, 2005 12:52 am
by PKM
you can simply highlight the door (+ origin brush) pull up your entities window and look down at the angles keys. if you imagine the button in the middle is your door, you only need to click the angle button that would be facing the actual face (front or back ) of the door.
Posted: Thu Dec 01, 2005 1:08 am
by LeadHead
That is what I should have said instead of my huge explanation, but I couldn't think of the right words to make it real short. Your explanation does that nicely.

Posted: Thu Dec 01, 2005 3:00 pm
by Uknowme
alwaysaway is not neccesary as it is there by default its all about angles as previously explained.
You can keep entering alwaysaway all you like but it won't make one bit of difference.
Posted: Thu Dec 01, 2005 3:32 pm
by neillomax
I've heard that myth also. Always away isn't default. Whenever I leave it out, door doesn't always open "away," but comes at you.
right
Posted: Fri Dec 02, 2005 6:23 am
by tltrude
Actually, Uknowme is right.
Alwaysaway 1 is default and, if set to
Alwaysaway 0, the door will only open in the direction of the set angle. If no angle is set, it will use the default angle of 0. The problem of a door opening backwards (in your face) is casued by not setting the correct angle.
Rotating Door Rule:
The angle must be set to one of the two directions the player will face to open it.
Maybe this will help:
Notice that the doors facing the x axis are good without any angle being set. This is because the correct angle for them is 0 and, as I said, 0 is the default.
Posted: Fri Dec 02, 2005 10:43 pm
by acdc992004
Wow. I really appreciate everyones help on this one. I hope this clarifies this issue for others as it did for me. Thanks everyone
