Garry's Mod

Garry's Mod

199 ratings
TTT - Portable Tester
 
Rate  
Favorite
Favorited
Unfavorite
Type: Weapon, Addon
Tags: Fun, Roleplay
File Size
Posted
Updated
0.008 MB
Dec 20, 2013 @ 4:59am
Oct 20, 2017 @ 3:56am
7 Change Notes ( view )

Subscribe to download
TTT - Portable Tester

Subscribed
Unsubscribe
In 1 collection by NicklePickle!
FadedServers TTT Collection
20 items
Description
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
< >
58 Comments
Stamano Dec 24, 2018 @ 4:06pm 
thanks
NicklePickle!  [author] Jan 12, 2017 @ 7:02pm 
It is live
NicklePickle!  [author] Jan 12, 2017 @ 6:36pm 
An update featuring an alternative use for the fake tester will be coming out today.
▓▒░Fappy McFaperson░▒ Jan 10, 2017 @ 9:49am 
Thanks! That did the trick
NicklePickle!  [author] Jan 9, 2017 @ 2:26pm 
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░▒ Jan 9, 2017 @ 2:15pm 
I don't see a message in chat anymore that someone is inno/T
ESIDISI Jan 8, 2017 @ 2:48am 
Thank you
NicklePickle!  [author] Jan 7, 2017 @ 10:27pm 
Update is live.
NicklePickle!  [author] Jan 7, 2017 @ 4:29pm 
Ok, all commands are working now and I added a couple of features. Update will be pushed soon
NicklePickle!  [author] Jan 6, 2017 @ 3:23pm 
Really? Never had anyone complain before. I'll get on it later this afternoon as I am busy at the moment.