Garry's Mod

Garry's Mod

评价数不足
TTT-Portable Tester 1 Test
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
文件大小
发表于
8.459 KB
2017 年 4 月 22 日 下午 1:35
1 项改动说明 ( 查看 )

订阅以下载
TTT-Portable Tester 1 Test

在 Megaherox 的 1 个合集中
TTT-Server
129 件物品
描述
!Not my ADDON. !

You want 1 test per Round/Detective add ttt_ttester_uses 1 to your Server.cfg (server config)

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). Seriously. Go play on his servers. www.420servers.com I'm not being paid to say this either :)
Me - Well...
4 条留言
White 2022 年 9 月 12 日 下午 6:21 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life. TIC TOC
Megaherox  [作者] 2017 年 7 月 27 日 下午 12:04 
Кузька Детектив add ttt_ttester_uses 1 to your Server.cfg
Megaherox  [作者] 2017 年 7 月 27 日 下午 12:03 
Кузька Детектив yeah
Baddest. Unpwnable. 2017 年 7 月 27 日 上午 11:31 
Can you make version with 2 test?