Page 1 of 1

Doors Doors Doors I HATE!!! DOORS!

Posted: Thu Jul 03, 2003 9:51 pm
by SNakeFluGeL
Grr! Argh!

If there is one thing in mapping so far I really really hate that's to build doors! They never ever open in the right direction!

So what I did I build a door and a orgin next to it, selected both and gave it the function rotating door...

I opened the property box and entered 'alwaysaway' 1
So I thought with this line everything would change, well not really...
It keeps on opening the wrong side :(

I know this might be asked a million times but any tips will do...

Thanks a lot...
grtz SNake

Posted: Thu Jul 03, 2003 11:12 pm
by wacko
I might explain the search button in this forum, but because I treated you so bad with that book ( :P ), I'll tell ya:
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, give it alwaysaway/0. Then, if it opened in the wrong direction, check 'opendirection', and it will open the other way.
If the door shall open always away from the player, you must not set alwaysaway/1, because that's default.
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

Posted: Fri Jul 04, 2003 12:11 pm
by SNakeFluGeL
Thanks A lot sorry for not using the search button in this case I was to lzay I guess, will do it now...

Posted: Fri Jul 04, 2003 12:27 pm
by SNakeFluGeL
My Doors work perfectly now, so for all the n00bs outside, just try to delete the angle key... and see if it works... if it still opens the wrong side sometimes you got try some angles but first try without it.

Posted: Fri Jul 04, 2003 12:28 pm
by SNakeFluGeL
My Next Mission ... Broken Windows!

Rule

Posted: Fri Jul 04, 2003 2:56 pm
by tltrude
There is a simple rule for rotating doors:

Rotatingdoor rule - "Always set the angle to one of the directions the player will face to open it."

Setting "alwaysaway 1" is not needed because it is default, but setting "alwaysaway 0" will make the door open only in the direction the angle is set.

Breakable Windows - Create a window brush using a texture that has "frame" in the name, and which has a look a like "broken" or "b" texture. Copy that brush and apply the broken texture to it. For the frame one, make it a func_window. Then add key "target" and value "win1_broken", or whatever, to it. For the broken window brush, make it a script_object with a targetname "win1_broken". Move it where it will get lots of light during the compile.

Hope that helps.

Posted: Fri Jul 04, 2003 3:42 pm
by Slyk
A real easy visual guide: When you place the door, look at the bottom of your editor screen... the angle key box is laid out as the map is... to the right is 0/360 and your left is 180. Looking at your door, if it's WIDTH is parallel to the right or left edge of the map, you DON'T need to set the angle. IF it is parallel to the top/bottom of the map, you need to set it to 90 or 270......90 is fine and safe, unless it opens ONLY ONE direction.

Just use your eyes, no need to guess.