Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Oracle [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
356.255 KB
6 Oct, 2021 @ 2:18am
5 Jan @ 5:16pm
27 Change Notes ( view )

Subscribe to download
[TTT2] Oracle [ROLE]

Description
Use your knowledge wisely...

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] and submit new role ideas here[github.com]. A list of all currently available roles can be found here.

Discord: https://discord.gg/Npcbb4W
Source: https://github.com/TaintedEnergy/ttt2-role-oracle




The Oracle is an innocent role who is occasionally told information about other people's roles. Every 30 to 60 seconds, the oracle will be told a team (Innocent, Traitor or Neutral) and then that "One or more of <Person A> or <Person B> is on this team", with Person A and B being 2 random non-detectives (alive or dead). Be careful about revealing your role, Traitors and other evils might come to silence you.



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_oracle_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_oracle_pct [0.0..1.0] (default: 0.13) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_oracle_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_oracle_random [0..100] (default: 30) # the amount of players needed for this role to spawn ttt_oracle_min_players: [0..n] (default: 6)

Rolespecific Convars:
# The minimum amount of time before the oracle is told about roles. ttt_oracle_min_message_time [0..n] (default: 30) # The maximum amount of time before the oracle is told about roles. ttt_oracle_max_message_time [0..n] (default: 60) # The amount of the the message displays on the screen. ttt_oracle_display_message_time [0..n] (default: 7) # Should the oracle's message be posted to the chat window. ttt_oracle_message_chat_window [0..1] (default: 1)
8 Comments
TaintedEnergy  [author] 11 Oct, 2021 @ 6:35pm 
Cpt.Haxray, I added the ability to toggle whether the Oracle's message gets posted to the chat window.
TaintedEnergy  [author] 11 Oct, 2021 @ 12:41am 
The spy issue has been resolved. Instead of showing the "defaultTeam" of a role, the oracle will see the *real* team of a player. The spy shows as Innocent, a lover on their own team shows as on a Neutral team, etc...
TaintedEnergy  [author] 10 Oct, 2021 @ 11:57pm 
The github page should now have public access, let me know if its still a 404.

I will also investigate the Spy issue soon.
Cpt.Haxray 9 Oct, 2021 @ 9:47pm 
Another major issue has been found: Spy is Detected as a Traitor by Oracle.
Kira 同志 8 Oct, 2021 @ 4:56am 
FYI the github link is a 404
Cpt.Haxray 7 Oct, 2021 @ 6:29pm 
Got a quick suggestion. We've been using it on a server and have been running into balance problems due to the oracle message also printing into chat, and the chat version being copy/pasteable. It is incredibly difficult to fake allowing the Oracle to rather easily prove themselves. Could you add a convar option to disable the chat message leaving only the 'announcement' message?
TaintedEnergy  [author] 7 Oct, 2021 @ 12:29am 
Thanks for the heads-up, I fixed the issue and tested it. Let me know if there are still problems.
Cpt.Haxray 6 Oct, 2021 @ 10:31pm 
Massive bug with this role. Every other person in the game was able to see the Oracle's message when it appeared.