func_rotatingdoor problem
Moderator: Moderators
-
acdc992004
- Corporal
- Posts: 31
- Joined: Thu Jul 07, 2005 11:03 pm
- Location: Chicago, IL
- Contact:
func_rotatingdoor problem
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.
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.
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.
-
PKM
- General
- Posts: 1888
- Joined: Tue Aug 09, 2005 4:43 pm
- Location: Philadelpia but stuck in San Antonio TX (hell)
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 .


right
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.
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.
-
acdc992004
- Corporal
- Posts: 31
- Joined: Thu Jul 07, 2005 11:03 pm
- Location: Chicago, IL
- Contact:

