Skip to content

Instantly share code, notes, and snippets.

@TimGoll
Created March 5, 2020 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimGoll/db0e519f5aaaee246e549848afbfdc32 to your computer and use it in GitHub Desktop.
Save TimGoll/db0e519f5aaaee246e549848afbfdc32 to your computer and use it in GitHub Desktop.
[i]The Hitman is a Traitor, always low on credits, he follows his targets to earn his bounty money.[/i]
You have to use [URL=https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556]TTT2[/URL] in order to use this role. Additionally using [URL=https://steamcommunity.com/sharedfiles/filedetails/?id=1362430347]ULX for TTT2[/URL] is recommended. Report bugs concerning this role [URL=https://github.com/TTT-2/ttt2-role_hit]here[/URL] and submit new role ideas [URL=https://github.com/TTT-2/addon-ideas]here[/URL]. A list of all currently available roles can be found [URL=https://steamcommunity.com/sharedfiles/filedetails/?id=1737053146]here[/URL].
Discord: [url=https://discord.gg/Npcbb4W]https://discord.gg/Npcbb4W[/url]
Source: [url=https://github.com/TTT-2/ttt2-role_hit]https://github.com/TTT-2/ttt2-role_hit[/url]
[img]https://i.imgur.com/KeP4fWN.png[/img]
The hitman (known as dealer from Dhalucard) is a new traitor role that spawns with zero credits. Instead of being awarded with credits once a few players are dead, he has to fight for every credit really hard by killing his targets. If he kills his target, he will be instantly rewarded with a credit. If his target dies in another way, he will get nothing in return. In both cases however a new target is selected after the old one died.
If played in combination with TTTC, the hitman is also able to see the classes of all players in his scoreboard.
[H1]Plays best with:[/H1]
[list]
[*][URL=https://steamcommunity.com/sharedfiles/filedetails/?id=1683708655]Spy[/URL]
[*][URL=https://steamcommunity.com/sharedfiles/filedetails/?id=1363905854]Serialkiller[/URL]
[*][URL=https://steamcommunity.com/sharedfiles/filedetails/?id=1682738483]Sniffer[/URL]
[/list]
[img]https://i.imgur.com/jIBWtbM.png[/img]
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.
[h1]Normal Role Convars (also found in ULX):[/h1]
[code]# enable or disable this role
ttt_hitman_enabled [0/1] (default: 1)
# the percentage of players that are spawned as this role
ttt_hitman_pct [0.0..1.0] (default: 0.17)
# the limit of players that spawn as this role each round, this overwrites the percentage
ttt_hitman_max [0..n] (default: 1)
# the probability each round of this role being spawned at all
ttt_hitman_random [0..100] (default: 50)
# the amount of players needed for this role to spawn
ttt_hitman_min_players: [0..n] (default: 6)[/code]
[h1]Rolespecific Convars:[/h1]
[code]# The credit bonus given when a hitman kills his target.
ttt_target_credit_bonus [0..n] (default: 2)
# Enables or disables if the Traitor should be revealed if he killed nontarget.
ttt_target_chatreveal [0/1] (default: 0)[/code]
--
[h1]Credits:[/h1]
[URL=https://steamcommunity.com/id/alf21]Alf21[/URL]: creator of this role addon
[URL=https://steamcommunity.com/id/mineotopia]Mineotopia[/URL]: designer of the role icon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment