Portal Gun (Handheld Portal Device) is a device that creates an inter-spatial portal (wormhole) in the level.

It is quake version of the gun from game Portal (part of Orange box) by Valve.

The latest state of source code is hosted on Github.com

Idea is simple: fire with the portal gun to the desired locations to open first and second portal. Now, the wormhole is created between them. You can enter it, or close it down, or even toss some objects through.

This mod tries to simulate (poorly) the physic as seen in original Portal game. That means, when you enter the first portal, your velocity and angles is restored on the other side of wormhole.

This allows you to do big jumps using gravity, and other tricks. Teleporting of pickups is possible, which allows interesting strategies (like gathering pickups on one place and the pick them all up at once; or reaching distant items just by shooting at them).

Controls are defined in autoexec.cfg. It's inspired by wecreatestuff's version of the game:

[p] - unsheathe portal gun.

[q] - fire blue portal.

[e] - fire yellow portal.

[f] - grab item.

[w][s][a][d] - movement.

I hope you enjoy it!

-- RobS

DISCLAIMER: Please note, that this modification is not commercial and I'm not trying to cause any financial harm to Valve company. If the Valve corporates think, I'm ruining their business, I'm ready to take it down from the internet (but I'm gonna hate them for the rest of my life :)