Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Decipherer [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
404.792 KB
31 May, 2024 @ 1:14pm
27 Jul, 2024 @ 9:53pm
4 Change Notes ( view )

Subscribe to download
[TTT2] Decipherer [ROLE]

In 2 collections by milkwater
ChageTTT Server Collection
86 items
milkwater & cheezbawlz TTT2 roles
16 items
Description
The Decipherer shakes his head. How can he trust these other terrorists? He looked down at his new device and smiled.

You have to use TTT2 in order to use this role. Additionally using ULX for TTT2 is recommended. Report bugs concerning this role here[github.com]. A list of all currently available roles can be found here.

Discord: https://discord.gg/9njYXGY
Source: https://github.com/milkwxter/DeciphererTTT2



The Decipherer is a role that can replace the Detective. Instead of coming with a DNA Scanner, he spawns with the WH-B3 Minitester, which can reveal the role of a player that he uses it on after a short time. Once he uses it, it will go on a long cooldown. The Minitester can only be used 3 times before it runs out of ammo, so he must be careful who he uses it on.




Convars are variables that are introduced to allow server owners to customize the gameplay without changing the code. There are always a handful of convars automatically created by TTT2, that define the spawn parameters of this role and are found in ULX. Additionally there might be some role specific convars, which have to be set in the server config file.

Normal Role Convars (also found in ULX)
# enable or disable this role ttt_decipherer_enabled [0/1] (default 1) # the percentage of players that are spawned as this role ttt_decipherer_pct [0.0..1.0] (default 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_decipherer_max [0..n] (default 1) # the probability each round of this role being spawned at all ttt_decipherer_random [0..100] (default 33) # the amount of players needed for this role to spawn ttt_decipherer_min_players [0..n] (default 6)

Decipherer Specific Convars (also found in ULX)
# how long does his minitester take to recharge ttt2_decitester_charge_time [10..120] (default 40) # how much time does it take to confirm a role with the minitester ttt2_decitester_confirm_time [5..30] (default 10)

--
Credits
milkwater: Coding
zaqlul9595: More coding
Zhaficon: Fingerprint icon, from the Noun Project
5 Comments
MähnGiL 22 Sep, 2024 @ 4:26am 
oh! u commented! very thx, but it was just my falut THANK you make good role :)
milkwater  [author] 12 Sep, 2024 @ 2:56pm 
MähnGiL, Thank you for the comment. I went in game and tested it and it worked perfectly fine.

I feel like you might not have another detective role installed and therefore there is nothing to layer. Could you get back to me with the amount of detective roles you have installed?
MähnGiL 12 Sep, 2024 @ 9:44am 
This class does not appear in role layering in the Admin F1 menu. Does it overlap with detective work?
milkwater  [author] 2 Jul, 2024 @ 10:03am 
Combex, Thank you for the bug report I really appreciate it!

I have updated the addon and I believe I fixed the bug, it was hard to track down since it is a complex issue.
I also added feedback on who you scanned to the top right of the screen, and I added a sound that players can hear when you begin scanning so Traitors know if they just got scanned. :steamthumbsup:
Combex 2 Jul, 2024 @ 2:27am 
Sorry for reporting so many bugs, but I'll share it here.
You take on this role and use an ability.
If that role appears again in the next round and you use an ability, a notification will appear even though you're not that role.
And the name will still be the player you last looked up!

Also, as a balance adjustment suggestion, being able to investigate with one click without being noticed means traitors have fewer countermeasures. I think it would be good to be able to investigate by clicking and holding for about 3 seconds. It would be very helpful if the number of seconds here could be customized.

I'm not sure if this is grammatically correct, but I hope it gets across!