Garry's Mod
228 人が評価
TTT - Portable Tester
   
アワード
お気に入り
お気に入り
お気に入りから削除
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Roleplay
ファイルサイズ
投稿日
更新日
8.505 KB
2013年12月20日 4時59分
2017年10月20日 3時56分
7 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
TTT - Portable Tester

mouse bites 作成の 1 件のコレクション
FadedServers TTT Collection
20 アイテム
解説
The New Improved Portable Tester!

This item was inspired by two items on 420server's TTT server. www.420servers.com

This addon includes two items: A Portable Tester, and a Fake Portable Tester.

The Portable Tester is dropped by a detective, and has max of 3 uses by default. If an innocent uses it, it'll glow green for 5 seconds (configurable), and also announces to everyone if theyre proven or not (configurable). If theyre a traitor, it'll glow red and etc.

The fake tester is the COMPLETE opposite.

There are 12 convars:

ttt_ttester_delay (Default: 1) - How long the glowing stays, and how long inbetween uses.
ttt_ttester_dstring (Default: "Your portable tester has been destroyed!") - The string used when your portable tester is destroyed.
ttt_ttester_dmglog (Default: 1) - Do you want damage done to the tester to be logged in ttt_print_damagelog?
ttt_ttester_chatlog (Default: 0) - Announcement of their proven status after use.
ttt_ttester_ilog (Default: "%s is an innocent. Protect him!") - Text used in chatlog when its an innocent (Or a traitor in a fake tester)
ttt_ttester_tlog (Default: "%s is a traitor! Kill him!") - Text used in chatlog when its a traitor (Or an innocent/detective in a fake tester)
ttt_ttester_talarm (Default: 1) - If a traitor is detected, play an alarm?
ttt_ttester_ambience (Default:1) - Ambience noise when its existing?
ttt_ttester_ialarm (Default: 1) - Same as talarm, but, for innocents.
ttt_ttester_uses (Default: 3) - The amount of uses until the tester destroys itself.
ttt_ttester_multi (Default: 0) - Whether people can use the tester multiple times in a round
ttt_ttester_explode (Default: 0) - Should the fake tester explode on use?


WARNING: THIS COMES WITH CUSTOM CONTENT. Add this following code to a server-side file if you want to force download on join:
resource.AddResource("materials/vgui/ttt/icon_cust_porttester.png")


Report bugs in the comments. Update should be live within a day or two. Cheers!


Thanks to:
Pootis Power - For helping on what to add
Tropical Trail Mix - For the original idea (and a tiny little amount of copy and paste code because im lazy). RIP his servers
GitHub - https://github.com/Xenomorph-King/PortableTester
62 件のコメント
Blõod 2021年12月14日 6時55分 
Hey man I was looking into your code and I would appreciate you let me port this item to TTT2. Could I use your code and reupload with TTT2 compatibility? Thx!
Leonader 2020年5月17日 2時12分 
That's great! Thanks for answering!
mouse bites  [作成者] 2020年5月17日 1時28分 
Just like the normal portable tester, detectives cannot use the fake tester. It will make the same error noise too.
Leonader 2020年5月12日 9時35分 
What hapens when a detective tries to use a fake tester?
Stamano Panano 2018年12月24日 16時06分 
thanks
mouse bites  [作成者] 2017年1月12日 19時02分 
It is live
mouse bites  [作成者] 2017年1月12日 18時36分 
An update featuring an alternative use for the fake tester will be coming out today.
Fappy McFaperson 2017年1月10日 9時49分 
Thanks! That did the trick
mouse bites  [作成者] 2017年1月9日 14時26分 
I think I might have made the default 0 for the chat log. You can re-enable it by changing ttt_ttester_chatlog to 1
Fappy McFaperson 2017年1月9日 14時15分 
I don't see a message in chat anymore that someone is inno/T