Garry's Mod

Garry's Mod

51,372 ratings
Portal Gun - Aperture Science Handheld Portal Device
20
9
6
5
5
4
4
2
2
2
64
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Scenic
File Size
Posted
Updated
54.083 MB
3 Nov, 2014 @ 7:14pm
2 Apr, 2017 @ 8:54am
30 Change Notes ( view )

Subscribe to download
Portal Gun - Aperture Science Handheld Portal Device

In 1 collection by pryncesslua
Bobblehead's Addons
11 items
Description
I'm no longer offering support for this addon. I recommend subscribing to cnick's portal gun instead! Find it here: https://steamcommunity.com/sharedfiles/filedetails/?id=1800764828

Description:
A fully functional Portal Gun. This is by far the most eloquent and bug- free portal gun available within Garry's Mod.
Left click to shoot a blue portal. Right click to shoot an orange portal. Reload to remove all portals. Press E to pick up an item.

TO MAKE THE PORTALS LOOK AS THEY SHOULD, RUN "r_novis 1" IN CONSOLE.

IF YOUR PORTALS ARE WHITE OR BLACK, YOU MUST START THE PROGRAM WITH -dxlevel 90.


Windows is currently the only supported operating system.

Please refer to the second video above for instructions if you are having trouble.

Features:
  • Portals which look exactly like the portals in Portal 1
  • Walk through portals just like the game. No more poofing!
  • Standalone, does not require Portal or Portal 2 to work correctly.
  • Velocity is (almost) entirely preserved as you enter the portal.
  • Optional dynamic lights
  • Several convars to adjust the portal gun to your liking (listed below).

ConVars:
  • portal_arm <0|1> Whether to render the arm of the portal gun's viewmodel. (Default 0; requires portal 2).
  • portal_beta_borders <0|1> Whether to use different textures for the portals. (default 0)
  • portal_borders <0|1> Whether to render portal borders at all (default 1; 0 somewhat improves performance)
  • portal_crosshair <0|1> Whether to use the portal crosshair (default 1)
  • portal_dynamic_light <0|1> Whether to use dynamic lights with the portals (default 0; 0 drastically improves performance)
  • portal_limitcarry <0|1> Whether to limit the portalgun to pick up portal props only (default 1)
  • portal_projectile_speed <number> The speed of the projectile shot by the portal gun (default 3500)
  • portal_render <0|1> whether to render the other side of the portal (default 1; 0 drastically improves performance)
  • portal_vm <1-5> Changes your viewmodel to one of several options. (default 1)

Links:
Facepunch: http://facepunch.com/showthread.php?t=1435151
Github: https://github.com/Luabee/PortalGun

Known Bugs:
  • Portal projectiles don't exist in multiplayer
  • Multiplayer in general is very unreliable
  • Props sometimes fall through the floor when they move through the portal
  • Roof portals don't preserve velocity for players.
  • Skybox sometimes doesn't draw within the portal.

Thanks to everyone who helped make this possible, including but not limited to:
Bobblehead - Making it actually work and look nice.
Blackops - Much code and models
Mahalis - Much code
Fernando5567 - Some Code
Matsilagi - Models/effects/testing
Dr. Awesome - Swirly beta portal materials
Popular Discussions View All (49)
47
5 Oct, 2025 @ 11:20pm
Bug Reports List
Bappity
40
1 Sep, 2024 @ 9:43am
poertal gun issues i had
chasebrown04
36
5 Jun, 2023 @ 10:47am
Most Popular Discussion.
[𝕊ℝ] 𝔻𝕒𝕧𝕖
2,489 Comments
Mando E. Lee  [author] 4 Mar @ 11:48am 
What gave you an error Eduardo?

If this addon did that please read the comments, there is an updated addon many are contributing to at this point. I have linked it multiple times
Eduardo 4 Mar @ 7:17am 
for me, it gave an error
Mando E. Lee  [author] 4 Mar @ 2:40am 
"THE DUDE21" and anyone else reading this, once again, I have to direct you to the new addon. I contributed to this addon under the name Dr. Awesome in the past, but I am the lead dev for Portal Project Beta. I reached out to Cnick on the new addon and have worked with the remainder of the PB team to provide as many assets as possible, give him free access to our work.

So please use the new version, it is far more stable and gives far more customization and options.
https://steamcommunity.com/sharedfiles/filedetails/?id=1800764828
THE DUDE21 1 Mar @ 11:14am 
this is the best mod i have EVER SEEN:steamthumbsup::steamthumbsup::steamthumbsup::steamhappy::steamhappy:
ApertureMesa 4 Feb @ 1:41pm 
Just subscribe to the new addon the author is linking. This addon is no longer supported. The new addon is just amazing and I'm impressed by it.
Mando E. Lee  [author] 3 Feb @ 10:08am 
One again, I would recommend using this updated version, I have contributed to it and it is an improvement over this one
https://steamcommunity.com/sharedfiles/filedetails/?id=1800764828
SPYCRAB!! 15 Jan @ 3:35pm 
[Portal Gun - Aperture Science Handheld Portal Device] AddCSLuaFile: Couldn't find 'autorun/client/cl_fonts.lua'
1. unknown - lua/autorun/server/sv_fonts.lua:1 what do i do
Danchik_136 10 Jan @ 8:26am 
Nicely done
Mando E. Lee  [author] 1 Jan @ 6:54am 
It is compatible however I would recommend people seeing this addon try out
https://steamcommunity.com/sharedfiles/filedetails/?id=1800764828
dlsalviola 1 Jan @ 2:04am 
is this compatible with the real portal maps?