Page 1 of 1
Mapping: Rotating door and window
Posted: Wed Dec 29, 2004 9:45 pm
by Rookie One.pl
Hi,
These might be lame questions, but...
1. I put a rotating door in my map and it works fine. The problem is that it only turns in one direction. How do I make it turn the other too?
2. I also made a breakable window. I want it to be as 'thin' as possible, so I put the nodraw texture on one of the sides but it just makes the brush completely invisible from the side it's put on. How do I set it up so it works as intended?
TIA,
Rookie One
Posted: Wed Dec 29, 2004 10:11 pm
by lizardkid
1) change the angle value of the door
2) put it on grid 1, scale it appropriately, and remove that nodraw.
Posted: Wed Dec 29, 2004 10:27 pm
by Rookie One.pl
Double true!

Setting the angle to 90 makes the door open in both directions and the window scaled to 1 appears just as I wanted it to. Thanks! Like the British say in CoD - bloody well done!

Posted: Thu Dec 30, 2004 12:01 am
by wacko
Rookie One wrote:Double true!

Setting the angle to 90 makes the door open in both directions and the window scaled to 1 appears just as I wanted it to. Thanks! Like the British say in CoD - bloody well done!

Atleast the answer #1 is wrong! I would love to tell u about reading former threads but they're gone. I would love to tell u about Bjarne's tiki where I put a tutorial about rotating doors, but it's gone.
So, once again.
Short version: the angle must be set perpendicular to the doorface.
Longer version: 180deg and 360deg and 0 deg is the same for doors opening in both directions, same with 270deg and 90deg
0 deg is default, so u won't have to set that angle.
Very long version: Ask Bjarne to get his tiki running

Posted: Thu Dec 30, 2004 8:57 am
by Rookie One.pl
You know what? I don't really care as long as it works.

I set the angle to 90 and it's all right now, so what's trhe problem?

Posted: Thu Dec 30, 2004 9:01 am
by seere
Rookie one I dont think Wacko was trying to present you with a problem but a potential solution, you wait until you have another door at a different angle to your 1st one and find it dont work.
You would do well to listen to Wacko as he knows his stuff.
Seere.
Posted: Thu Dec 30, 2004 11:08 am
by HyperKiller
I am wondering..
If we want normal doors we put that origin stuff where the hinges should be.
Do the door turn around the center of the origin?
Yes - It is good to put the origin so that the center of the origin is on the edge of the door?(i have allways placed the origin inside the door brush and then when i opened the door in the game, the door and the wall overlaped)
Posted: Thu Dec 30, 2004 12:13 pm
by wacko
HyperKiller wrote:I am wondering..
If we want normal doors we put that origin stuff where the hinges should be.
Do the door turn around the center of the origin?
Yes - It is good to put the origin so that the center of the origin is on the edge of the door?(i have allways placed the origin inside the door brush and then when i opened the door in the game, the door and the wall overlaped)
If u were talking about normal doors like doors opening only in one direction, you are right. Placing the center of the origin brush over the edge of the door will look a bit better. For gameflow though, where u want doors to be passed as easy as possible, u will want to use doors opening in both directions (always away from the player). And in this case u would have errrm two edges where the origin ought be. So, placing the origin brush in the middle is the better solution, like this:

Or, if u had a door frame, u could do it like this:
@seere, yep, u're right. thnx. esp for doors standing on e.g. 45deg (like / in top-view, which would need an angle of 135 or 315), it's important to understand what's going on...
Rookie One wrote:You know what? I don't really care as long as it works. I set the angle to 90 and it's all right now, so what's trhe problem?
Very funny indeed. We'll see again as soon as u do ur next door

Posted: Thu Dec 30, 2004 6:44 pm
by HyperKiller
Wery good solution wacko, I have never tought of that.
But in real life door frame is thicker than the door itself. It is better, becouse everything is fine when the door is in its end positions. Then again in real life doors open in one direction.
Posted: Fri Dec 31, 2004 5:58 am
by lizardkid
look, it's really basic for func_rotatingdoor, just remember, if you made it like this is Rad (norm view)
----|_______|
----|_______|
make it 180 degrees.
if you made it like
---- _____
---- l-----l
---- l-----l
---- l-----l
---- _____
you put it as 90 degrees. it works fine.
that's the simplified version.
sorry @ Wacko for not going into the details...