func_rotatingdoor problem

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
acdc992004
Corporal
Posts: 31
Joined: Thu Jul 07, 2005 11:03 pm
Location: Chicago, IL
Contact:

func_rotatingdoor problem

Post 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.
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post 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.
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

even though it's not needed i always include an angle when using the key alwaysaway with the value 1
i'm not f****** angry, i'm from philadelphia .
Image
User avatar
LeadHead
Sergeant Major
Posts: 115
Joined: Sun Apr 04, 2004 8:13 pm
Location: New York
Contact:

Post 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.

Image

But if the door is oriented along the x-axis (like in the second picture), you need to set an angle.

Image

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.
Image
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post 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.
i'm not f****** angry, i'm from philadelphia .
Image
User avatar
LeadHead
Sergeant Major
Posts: 115
Joined: Sun Apr 04, 2004 8:13 pm
Location: New York
Contact:

Post 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. :wink:
Image
Uknowme
Colour Sergeant
Posts: 84
Joined: Thu May 26, 2005 8:30 am

Post 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.
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post 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.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

right

Post 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:

Image

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.
Tom Trude,

Image
acdc992004
Corporal
Posts: 31
Joined: Thu Jul 07, 2005 11:03 pm
Location: Chicago, IL
Contact:

Post 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 :D
Post Reply