Each round after detectives are chosen, a percentage of the remaining players will be part of the traitor team. A fraction of those players have a chance to be a special traitor, and the others will each be a .
The following ConVars can be used to configure the requirements and restrictions on how traitors spawn.
ConVar | Default | Type | Description |
---|---|---|---|
ttt_traitor_pct | 0.25 | Float (0-1) | Vanilla TTT ConVar - Percentage of players, rounded up, that will spawn as a member of the traitor team. |
ttt_traitor_max | 32 | Integer | Vanilla TTT ConVar - The maximum number of players that can spawn as a member of the traitor team. |
ttt_special_traitor_pct | 0.33 | Float (0-1) | Percentage of traitors, rounded up, that have the chance to spawn as a special traitor. |
ttt_special_traitor_chance | 0.5 | Float (0-1) | The chance that a special traitor will spawn in each individual slot made by ttt_special_traitor_pct . |
Example: There are eight players in the game. ttt_traitor_pct
is 0.25, ttt_special_traitor_pct
is 0.33, and ttt_special_traitor_chance
is 0.5 as per the default values above. 25% of the players in the game (rounded up) will spawn as members of the traitor team as ttt_traitor_pct
is set to 0.25. This means there will be two players that are members of the traitor team. At most 33% of the traitor team (rounded up) can be special traitors as ttt_special_traitor_pct
is set to 0.33. This means that there will be at most one special traitor. However, that player only has a 50% chance to be a special traitor as ttt_special_traitor_chance
is set to 0.5. This means it is possible for the round to have zero or one special traitor. All remaining members of the traitor team will each be a .
If you wanted it to be possible for all members of the traitor team to be special traitors at once, set ttt_special_traitor_pct
to 1. Alternately, if you always wanted the same number of special traitors in each round with no variation, set ttt_special_traitor_chance
to 1. Setting either ttt_special_traitor_pct
or ttt_special_traitor_chance
to 0 will make it impossible for special traitors to spawn.
Additionally, members of the traitor team are able to earn credits to spend in the shop. The following ConVars can be used to configure how credits are earned.
ConVar | Default | Type | Description |
---|---|---|---|
ttt_credits_award_pct | 0.35 | Float (0-1) | Vanilla TTT ConVar - When this percentage of non-traitor, non-jester players are dead, members of the traitor team are awarded a number of credits equal to ttt_credits_award_size . |
ttt_credits_award_size | 1 | Integer | Vanilla TTT ConVar - The number of credits awarded to members of the traitor team when the percentage determined by ttt_credits_award_pct of non-traitor, non-jester players are dead. |
ttt_credits_award_repeat | 1 | Boolean | Vanilla TTT ConVar - Whether the credit award determined by ttt_credits_award_pct and ttt_credits_award_size is handed out multiple times. (e.g. If ttt_credits_award_pct is 0.25, member of the traitor team will be awarded credits at 25% killed, 50% killed, and 75% killed.) |
ttt_credits_detectivekill | 1 | Integer | Vanilla TTT ConVar - The number of credits a member of the traitor team will receive if they kill a detective. |
ttt_traitors_credits_timer | 0 | Integer | How often in seconds to give members of the traitor team a credit. (Set to 0 to disable.) |
Finally the following miscellaneous ConVars can be used to configure options that apply to all members of the traitor team.
ConVar | Default | Type | Description |
---|---|---|---|
ttt_traitors_vision_enabled | 0 | Boolean | Whether members of the traitor team can see other members of the traitor team through walls via a highlight effect. |
Instructions for using ConVars can be found on the Configuring ConVars tutorial page, and ConVars specific to configuring each role can be found below.