Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Gambler [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
357.095 KB
19 May, 2022 @ 4:55am
3 Jun, 2022 @ 3:41am
3 Change Notes ( view )

Subscribe to download
[TTT2] Gambler [ROLE]

Description
A good traitor works with what they have.

You have to use TTT2 in order to use this role.

TTT2 Discord: https://discord.gg/Npcbb4W
Source: Coming Soon!




The Gambler is a Traitor role who must use the items they are given. At the start of the round, the Gambler receives four random items from the Traitor Menu. Otherwise, they have no starting credits. This forces players to change up their strategies based on what they receive, and varies the gameplay. The Gambler can still receive credits throughout the round and purchase items later as normal.



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_gambler_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_gambler_pct [0.0..1.0] (default: 1.0) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_gambler_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_gambler_random [0..100] (default: 50) # the amount of players needed for this role to spawn ttt_gambler_min_players: [0..n] (default: 8)

Rolespecific Convars:
# Count of random Traitor Shop Items provided to the Gambler ttt2_gambler_randomItems [1..10] (default: 4)

--
Credits:
Jayden: Role Programming
Jent: Idea, Design
Flebsy: Icon Design
7 Comments
Ded 2 Jul, 2023 @ 10:37pm 
Hey, Nice role. But is there anyway to blacklist items? or lower the chance? cause i'm almost getting passives each time i get the role
Captain Steely 16 Jun, 2022 @ 12:09pm 
Just wanted to update you that we tried it again last week and it was working great! Thanks for the quick fix!
Bevnindo  [author] 3 Jun, 2022 @ 3:34am 
Apologies all. I'm rolling out a fix for the role tonight that fixes the implementation!
Hope everybody enjoys it!
Captain Steely 2 Jun, 2022 @ 5:41pm 
The role also does not work for me. The Gambler does not get any weapons, and cannot get credits from killing anyone.
Hannes 21 May, 2022 @ 6:52am 
Ok, i tried a few things and these are the things I found out: If I force myself to be a Gambler, while I'm another role during the round, I receive my items and I also get a text message informing me about my Traitor-quipment. BUT...should I force myself to be a Gambler before the round has startet (ULX-commands btw), I don't receive my items neither do I get a chat message informing me about them. (No errors in the console btw.)
Bevnindo  [author] 20 May, 2022 @ 5:20am 
Thanks for trying the mod @Hannes!
I just tried it again on my end it was working on my base TTT2 server.
Did you get a chat message telling you what items you should have received, or is your server console throwing any errors on role selection/round start?
Hannes 19 May, 2022 @ 9:20am 
Like the idea, but it doesn't work for me, the Gambler just doesn't receive any items whatsoever at the start of the round...
Could you double-check if this works just fine for you and let me know, then I will look deeper into this!