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 :)

Image RSS Feed Latest Screens
Quake Portal Gun Demonstration Quake Portal Gun Demonstration Quake Portal Gun Demonstration
Blog RSS Feed Post news Report abuse Latest News: Code on github.com

0 comments by RobSis on Mar 3rd, 2013


I've decided to put the source code on github.com and continue maintenance from there.
The repository is located at RobSis/quake-portal-gun.

Here on moddb.com, I will only upload the major releases.

Feel free to send pull requests, fill issues or fork!

Media RSS Feed Latest Video
Downloads RSS Feed Upload file Latest Downloads
Portal Gun (v2.3)

Portal Gun (v2.3)

Jul 15, 2012 Full Version 3 comments

Yet another (and nicer) model of the gun added. And introducing the Companion Cube! You can find it in 'phystest' level. It cannot trigger any buttons...

Portal Gun (v2.2)

Portal Gun (v2.2)

May 17, 2011 Full Version 13 comments

Completely original new model added! Should work on any decent engine now. Also, new "level" added. It's called 'pellet'.

Portal Gun (v2.1)

Portal Gun (v2.1)

Apr 27, 2011 Full Version 0 comments

I decided to remove portal gun model, that caused lots of engines to crash. Someone has to make low-poly version of it... It's still in the package, though...

Quake Portal Gun

Quake Portal Gun

Mar 4, 2008 Full Version 4 comments

Portal Gun (Aperture Science Handheld Portal Device) is a device that creates an inter-spatial portal (wormhole) in level. It's an quaked conversion of...

Post comment Comments  (20 - 30 of 57)
RobSis Creator
RobSis Jun 24 2011, 3:44pm says:

school is over, so finally I have some time to work on this mod...
some two guys from texas made some very clever maps, so we gonna build on that. get eager for some chambers :)

also I have to fix the gun model, the texture bug is so flagrant!

+1 vote   reply to comment
ceriux Aug 24 2011, 2:05pm replied:

Hey! I can't wait for version 2.3 once your mod gets more content, i want to make a news post about it on my group. If you need any help with textures let me know.

+1 vote     reply to comment
RobSis Creator
RobSis Sep 2 2011, 2:12pm replied:

Hi. I found some textures on free artwork sites. The largest problem is maps right now...

+1 vote   reply to comment
ceriux Sep 10 2011, 3:53pm replied:

making a map is easy siska Youtube.com

(i wouldnt suggest making your rooms by hollowing out boxes though.)

+1 vote     reply to comment
RobSis Creator
RobSis Sep 11 2011, 6:34pm replied:

Yeah, I guess I should start by myself. Oh, and what's wrong with hollowing out?

+1 vote   reply to comment
Halm_Barte Sep 23 2011, 3:52pm replied:

I'm quite keen to be mapping for you, I'll send a small .bsp in a zip for you to have a look at my handi-work. The reason you dont want to just carve a space out of another block to make a room is because the carve tool can create tiny-tiny-tiny leaks which suck and cause slowness where a box made surface by surface will be tidy and not spill the games playable area into the infinate void ...hence slowness.

e-mail me: kylealanjohn@hotmail.com

+1 vote     reply to comment
RobSis Creator
RobSis Apr 28 2011, 9:36am says:

Ok folks, new version (2.1) released. I fixed some bugs and removed the epic portal gun model (is way too high-poly for classic quake); so now it looks like rocket launcher temporarily. That should fix those crashes, you've been reporting.
I hope it'll work on as many engines as possible. Please, report, if it causes crash on yours. (so far tested on dosquake and quakespasm)

+1 vote   reply to comment
agent2479 Apr 18 2011, 7:34pm says:

This doesn't work for me-- it shows the demo at the beginning and the maps load, but when i press "P" absolutely nothing happens. Am i doing something wrong?

+1 vote     reply to comment
RobSis Creator
RobSis Apr 23 2011, 4:22pm replied:

It's probably bug. What engine are you using? I target this mod on original DOSQUAKE - other engines are most likely to be buggy.

The only problem is gun model, which appears to freeze lots of engines...

+1 vote   reply to comment
Mr.Creeper Jun 23 2010, 2:28pm says:

can this work with steam quake???

+1 vote     reply to comment
PeterHat Mar 14 2010, 5:55am says:

i dount know about you people but im making a map pack.
Who is with me ?!

+1 vote     reply to comment
SourHyperion1 Jun 14 2010, 11:36pm replied:

sounds like fun

+1 vote     reply to comment
cheery314 Feb 23 2009, 10:18pm says:

Can this work with MS-DOS. That's the only OS I have.

0 votes     reply to comment
xaGe Feb 23 2009, 10:33pm replied:

cheery314 try it in DOSQUAKE?

+1 vote     reply to comment
Gearsguy Jan 24 2009, 1:41pm says:

Can this work with PSP Quake because then its like Portal: Portable xD

+4 votes     reply to comment
Koolvin Aug 5 2009, 10:17pm replied:

ya but you have to write your own code :P

0 votes     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Quake Icon
Developed By
Send Message
Official Page
Release Date
Released Mar 2008
Mod Watch
Track this mod
Community Rating



12 votes submitted.

You Say


Ratings closed.

First Person Shooter
Single Player
Embed Buttons

Promote Quake Portal Gun on your homepage or blog by selecting a button and using the embed code provided (more).

Quake Portal Gun Quake Portal Gun
Quake Portal Gun
Last Update
2 years ago
29 members