Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Announcer [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
352.677 KB
30 Jun, 2024 @ 8:07pm
1 Change Note ( view )

Subscribe to download
[TTT2] Announcer [ROLE]

In 1 collection by milkwater
milkwater & cheezbawlz TTT2 roles
16 items
Description
Ka-ching! Another purchase... The Announcer clears his throat, ready to announce it.

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



A new Detective for your servers! The Announcer will, well, announce when a player buys something from the shop. However, this only works when the Announcer is alive. Traitors must be wary buying their gear before defeating the Announcer, or else Innocent players will be alerted!

The only information that gets revealed in the announcement is the name of the item. The player who bought it is still hidden.




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

--
Credits
milkwater: Coding
WEBTECHOPS LLP: Megaphone icon, from the Noun Project