Each round a percentage of players will be chosen as detectives. A fraction of those players have a chance to be a special detective, and the others will each be a .
The following ConVars can be used to configure the requirements and restrictions on how detectives spawn.
ConVar | Default | Type | Description |
---|---|---|---|
ttt_detective_pct | 0.13 | Float (0-1) | Vanilla TTT ConVar - Percentage of players, rounded up, that will spawn as a detective. |
ttt_detective_max | 32 | Integer | Vanilla TTT ConVar - The maximum number of players that can spawn as a detective. |
ttt_detective_min_players | 8 | Integer | Vanilla TTT ConVar - The minimum number of players required to spawn detectives. |
ttt_detective_karma_min | 600 | Integer | Vanilla TTT ConVar - The minimum amount of karma required for a player to be selected to spawn as a detective. |
ttt_special_detective_pct | 0.33 | Float (0-1) | Percentage of detectives, rounded up, that have the chance to spawn as a special detective. |
ttt_special_detective_chance | 0.5 | Float (0-1) | The chance that a special detective will spawn in each individual slot made by ttt_special_detective_pct . |
Example: There are eight players in the game. ttt_detective_pct
is 0.13, ttt_special_detective_pct
is 0.33, and ttt_special_detective_chance
is 0.5 as per the default values above. 13% of the players in the game (rounded up) will spawn as detectives as ttt_detective_pct
is set to 0.13. This means there will be two players that are detectives. At most 33% of those detectives (rounded up) can be special detectives as ttt_special_detective_pct
is set to 0.33. This means that there will be at most one special detective. However, that player only has a 50% chance to be a special detective as ttt_special_detective_chance
is set to 0.5. This means it is possible for the round to have zero or one special detective. All remaining detectives will each be a .
If you wanted it to be possible for all detectives to be special detectives at once, set ttt_special_detective_pct
to 1. Alternately, if you always wanted the same number of special detectives in each round with no variation, set ttt_special_detective_chance
to 1. Setting either ttt_special_detective_pct
or ttt_special_detective_chance
to 0 will make it impossible for special detectives to spawn.
Additionally, detectives 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_det_credits_traitorkill | 0 | Integer | Vanilla TTT ConVar - The number of credits detectives receive when they kill a traitor. |
ttt_det_credits_traitordead | 1 | Integer | Vanilla TTT ConVar - The number of credits detectives receive when a traitor dies. |
ttt_detectives_credits_timer | 0 | Integer | How often in seconds to give detectives a credit. (Set to 0 to disable.) |
ttt_detectives_search_credits | 0 | Integer | How many credits a detective should get for searching a corpse. (Set to 0 to disable.) |
ttt_detectives_search_credits_friendly | 0 | Boolean | Whether detectives should get credits for searching friendly corpses |
ttt_detectives_search_credits_share | 0 | Boolean | Whether all detectives should get credits for searching corpses. If disabled, only the searching detective gets credits |
Detectives also have the ability to search bodies and uncover information about dead players and how they died. The following ConVars can used to configure what information is available to which players.
ConVar | Default | Type | Description |
---|---|---|---|
ttt_all_search_postround | 1 | Boolean | Whether non-detectives can search bodies post-round. |
ttt_all_search_binoc | 0 | Boolean | Whether non-detectives can search bodies if they are using binoculars. |
ttt_all_search_dnascanner | 0 | Boolean | Whether non-detectives can search bodies if they are holding the DNA scanner. |
ttt_detectives_corpse_call_expiration | 45 | Integer | How many seconds before detective corpse calls should expire. Set to 0 to disable. |
ttt_detectives_disable_looting | 0 | Boolean | Whether to disable a detective role's ability to loot credits from bodies. |
ttt_detectives_search_only | 1 | Boolean | Whether only detectives can search bodies. |
ttt_detectives_search_only_* | 0 | Boolean | Whether only detectives can reveal specific information from a body. Once a detective searches a body, this information will be available to all players. Replace * with any of the following:
ttt_detectives_search_only to be disabled.)
|
Finally the following miscellaneous ConVars can be used to configure options that apply to all detectives.
ConVar | Default | Type | Description |
---|---|---|---|
ttt_detectives_glow_enabled | 0 | Boolean | Whether detectives and detective-likes can see other detectives and detective-likes through walls via a highlight effect. |
ttt_detectives_hide_special_mode | 0 | Integer (0-2) | How to handle special detective role information:
|
ttt_special_detectives_armor_loadout | 1 | Boolean | Whether special detectives get armor automatically for free. (Regular detectives always get body armor for free.) |
Instructions for using ConVars can be found on the Configuring ConVars tutorial page, and ConVars specific to configuring each role can be found below.