Experiment: moving world portals
Quote from walropodes on June 6, 2011, 5:39 amScreenshot 1
Screenshot 2
Screenshot 3From my video description:
Quote:A hacked-together test to see if it is possible to make movable world portals. It does not work well :/Note: the weird movement of the physics props is because this is a demo being played back.
What I did was parent a portal to an animated panel, then made a script that constantly turns the world portals on and off so when the panel moves the position of the world portal is updated. (normally, world portals do not move when attached to something)
If anyone comes up with ideas to smooth out the movement of the world portals, I'd love to hear them
If you wanna try out the script I made, here it is (though you shouldn't use it in your puzzles and such)
- Code: Select all
printl("Starting crappy worldportal hack");function loopy() {
// Close it...
EntFire("portal1", "close", 0);
// Then open it again.
EntFire("portal1", "open", 0);
// thank you to shotgunefx for telling me how to do this:
EntFire(self.GetName(), "runscriptcode","loopy()",0.05);
}loopy();
A suggestion for improvement would be to make it so it only does this when a panel is animating. I don't know yet of any way to smooth out the motion of the world portal though.
Screenshot 1
Screenshot 2
Screenshot 3
From my video description:
Note: the weird movement of the physics props is because this is a demo being played back.
What I did was parent a portal to an animated panel, then made a script that constantly turns the world portals on and off so when the panel moves the position of the world portal is updated. (normally, world portals do not move when attached to something)
If anyone comes up with ideas to smooth out the movement of the world portals, I'd love to hear them ![]()
If you wanna try out the script I made, here it is (though you shouldn't use it in your puzzles and such)
- Code: Select all
printl("Starting crappy worldportal hack");function loopy() {
// Close it...
EntFire("portal1", "close", 0);
// Then open it again.
EntFire("portal1", "open", 0);
// thank you to shotgunefx for telling me how to do this:
EntFire(self.GetName(), "runscriptcode","loopy()",0.05);
}loopy();
A suggestion for improvement would be to make it so it only does this when a panel is animating. I don't know yet of any way to smooth out the motion of the world portal though.
