Portal Gun [.NET] 2.3

Featured .Net Weapons Open Source


Description


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
  1. Create a scripts folder in your GTAV game location if you have not done so already, and place PortalGun.cs, PortalGunSetings.txt, and the PortalResources folder in it.
  2. Using OpenIV, navigate to "update/x64/dlcpacks/patchday3ng/dlc.rpf/x64/models/cdimages/weapons.rpf" and place the modded files in there.
  3. Make sure you have downloaded the above, and place ScriptHookV.dll, dinput8.dll, OpenIV.asi, and ScriptHookVDotNet.asi in the main directory.


How to use
  1. Customize the settings file to your liking
  2. Shoot using a heavy pistol for an orange portal.
  3. Hold while shooting or press T for a blue portal.
  4. For added fun, press Y to put a portal on the moon.
  5. Walk through it, or make someone else walk through it.
  6. Grab entities while aiming with E to move them around
  7. Now you're thinking with portals!


Controls
  • "T" - Hold while shooting heavy pistol/press for blue portal.
  • "E" - Grab entities while aiming at them
  • "O" - Toggle the long fall boots.
  • "I" - Toggle being sucked in by moon
  • "K" - Teleport directly to the blue portal.
  • "L" - Teleport directly to the orange portal.
  • "B" - Spawn an random ped two feet in front of you.
  • "Y" - Spawn an orange portal on the moon (hold T for blue portal)


Thanks to
 Big thanks to Proudnoob4 for the awesome portal gun model and the moral support.
 SYNTHES1SE for moral support.
 Enumerator for raycast code.
 bdking00 for sound stuff.
 Mark Aoki is always on top.
 Pablo Puchol and Carlos Puchol.
 Dubmosphere for helping me update the code
 
Donators
  • rappo
  • Erick Meyers

Changelog
v2.3:
  • Quickfix

v2.2:
  • Fixed the off-center crosshairs
  • Now possible to go to the moon using Y or holding T while pressing Y

v2.1:
  • Updated to work with latest version of GTA
  • Minor fixes to moon

v2.0:
  • You can now shoot the moon between 21:00 and 5:59
  • You can grab entities
  • Crosshairs have been added
  • You can now shoot while falling (when ragdoll)
  • Infinite portal Gun Ammo
  • Portals will never pop

v1.0.1:
  • Added listing in config file for press to shoot blue portal or hold while shooting for blue portal

v1.0:
  • Bug Fixes
  • Drastically increased range
  • Portal Gun Model
  • Sound effects
  • Hitting a car/ped directly will teleport it to other portal
  • Portals pop less often

v0.1.1:
  • Added a config file for rebindable keys

v0.1:
  • This was a triumph
  • I'm making a note here, huge success

First Upload: November 16, 2024 Last Updated: November 16, 2024


0 Comments