Force Centered Portals [Solved]

Avatar
Denominator
19 Posts
Posted Aug 12, 2013
Hello,

I would like to force portals to be centered on a basic square portal surface. If I remember correctly, Josepezdj's "Aperture Valentine - The Advanced Chambers" utilized this in the first room. My map is in dire need of this feature.

Could someone please direct me to a wiki or thread on how to do this, or else provide some pointers?

Thanks in advance!
-Denominator

Advertisement
Registered users don’t see ads! Register now!
Avatar
Ultiman9711
118 Posts
Posted Aug 12, 2013
Replied 10 minutes later
Use an info_placement_helper. Set the radius to something like 64, orientate it correctly with the red arrow facing in the portal's "up" direction, and set, "Use this helpers angles" to yes. It should automatically centre the portal when you fire it within 64 units [or whatever] of the helper.

For more information, check this page out: https://developer.valvesoftware.com/wik ... ent_helper

Avatar
Tmast98
210 Posts
Posted Aug 12, 2013
Replied 1 minutes later
If I understand correctly you want to force portals into a position when they are fired near said position? Either of these entities may be of use:

https://developer.valvesoftware.com/wiki/Info_placement_helper

http://www.youtube.com/watch?v=qgM_Ape4UfQ

https://developer.valvesoftware.com/wiki/Func_portal_bumper

Hope that helps you out!

Avatar
Gemarakup
1,183 Posts
Posted Aug 13, 2013
Replied 1 hour later
If you want it to be straight (on the floor), there's a parameter for that.
Avatar
Denominator
19 Posts
Posted Aug 13, 2013
Replied 18 hours later
Thanks all for your suggestions! I will now go spend some time studying these entities =)
Advertisement
Registered users don’t see ads! Register now!
Avatar
Denominator
19 Posts
Posted Aug 14, 2013
Replied 1 day later
@Ultiman9711: Thank you! This is exactly what I needed! I am sure this link will also come in handy when I try to learn how to attach the info_placement_helper entity to an angle panel or flip panel, such that the portal still lines up with the panel.

@Tmast98: This video tutorial makes complete sense! Much appreciated.

@yishbarr: Thanks, I will keep that in mind. The video tutorial also mentioned an angle parameter, I will be sure to check it out.

Thanks to all of your useful advice, I can make the testing experience that much better =)