Facepunch / garrysmod-requests

Feature requests for Garry's Mod
84 stars 24 forks source link

Implementation of 1way Areaportals(from valve wiki) #1370

Open VaasKahnGrim opened 5 years ago

VaasKahnGrim commented 5 years ago

(https://developer.valvesoftware.com/wiki/CAreaPortalOneWay) I recently stumbled across this and immediatly thought it could be useful for alot of areas in my maps. one being for 2way mirrors in rooms. the side that reflects would not see whats on the otherside, but allow others to look in from the back side of the mirror.

It would also be useful having a 1way occluder entity aswell as a 1way func_areaportalwindow aswell.

Side note, is there any possibility of raising the maximum areaportal limit from 192 to say 255? or just higher in general really.

robotboy655 commented 5 years ago

You do know you can put a transparent material on one side of a brush and reflective material on another for a 1 way mirror?

VaasKahnGrim commented 5 years ago

The only issue is if you are on the reflective side your not preventing whats behind the mirror from rendering(basically brushes with a transparent texture on a single face do not seal areas from each other).

With a 1way areaportal entity behind it however, you can see the mirror and your reflection, but any players or models or entities behind it or parts of the map will not render.

This entity would also be pretty useful for some other fun opticle illusions aswell(part of the reason of pitching the idea of possibly making a occluder version thats 1way)