24 posts
32 snarkmarks
Registered:
May 8th 2007
Location: Canada
Is it possible to make a wall that you can shoot through 1 way but not the other?
Red lights are optional.
Re: One way wall
Posted by Foxpup on
Fri May 25th 2007 at 3:41am
Foxpup
member
380 posts
38 snarkmarks
Registered:
Nov 26th 2004
Occupation: Student
Location: the Land of Oz
No. Anyway, why would you want to make a wall that you can only shoot through one way (apart from to encourage camping, which everybody hates)?
Better to be in denial than to be human.
Bill Gates understands binary: his company is number one, and his customers are all zeros.
Re: One way wall
Posted by DrFrag on
Fri Aug 24th 2007 at 2:10am
62 posts
16 snarkmarks
Registered:
Jan 12th 2005
Location: Australia
Actually it can be done, but it will only allow visible projectiles through (rpg, grenades, crossbow) not weapons with invisible projectiles (shotgun, 357, assualt rifle). Visible projectiles have models, and can be used to trigger entites.
Make a wall three brushes thick, like a sandwich. Each brush must be thicker than the size of the projectile. I tested this with 16" thick brushes and it worked fine, but 4" made it unreliable unless I was shooting from an angle.
Make the middle brush a standard func_brush entity named, say, "middlewall". Make the left brush a trigger_multiple, with an Output to OnStartTouch middlewall disable, and tick the Everything flag. Make the right brush a trigger_multiple, with an Output to OnStartTouch middlewall enable, and tick the Everything flag.
When you fire a projectile at it, the wall will vanish for a fraction of a second allowing the projectile to pass through. It only works in one direction. I made the middle wall glass and it looks extremely cool. (have you ever seen Goku Midnight Eye 2? Reminds me of the phasing rocket launcher from that)
Of course, you can make the wall appear to remain solid by covering the middle brush with the nodraw texture, and making a func_illusionary brush occupying the middle brush space and with the texture of your choice. (I think func_illusionary has been depreciated ... maybe use another func_brush and make it non-solid.)
Also note that if a player tries to walk though it, they'll get stuck inside the wall. There's a few ways to get creative there. Blocking the lower portion is probably the easiest.
Re: One way wall
Posted by RedWood on
Fri Aug 24th 2007 at 5:44am
RedWood
member
719 posts
652 snarkmarks
Registered:
Sep 13th 2006
You could turn the brush into a displacement. I know rockets pass right trough the back side, but i don't know about things like the smg or shotgun.
Reality has become a commodity.