Garry's Mod

Garry's Mod

352 ratings
TTT - Portal Gun for Traitor/Detective
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
File Size
Posted
Updated
28.497 MB
10 Dec, 2020 @ 2:08pm
29 Apr @ 12:09pm
10 Change Notes ( view )

Subscribe to download
TTT - Portal Gun for Traitor/Detective

Description
This is an improved version of the TTT Portal Gun Addon originally made by ώħèâţļèŷ and Keigun ( https://gtm.you1.cn/sharedfiles/filedetails/?id=494644385 ).

Here's what I fixed:
- Removed cooldown on the first portal, allowing the endless portal fall
- Made players keep their local angle when teleporting
- Made players keep their local velocity when teleporting
- Optimized teleported player position in various cases
- Introduced minimum output speed when both portals are on ground
- Introduced maximum downward velocity to avoid dying in the endless portal fall
- Removed rotation of portal "camera" (it just didn't look good)
- Stretched portal texture to look more realistic
- Changed portal camera FOV based on distance from portal to look more realistic
- Adapted sound volume to dampen with the player's increasing speed
- Fixed portals spawning inside each other

Open source code can be found here: https://github.com/doodlezucc/ttt_portal_gun
Popular Discussions View All (1)
6
11 Jan, 2023 @ 11:47pm
let me help u
doodlezucc
23 Comments
epicgamerdude54 25 Aug @ 4:31am 
The error/issue where the use key doesn't pick up entities and breaks the other modes if you're hosting locally and have to disable the addon.
doodlezucc  [author] 29 Apr @ 12:11pm 
The error previously mentioned by mexikoedi should now be fixed :)
mexikoedi 7 Apr @ 11:18am 
Hi, just wanted to notify you that I created a new issue on GitHub.
Would be nice if you could look into it when you have time.
Xopez 29 Jan @ 10:58am 
Thanks for the fix :)
doodlezucc  [author] 28 Jan @ 9:09am 
Hi everyone, the error described in the previous two comments should be handled correctly now in the latest update (I wasn't able to reproduce the issue, but this should fix it). Thanks for the reports :)
Xopez 15 Jan @ 8:42am 
I have got the same error:
[TTT - Portal Gun for Traitor/Detective] lua/entities/portalgun_portal.lua:105: Tried to use a NULL entity!
1. GetNWEntity - [C]:-1
2. GetLinkedPortal - lua/entities/portalgun_portal.lua:105
3. SimulatePortal - lua/entities/portalgun_portal.lua:161
4. fn - lua/autorun/client/cl_portals.lua:12
5. unknown - lua/ulib/shared/hook.lua:109
imendezr 7 Jan @ 4:48pm 
[ulib] lua/entities/portalgun_portal.lua:105: Tried to use a NULL entity!
1. GetNWEntity - [C]:-1
2. GetLinkedPortal - lua/entities/portalgun_portal.lua:105
3. SimulatePortal - lua/entities/portalgun_portal.lua:161
4. fn - lua/autorun/client/cl_portals.lua:12
5. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
doodlezucc  [author] 16 Oct, 2023 @ 10:21am 
@mexikoedi yeah for sure, I'll look into it! Nice to know you're still using the portal gun addon.
mexikoedi 15 Oct, 2023 @ 12:20pm 
Spectators can enter a portal and also cause the "portal sound".
Could this be fixed?
doodlezucc  [author] 6 Sep, 2023 @ 1:45pm 
Thanks to EntranceJew's edits, a convar is now available that controls the hitbox mask when shooting portals :)