Garry's Mod

Garry's Mod

评价数不足
[TTT/2] Invert Gun
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐
文件大小
发表于
更新日期
191.906 KB
2024 年 8 月 26 日 上午 7:49
2024 年 8 月 30 日 上午 12:55
7 项改动说明 ( 查看 )

订阅以下载
[TTT/2] Invert Gun

在 Suchti On Tour 的 2 个合集中
Suchti - TTT2 Server Kollektion
327 件物品
TTT2 - Suchti Creations
4 件物品
描述
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 条留言
wget 2 月 15 日 上午 5:34 
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  [作者] 2024 年 8 月 30 日 上午 12:49 
@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)?
cynic hole 2024 年 8 月 29 日 下午 9:52 
Purple & pink icon in traitor menu now
Suchti On Tour  [作者] 2024 年 8 月 29 日 下午 5:27 
@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 😡
cynic hole 2024 年 8 月 29 日 下午 3:17 
Here Line 155 Attempt To Index Local 'Target' (A Nil Value)
Suchti On Tour  [作者] 2024 年 8 月 29 日 上午 10:41 
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  [作者] 2024 年 8 月 29 日 上午 9:36 
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 2024 年 8 月 29 日 上午 1:04 
i have errors
Suchti On Tour  [作者] 2024 年 8 月 26 日 下午 12:21 
@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_chelog 2024 年 8 月 26 日 上午 11:29 
when opening a traitor's store, it creates script errors