Garry's Mod

Garry's Mod

Not enough ratings
[TTT/2] Invert Gun
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
File Size
Posted
Updated
191.906 KB
26 Aug, 2024 @ 7:49am
30 Aug, 2024 @ 12:55am
7 Change Notes ( view )

Subscribe to download
[TTT/2] Invert Gun

In 2 collections by Suchti On Tour
Suchti - TTT2 Server Kollektion
326 items
TTT2 - Suchti Creations
4 items
Description
This is the Invert Gun for Trouble in Terrorist Town 2 (TTT2).

Weapon for: Traitor, can be modified in the shop editor if needed for other roles. If the weapon doesn't appear in the shop, it needs to be manually added using the shop editor.

This item has been tested with TTT2 and should work as intended. Compatibility with the original TTT (TTT1) is unknown.

What Does It Do?
This weapon inverts the movement controls of the target player for a short duration, causing them to move in the opposite direction of their intended movement.

Effect
  • Inverts the movement controls of the target player for a short duration.
  • Causes the target to move in the opposite direction of their intended movement.

ConVars
Name
Description
ttt_invertgun_duration (Def. 20)
Duration of the inversion effect applied to the target.
For TTT1:
Adjust duration via the console or server.cfg, e.g.: ttt_invertgun_duration <value>



If you run into any issues or have feedback, just drop a comment.

Credits
Item idea: Equonoxx
My other creations: Link to my Workshop Creations

10 Comments
wget 15 Feb @ 5:34am 
the gun doesn't work if you have like >50 ping and the target is moving, also it wont play the animations, please respond if you are interested in fixing this addon
Suchti On Tour  [author] 30 Aug, 2024 @ 12:49am 
@sid Hey, that's strange, I didn't touch the icon, so everything should actually work. I just tried it on my local and dedicated server, and the icon is displayed on both. Have you tried restarting the server (if it's dedicated), unsubscribing and resubscribing to the workshop item, or trying to clear the cache (server and client)?
psych2blow 29 Aug, 2024 @ 9:52pm 
Purple & pink icon in traitor menu now
Suchti On Tour  [author] 29 Aug, 2024 @ 5:27pm 
@sid Thank you for sharing the error code. Since I couldn't reproduce the error myself, it's a bit of a try-and-error approach.

I've pushed another update that will hopefully fix the issue!

Please feel free to reach out again if the error is resolved, or if it persists. If it happens again, maybe another error code or same, then send it, and try to explain what was happening in the game at the time, like if the target was shot at the same time or if they died, etc. that all would help to fix the issue if its still there 😊

I assume the error isn't game-breaking and that the weapon still works as intended? If that's the case, it's positive news as the game isn't negatively impacted by it for now.
If the problem persists, I'll do my best to eliminate this error. I hate errors 😡
psych2blow 29 Aug, 2024 @ 3:17pm 
Here Line 155 Attempt To Index Local 'Target' (A Nil Value)
Suchti On Tour  [author] 29 Aug, 2024 @ 10:41am 
Just pushed an update!
The Invert Gun should now be compatible with both TTT1 and TTT2.
I have tested the weapon in both versions without any errors. If further errors occur, it could be due to conflicts with other addons.

If you experience any issues, please post the errors, when they happen, along with the version of TTT you're using.
Your feedback is appreciated!
Suchti On Tour  [author] 29 Aug, 2024 @ 9:36am 
Guys, it doesn't help me much if you just say you have errors but don't post the errors in the comments or mention which TTT version you're using. I don't have any problems or errors on my server. So please post your TTT version (TTT1/TTT2) and the error log; otherwise, there's not much I can do. Thank you
ferret 29 Aug, 2024 @ 1:04am 
i have errors
Suchti On Tour  [author] 26 Aug, 2024 @ 12:21pm 
@VigoVigo
Hey, I just tested it on my server and I'm not getting any script errors, and the weapon is working. Can you explain what error it's showing? Maybe I can figure out what's causing the problem that way.
suffix 26 Aug, 2024 @ 11:29am 
when opening a traitor's store, it creates script errors