Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Rat [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
390.307 KB
5 Jun, 2024 @ 2:07pm
11 Aug, 2024 @ 4:35pm
9 Change Notes ( view )

Subscribe to download
[TTT2] Rat [ROLE]

In 1 collection by cheezbawlz
krunkttt
101 items
Description
The Rat has finally opened up and joined the light side. And he's willing to pay the price of freedom, His life or theirs.

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/RatTTT2



The Rat is a new innocent role. He suddenly remembers who one evil traitor is sometime into the round. But be careful! When the Rat remembers the name of a Traitor, he will become exposed, meaning the Traitors can see him through walls and will kill him quickly.

A message will show up in the middle of The Rat's screen when a configurable timer ends, informing them of the one traitor's identity, and the impending chaos.

This can make for an interesting Cat and Mouse chase where The Rat must turn to some form of safety, while the Traitors are in a race against time to end their ex-Traitor buddy.


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_rat_enabled [0/1] (default 1) # the percentage of players that are spawned as this role ttt_rat_pct [0.0..1.0] (default 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_rat_max [0..n] (default 1) # the probability each round of this role being spawned at all ttt_rat_random [0..100] (default 33) # the amount of players needed for this role to spawn ttt_rat_min_players [0..n] (default 6)

Rat Specific Convars (also found in ULX)
# the time it takes for the rat to realize one traitor, and for the traitors to start tracking the rat (in seconds) ttt2_rat_traitor_reveal_timer (def. 120) # whether or not traitors should instantly see the rat or wait until the reveal timer ttt2_rat_instant_expose (def. 0)

--
Credits
milkwater: Coding
cheezbawlz: Coding and Role Idea
Adrien Coquet: Rat icon, from the Noun Project
4 Comments
Combex 17 Jul, 2024 @ 2:41am 
thx! nice work!!!! :physgun::physgun::physgun:
cheezbawlz  [author] 17 Jul, 2024 @ 2:11am 
@Combex Its been added to the F1 menu.
cheezbawlz  [author] 16 Jul, 2024 @ 9:06pm 
@Combex I'll look into it!
Combex 15 Jul, 2024 @ 6:27am 
To counter this role, we thought it would be nice if the traitor could see the rat before the rat even knew about the traitor.
It would be great if this time could be set using Convars.