Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Undercover Agent [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
354.328 KB
18 Sep, 2024 @ 6:44am
18 Sep, 2024 @ 12:38pm
2 Change Notes ( view )

Subscribe to download
[TTT2] Undercover Agent [ROLE]

In 3 collections by RyuzakiEE
Server Files TTT
259 items
ttt xmas
196 items
Spooky TTT
229 items
Description
Finding themself in a dire situation, they feel forced to blow their own cover.

You have to use TTT2 in order to use this role. Additionally using ULX for TTT2 is recommended. A list of all currently available roles can be found here.

Discord: https://discord.gg/Npcbb4W




The undercover agent is an enhanced innocent. In the event that a detective dies, they will reveal themselfs as a new detective.

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_undercoveragent_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_undercoveragent_pct [0.0..1.0] (default: 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_undercoveragent_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_undercoveragent_random [0..100] (default: 30) # the amount of players needed for this role to spawn ttt_undercoveragent_min_players: [0..n] (default: 5)

--
Credits:
Based on the deputy role from Custom Roles for TTT
1 Comments
milomaractus 10 Dec, 2024 @ 1:38pm 
compatibility with the "defective" role would be awesome! maybe an option where if the defective dies, the undercover agent still becomes a detective