Skip to content

Macosaro/GMod-Seamless-Portals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GMod-Seamless-Portals made with - mee++

Description

My seamless portals addon for Garry’s mod. This is a mod that adds an entity called the Seamless Portal, and a functioning portal gun! You can spawn the Portals in the spawn menu, or by using the portal gun in the weapons tab.

Installation

To install this addon, download and unzip the contents and put it in your Garry’s mod addon folder

Features

  • More seamless
  • Working wall & floor portals
  • Prediction for multiplayer & players with high ping
  • Floor extrusion if your player gets stuck in the ground
  • Sounds travel through
  • Black skybox fix
  • Optimized util.TraceLine implementation
  • Includes non janky portal gun
  • Includes some tools to play with
  • Option for scalable portals to resize the player (using my player resizer)

BEST RESULTS ARE IN A LOCAL SERVER BECAUSE I CANT DO PREDICTION IN SINGLEPLAYER!

Useful links

Developer API

Setters (SERVER ONLY) Description
ents.Create("seamless_portal") Creates a portal entity
portal:LinkPortal(portal2) Links 2 portals together
portal:SetSize(vector) Sets the size of the portal in source units
portal:SetDisableBackface(bool) Disables/Enables the back material on the portal
portal:SetRemoveExit(bool) Sets whether the exit portal should be removed when the original is deleted (make sure to call this on both portals!)
Getters (SHARED) Description
portal:GetSize() Self-explanatory, default is Vector(50, 50, 8)
portal:GetExitPortal() Gets the portal's exit, nil or NULL entity if there is none
portal:GetDisableBackface() Self-explanatory, default is false
portal:GetRemoveExit() Self-explanatory, default is false

Credits

  • Fafy2801 for finding a fix for the black skybox
  • PeteBroccoli for improving the networking system
  • WasabiThumb for fixing a black halo glitch & adding util.TraceLine functionality
  • WasabiThumb for also making a 'portal creator & linker' tool
  • dvdvideo1234 for making accurate portal gun surface angles & some optimizations

About

My seamless portals addon for garrys mod

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%