Garry's Mod

Garry's Mod

TTT - Portal Gun for Traitor/Detective
23 Comments
epicgamerdude54 25 Aug, 2024 @ 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, 2024 @ 12:11pm 
The error previously mentioned by mexikoedi should now be fixed :)
mexikoedi 7 Apr, 2024 @ 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, 2024 @ 10:58am 
Thanks for the fix :)
doodlezucc  [author] 28 Jan, 2024 @ 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, 2024 @ 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, 2024 @ 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 :)
EntranceJew 5 Sep, 2023 @ 8:27am 
Heads up, I sent a PR just to add a convar for the shot mask. Portals adding themselves to the PVS when they get out of bounds can cause problems with blacking out the entire level for other clients.
doodlezucc  [author] 30 Aug, 2022 @ 4:03am 
Alright, mexikoedi's fix has been merged and is included in the latest update. Big thanks to both of you for the thorough report! (sorry it took a little while, I haven't checked my steam inbox)
rafuet 21 Aug, 2022 @ 11:53am 
I can confirm mexikoedi's issue, here's a video of the issue if if helps: https://rafa.s-ul.eu/fhSV9MDC.mp4

Thanks for maintaining this great addon, doodlezucc!
mexikoedi 21 Aug, 2022 @ 11:44am 
Hi, I noticed that this addon causes a weird pickup issue on my server if it is installed.
No errors in the console.
Maybe this has something to do with your last pick up update?
There was also a Gmod update: https://github.com/Facepunch/garrysmod/pull/1878/commits/a5d51fc4514f15427b3d6d2ea11e27c94838b16c

Example:
If I have a M16 in my inventory and I want to pickup a M14 with the use button ("E") then the M16 is switched with the M14 like it should but the M16 is now in the air and hold by me (like Magneto Stick pick up).
doodlezucc  [author] 21 Jul, 2022 @ 3:10am 
Hey rafuet, I just released an update which contains a bug fix and overall some performance optimization. Thanks for the report!
rafuet 19 Jul, 2022 @ 11:49am 
I keep getting lua errors in every gamemode when pressing E in some objects:

[[TTT] Portal Gun for Traitor/Detective] lua/includes/extensions/table.lua:102: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. HasValue - lua/includes/extensions/table.lua:102
3. fn - lua/weapons/weapon_portalgun.lua:105
4. unknown - lua/ulib/shared/hook.lua:109 (x7)
doodlezucc  [author] 11 Jan, 2021 @ 1:35pm 
Thanks for pointing this out, I fixed the link ^^
Dell Conagher 8 Jan, 2021 @ 3:53am 
Keigun blocked :c :steamthumbsdown:
doodlezucc  [author] 18 Dec, 2020 @ 9:57am 
@booboy01kiddo613 Please refer to the let me help u thread if you encounter any problems.
(also, why do @'s not work on steam)
SonicTheSpeedsterpro 17 Dec, 2020 @ 8:55pm 
dis dose not work for me and i have windows 10
doodlezucc  [author] 16 Dec, 2020 @ 5:06pm 
Hey @Bacon_Bitz27 I actually tried to implement this and in theory, it does already work. Garry's Mod, however, doesn't handle this correctly and displays black skyboxes or makes your portal gun disappear in the viewport. You could only work around this by setting a parameter in Steam manually and writing "r_novis 1" in the console. I also know for a fact that this does only work on Windows. Because I wanted to support Linux though, I simply decided to drop the advanced stuff and settle for a much easier approach. No stencils, no masking, just a simple render texture.
MarKEY 13 Dec, 2020 @ 5:39pm 
Would it be impossible to recreate the portal effect perfectly?
I don't know how to code but I watched this video about recreating the portal gun and it was very cool.

https://www.youtube.com/watch?v=_SmPR5mvH7w
Komiffol 11 Dec, 2020 @ 9:25am 
I like Portal Gun
:steamsalty: