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  (40 - 50 of 57)
leilei Mar 19 2008 says:

get a new name too

+1 vote     reply to comment
RobSis Creator
RobSis Mar 28 2008 replied:

Oh, come on! How should I name it? Barsexual's robocracy? My mod appends PORTAL gun into game!

+3 votes   reply to comment
scar3crow Mar 19 2008 says:

You may be interested in this: Lag.thps3.net
Some of the speedrunners did a similar mod, makes for some crazy speedruns (e3m4 iirc in under 2 seconds).

+1 vote     reply to comment
RobSis Creator
RobSis Mar 28 2008 replied:

Thank you for that! That looks to be exactly, what I meant to do. I haven't tried it yet. If this mod is better then mine, I will erase my mod from this page.

+1 vote   reply to comment
leilei Mar 6 2008 says:

The official site for it is here:

The original official portal gun page.

Thanks for stealing!

+1 vote     reply to comment
RobSis Creator
RobSis Mar 7 2008 replied:

Dear LeiLei,

please, did you read the reply for Punkjunkie?
If not, do it, please.

I admit, that I "steal" the MODELS of portal-gun and portals from KQP, but the only reason is that I have no MDL editor, and I'm not graphic artist.
But, the idea of my mod is COMPLETELY DIFFERENT.
KQP portal gun makes hole throught the wall. My portal gun makes inter-spatial wormhole (it just creates TWO teleports, which leads one to each other.

I'm sorry for using MDL from KQP and, believe me, I wouldn't do that, if somebody made models for me. BUT, the code and idea is NOT STOLEN. I'm just coder, not a graphic.

Thanks. Robert "BOby" Siska

0 votes   reply to comment
Silverfisk Mar 14 2008 replied:

I usually ask before I borrow stuff.

+2 votes     reply to comment
RobSis Creator
RobSis Mar 19 2008 replied:

Ok. I'm sorry. Now, my PortalGun mod has new graphics.

+1 vote   reply to comment
leilei Mar 19 2008 replied:

hi ikguns plasma gun

+1 vote     reply to comment
RobSis Creator
RobSis Mar 28 2008 replied:

I didn't find any licence at ikguns page, so I suppose, it's ok.

+1 vote   reply to comment
punkjunkie Mar 5 2008 says:

You guys DO realize this specific Quake1 mod (including graphics, code, etc) has been around for about 10 - 11 years, right?

So, to say that its a conversion of the Portal gun for that Valve game is absurd.

What the hell?

0 votes     reply to comment
RobSis Creator
RobSis Mar 6 2008 replied:

Hello, punkjunkie
I really didn't know anything about that 10-years-old mod you're describing. I grab the portal-gun model and portals models from Killer Quake Patch, but in this mod the mechanism is completely different. (In KQP, portal gun makes hole through the wall, my portal gun makes hole through the space).

If you don't mean the KQP, just let me know, what you do mean.

Thank you.
Please, note that I'm not developing this mod for fame or money. I just missed the portal-gun in quake, and I made it. If there is some older, better mod, I'm gonna use it and forget my poor mod.

+1 vote   reply to comment
punkjunkie Mar 8 2008 replied:

well I can't be sure how the original mod worked, but I'm gonna assume when it was put into KQP it wasn't changed (most mods weren't).

IIRC, Killer Quake Patch was just a compilation of various mods from various authors (which made it one of the best mods for Q1).

I don't have a problem with someone reposting mods or modifying them and posting them .... just some credit to original authors or even stating that you don't know who the original author(s) are would be awesome.

You definitely should have just said you took an original Quake mod and spoofed up the code to act like valve's Portal and given some credit.

I wouldn't have jumped on ya :P

0 votes     reply to comment
punkjunkie Mar 8 2008 replied:

Well maybe I'm wrong on the whole compilation thing.

Its really been a long time since I've been into the Quake stuff.

Ahh well, you get my point.

+1 vote     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