Garry's Mod

Garry's Mod

34 ratings
[TTT2] Clairvoyant [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
360.789 KB
9 Apr, 2018 @ 12:16pm
10 Oct, 2023 @ 8:59am
38 Change Notes ( view )

Subscribe to download
[TTT2] Clairvoyant [ROLE]

In 1 collection by Alf21
TTT2-Testing
58 items
Description
Looking at the aura of players surrounding him everything becomes clear for him. Finally someone will be able to stop all these lies.

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] and submit new role ideas here[github.com]. A list of all currently available roles can be found here.

Discord: https://discord.gg/Npcbb4W
Source: https://github.com/TTT-2/ttt2-role_cv




The clairvoyant is an innocent that sees special roles. This includes all special inocent and traitor roles as well as all other special roles in the round. Special roles are all roles besides the normal innocent, traitor and detective. They don't see the special role, they only see if they have one or not.
The amount of roles that the clairvoyant can see can be set with a convar.

Additionally in combination with the sidekick and the jester, they can kill the jester as the only player without receiving a penalty or triggering the jesters winstate! After their death, the jester will immedially respawn as a sidekick of the clairvoyant.

Plays best with:




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_clairvoyant_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_clairvoyant_pct [0.0..1.0] (default: 0.13) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_clairvoyant_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_clairvoyant_random [0..100] (default: 100) # the amount of players needed for this role to spawn ttt_clairvoyant_min_players: [0..n] (default: 8)

Rolespecific Convars:
# the percentage of visible player's roles" ttt2_cv_visible [0..n] (default: 100)

--
Credits:
Alf21: creator of this role addon
Mineotopia: designer of the role icon
20 Comments
TheEnhancedExe 17 Mar, 2023 @ 10:31am 
Can you add an option to set a maximum number of visible roles? That way, you could set a constant number of visible roles that isn't determined by the amount of special roles that got chosen in a particular round.

For example you could set it to 1 and no matter whether there's 2 or for example 5 special roles, the clairvoyant would only be able to see one player with a special role even if you put the percentage to 100%. This is currently not possible with only percentages.
Tim | Mineotopia  [author] 17 Jul, 2021 @ 10:16am 
could you open an issue on GitHub? Because it is hard to keep track of issues when they are only here in the comments. Thanks!
Tim | Mineotopia  [author] 4 Jul, 2021 @ 9:18am 
@Catherine: Is there an error?
Tim | Mineotopia  [author] 17 Dec, 2020 @ 3:56am 
you can set the percentage (ttt2_cv_visible). Maybe yours isn't 100%?
Leo 17 Dec, 2020 @ 3:55am 
so is this still bugged? i have everything set up working fine, every other role work fine for me but clairvoyant just doesnt work, clairvoyant dont see other clairvoyant as special roles first of all, i also had instances of clairvoyant not seeing some roles such as trapper or lycanthrope sometimes, but some other times it work perfectly
Nintend 2 Mar, 2020 @ 4:46pm 
So I tried ttt2_clairvoyant_mode but it doesn't seem to be a command. I tried "ttt" instead of "ttt2", I tried "cv" instead of "clairvoyant" and also checked the list of ConVars that are supplied while using the TTT2 ULX menu and it wasn't there. There was "ttt2_cv_visible [0-100]" which should presumably fix my problem, but it only vaguely worked at the default 100 (like with the ability to tell that Infected people had a special role but not exactly what it was, but this didn't remotely work with any other role).

Guess I have conflicting addons or something, oh well. I really like the concept of this role!
Nintend 2 Mar, 2020 @ 3:03pm 
I'll try again later today, but it said that the command didn't exist. Probably a typo, thanks for the help to both of you!
Alf21  [author] 2 Mar, 2020 @ 3:22am 
You can switch the mode with the ConVar mentioned here in the description :)
Tim | Mineotopia  [author] 1 Mar, 2020 @ 2:45pm 
You can see special roles, so no innocents, traitors and detectives
howeber the other roles mentioned by you should work
Nintend 1 Mar, 2020 @ 2:39pm 
What roles are supposed to be seen by the Clairvoyant? I think that Clairvoyant is supposed to tell if someone has a special role instead of seeing their exact role, but not even that works for me. The role that Clairvoyant can see is Infected. I have visibility at 100% and am confused as to why I can't see Innocents, Jackals, Sidekicks, Survivors, Serialkillers, Spies, Traitors, Jesters, etc..

Do you know of something that I could be missing or doing wrong?