Garry's Mod

Garry's Mod

Not enough ratings
TTT Random Traitor Count / Ratio
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
2.538 KB
23 Apr, 2020 @ 11:05am
28 Apr, 2020 @ 10:48am
3 Change Notes ( view )

Subscribe to download
TTT Random Traitor Count / Ratio

Description
About
This addon randomizes the traitor count/ratio for the Trouble in Terrorist Town game mode.
It also won't notify the players about the amount of traitors set.

! Only the host/server needs to download this plugin !

Available commands
* rtc_minval: Min number of traitors ( def 1 ) rtc_usepercentage needs to be 0 for this to be enabled.
* rtc_maxval: Max number of traitors ( def 3 ) rtc_usepercentage needs to be 0 for this to be enabled.
* rtc_usepercentage: Use percentages instead of 'raw' player numbers ( def 0 )
* rtc_enabled: Enables or disables the addon ( def 1 )

Extra, instead of traitor numbers a traitor ratio can be used. This needs to be between 0.0 and 1.0
* rtc_minpct: Min traitor percentage (def 0.20) Traitor number is calculated by: player count * rtc_minpct rounded down. rtc_usepercentage needs to be 1 for this to be enabled.
* rtc_maxpct: Max traitor percentage (def 0.35) Traitor number is calculated by: player count * rtc_maxpct rounded down. rtc_usepercentage needs to be 1 for this to be enabled.
6 Comments
Luukullus 30 Jun, 2020 @ 8:32am 
Thank you for your quick answer (both).

It is working for me too. Also in TTT2.

but i realized, there are a few rounds without a random amount of traitors.
But is is working at all.

Thank you for your work :)
tomatosoup 30 Jun, 2020 @ 5:35am 
TTT2 uses the same stock variables as TTT, I'm using it on mine and it seems to work fine.
Obunga  [author] 30 Jun, 2020 @ 4:14am 
@Luulkullus This is made for the original TTT. I have not tested this on TTT2
Luukullus 29 Jun, 2020 @ 12:25am 
Hey there. Is this working for TTT2?
Or better asked, does it work at all?

Would be vry happy to get an answer :).
tomatosoup 28 May, 2020 @ 10:37am 
Nevermind, found the GMA and took a peek, I understand how it works with the client side script now. Thank you so much for your work on this!
tomatosoup 28 May, 2020 @ 9:53am 
If you don't mind me asking, do you have the source code for this available somewhere? I was tearing my hair out trying to set up something exactly like this yesterday and could not for the life of me figure out how to suppress the convar servermsgs like this addon is doing.