Generalvivi wrote:Hey guys, I know we were talking about the portal "funnel" and how to parent a trigger to the portal and such but I seem to have hit a snag where the player's collision gets turned off. When they exit my trigger they can walk through the walls of the level but as soon as I move my portal again their collision gets reset.
any ideas?
I actually had a great setup for getting the funnel turned on/off, useful as it drops the entity count to only exactly what you need. Plus it can be recycled for other portal-though setups like the laser or bridge thing.
what I did was make it so the player must only use the orange portal (though you could add the technique to both portals, just double entities) then I made a small (VERY small, for preventing glitching reasons) func_door at the top of the portal. this door is set to move at a somewhat quick rate. There is a trigger in front of where the orange portal will be to let the laser/funnel/whatever go through. This trigger is set to go off if the door is within the boundry (A.K.A. when the orange Portal is placed there) and the trigger, in turn, sets off the blue portal entities. Now it has to be moving because it appears if it is stationary (Func_brush) the trigger does not pick it up that it is there.
This setup creates a mobile portal-triggerer so to speak. Now the portal is able to trigger triggers using this door. Once you move the portal, make it to the trigger simply shuts off the entities. Do this for multiple setups (funnels, Lasers, bridge, etc.) and your good.
Drawbacks of this setup are:
1: Occasionally, rarely, the game will crash if you attempt to place the blue portal. It's only happned twice, I have no idea what triggers it. I think parenting things to portals is a bit buggy.
2: If you make a wall/floor infinite loop (they are right next to each other, one on the wall one on the floor) and stick ANY func_physbox inside it will crash the game. This is totally out of the blue as I have no idea why it rejects them. one of my old maps leads me to believe they CANNOT go through portals, as when the ceiling fell into one (func_physboxes) they stopped on the portal like it was not there. Forcing it results in a crash.
Someone really should go through and make a list of what can go into a portal and what cannot. As in, what entities?
Func_Physbox apparently cannot.