One way window

One way window

Re: One way window Posted by xconspirisist on Wed May 25th 2005 at 5:38pm
xconspirisist
307 posts
Posted 2005-05-25 5:38pm
307 posts 81 snarkmarks Registered: Feb 26th 2003 Occupation: Student Location: UK
Well, I'd like to make a window, which you can only see through, one way.
Re: One way window Posted by Addicted to Morphine on Wed May 25th 2005 at 7:49pm
Posted 2005-05-25 7:49pm
3012 posts 529 snarkmarks Registered: Feb 15th 2005
Here's how you make a 1 way window/mirror:

First set up where you want the window.

User posted image

You're going to need two seperate brushes/panes of glass for this to
work, so make sure you have the 2 brushes flush against each other in
the place where you want the window. Make sure both brushes are
textured with a glass texture, like GLASSBLUE1. Now, you want the
two brushes thin enough so that they look like they're just 1
brush. Here's the view from above:

User posted image

Now, on the side which you want to be able to see through select the
visible brush and tie it to func_wall and set the Render Mode to
Additive. Change the FX Amount to something like 150, so that the
glass is transparent.

User posted image

Now go to the other side of the window to the part you don't want to be
able to see through. Click on the brush facing you and tie it to
the func_wall entity. Except this time you're going to set the
Render Mode to Solid (no light). You also want to set the FX
Amount to the max of 255.

User posted image

If you were to jump in game now from the transparent side you
would clearly see that there was another pane of glass (because it
wouldn't be see through). The trick here is to apply the {BLUE
texture to the side of the non-transparent brush facing the transparent
window. So when you look through the transparent side you'll see
right through the piece of glass (since the {BLUE texture makes that
face invisible), but if you walk around the other piece of glass is
still there and non-transparent.

Here is the view of the solid brush textured with {BLUE on that single
face. I've hidden the transparent brush so that you can see, but
make sure both brushes are visible when you compile:

User posted image

Hoped that helped! If something was unclear, ask.
Re: One way window Posted by xconspirisist on Wed May 25th 2005 at 9:33pm
xconspirisist
307 posts
Posted 2005-05-25 9:33pm
307 posts 81 snarkmarks Registered: Feb 26th 2003 Occupation: Student Location: UK
That is absolutly awesome, my hat goes off to you.

As a possible extenion, I've been fiddeling about to no avail, letting players jump through the window side that is visible. Any ideas on how this might be acheived?
Re: One way window Posted by Major Mike on Mon May 30th 2005 at 5:02am
Major Mike
44 posts
Posted 2005-05-30 5:02am
44 posts 54 snarkmarks Registered: Aug 9th 2004
Maybe an invisible door with a trigger_multiple on one side that targets the door allowing people to go through. The glass will have to be made a func_illusion then so only the invisible door has physics. Or perhaps a trigger_push with a high speed of push that aims in the direction the player goes through. If anyone on the otherside tries to go through they would be pushed back. Again the glass needs to be made a func_illusion so only the push has physics. If these work let me know which worked the best.
Re: One way window Posted by wil5on on Mon May 30th 2005 at 7:08am
wil5on
1733 posts
Posted 2005-05-30 7:08am
wil5on
member
1733 posts 570 snarkmarks Registered: Dec 12th 2003 Occupation: Mapper Location: Adelaide
I would expect the push would work better. Triggering a door to open when a player is on one side of the window could easily get messy.
"If you talk at all during this lesson, you have detention. Do you understand?"
  • My yr11 Economics teacher