Portal Gun
Screenshots 3 screenshots
About this mod Machine translation
This mod is a work in progress! I will continue to add and fix features over time.
Please leave all your feedback and feel free to ask me any questions!
Source code on GitHub
This mod introduces the famous portal gun from the portal series to GTAV! Use the heavy pistol to shoot the orange portal and hold T while shooting.
Shoot the blue portal. Based on the sound you hear, you will know if the portal has been created. Additionally, you can see if your shot will be hit
The crosshair is white and will be missed if the crosshair is gray. You can easily enter portals by simply walking into them, driving into them, or even
Press "K" and "L" to go directly to the blue and orange portals respectively. You can use E to grab entities to move them, and you can press Y to spawn an orange portal on the moon, or hold T and press Y to get a blue portal. Have fun!
do it
Detect if above/below/side to apply correct physics
Actual models for long-term falls (please contact me if you can help)
train support
Fix teleporting larger vehicles
More toys? (i.e. companion cubes, gels, turrets or faith cards) Not sure this should be a separate thing...
Require
Script Hook V
Script Hook V.NET
OpenIV
Install
If you haven't created a scripts folder in your GTAV game location yet, place the PortalGun.cs, PortalGunSetings.txt, and PortalResources folders in it.
Using OpenIV, navigate to "update/x64/dlcpacks/patchday3ng/dlc.rpf/x64/models/cdimages/weapons.rpf" and place the modified file there.
Make sure you have downloaded the above and placed ScriptHookV.dll, dinput8.dll, OpenIV.asi and ScriptHookVDotNet.asi in your home directory.
How to use
Customize the settings file to your liking
Use the heavy pistol to shoot the orange portal.
Hold or press the T key while shooting to enter the blue portal.
For added fun, press Y to place the portal on the moon.
Walk over, or let someone else walk over.
Grab entities while moving them with E aim
Now you're thinking about portals!
control
"T" - Hold/press the blue portal while shooting the heavy pistol.
"E" - Grab entities while targeting them
"O" - Switch to long boots.
"I" - coaxed by the moon
"K" - Teleport directly to the blue portal.
"L" - Teleport directly to the orange portal.
"B" - Spawns a random one two feet in front of you.
"Y" - spawns an orange portal on the moon (hold T for the blue portal)
Thanks
Big thanks to Proudnoob4 for the awesome portal gun model and moral support.
SYNTHES1SE provides moral support.
Enumerator for raycasting code.
bdking00 for sound stuff.
Mark Aoki is always at the top of the list.
Pablo Puchol and Carlos Puchol.
Dubmosphere helps me update my code
Donor
rappo
Eric Meyers
Change log
V2.3:
Quick solution
This mod is a work in progress! I will continue adding and fixing features as time goes on.
Please leave all the feedback you can, and feel free to ask me any questions!
Source code on GitHub
This mod brings in the famous Portal Guns from the Portal series to GTAV! Use the heavy pistol to shoot the orange portal, and hold T while shooting to
shoot the blue portal. Depending on the sound you hear, you will know if the portal has been created or not. Also, you can see if your shot is going to hit if
the crosshair is white, or miss if the crosshair is grey. You can easily go in between the portals by just walking into them, driving into them, or even
pressing "K" and "L" to go directly to the blue and orange portals, respectively. You can grab entities with E to move them around, and also press Y to spawn an orange portal on the moon, or hold T and press Y for a blue portal. Have fun!
TODO
Detect if above/below/to the side to apply correct physics
Actual models for long fall(contact me if you can help with this)
Train support
Fix teleporting bigger vehicles
More toys? (i.e. companion cube, gels, turrets, or faith plates) Not sure if that should be a separate thing...
Requirements
Script Hook V
Script Hook V.NET
OpenIV
Installation …
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- There is no universal mod manager for this game: some mods replace game files directly, some go into a game-specific Mods folder, and some need a game-specific community loader or tool first — follow the bundled readme.
- Place the files exactly as the readme says; mods with listed dependencies need those installed too.
- Launch the game to confirm it loaded; some games require enabling mods in settings or an in-game mod menu.
Install locations vary a lot between games and mods — the bundled readme is the most reliable guide.