Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Speedrunner [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
387.450 KB
12 Nov, 2023 @ 6:25pm
16 Dec, 2023 @ 10:38am
2 Change Notes ( view )

Subscribe to download
[TTT2] Speedrunner [ROLE]

In 1 collection by blackmagicfine
TTT2 Mods For BMF's Server
93 items
Description
Hello and welcome to GDQ 2023! Today I'll be speedrunning Trouble in Terrorists Town 2, an RDM game with some minor elements of social deduction...

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/AaronMcKenney/ttt2-role_speed




The Speedrunner is a public evil role, who must act quickly to kill everyone else before their timer runs out. While the clock is still ticking they will be gifted with immense speed and will always respawn upon death. However, the minute that the timer hits zero they will permanently die.

The nature of the timer can be controlled in the ConVars listed below. In short the server admin has control over these aspects:
  1. The base time that the clock has, with a default value of 50 seconds
  2. The added time that the clock has for each player, with a default of 10 seconds per player (ex. for a 6 player group, the timer would be 50 + 6*10 = 110 seconds)
  3. The respawn time that the speedrunner must wait between lives, with a default value of 20 seconds. The clock is still ticking while the speedrunner is preparing to respawn, and this is meant to give all the other players a chance to recover and coordinate a plan
  4. Time penalties and rewards, both set to 0 by default. Intended for those who desire risk and reward, these ConVars can alter the clock by subtracting time every time the speedrunner dies and adding time whenever the speedrunner kills a player who isn't on their team



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

Rolespecific Convars:
# The number of seconds that the speedrunner has to win the game is based on the following formula: ttt2_speedrunner_time_base + n * ttt2_speedrunner_time_per_player Where n is the number of players who are currently alive and aren't currently on your team. ttt2_speedrunner_time_base [0..n] (default: 50) ttt2_speedrunner_time_per_player [0..n] (default: 10) # Respawn time in seconds (Disabled if 0). Speedrunner will not respawn if they failed the speedrun. ttt2_speedrunner_respawn_time [0..n] (default: 20) # If the speedrunner dies, this number of seconds is deducted from their timer. ttt2_speedrunner_time_penalty [0..n] (default: 0) # If the speedrunner kills a player on a different team, this number of seconds is added to their timer. ttt2_speedrunner_time_reward [0..n] (default: 0) # Should the opposition see a bunch of smoke when the Speedrunner spawns/dies/revives? ttt2_speedrunner_smoke_enable [0/1] (default: 1) # Should the Speedrunner's body, role and team icon have a rainbow effect? ttt2_speedrunner_rainbow_enable [0/1] (default: 1) # Multiplier for the Speedrunner's move speed ttt2_speedrunner_speed_scale [1.0..n.m] (default: 3.0) # Multiplier for the Speedrunner's jump height ttt2_speedrunner_jump_scale [1.0..n.m] (default: 2.0) # Multiplier for the Speedrunner's fire rate ttt2_speedrunner_fire_rate_scale [1.0..n.m] (default: 1.5)

--
Credits:
BlackMagicFine: creator of this role addon, icon, and thumbnail
flaticon Quarter Of An Hour free icon[www.flaticon.com]: role icon was obtained from here.
6 Comments
blackmagicfine  [author] 15 Dec, 2023 @ 5:45pm 
Thanks! There's actually quite a few "public evil" roles that spit in the face of social intrigue. Though I suppose on large servers these types of roles could lead to a brief sense of camaraderie as people join hands to stop the greater threat. Which may lead to interesting social dynamics...
Fawx. 15 Dec, 2023 @ 12:04pm 
still cool idea tho!
blackmagicfine  [author] 15 Dec, 2023 @ 12:00pm 
Yup, I don't really intend to play with this role in my own server, for the reasons you stated. I honestly wrote it up because it was a fun thing to code. I'm sure some group somewhere will get a kick out of this though.
Fawx. 15 Dec, 2023 @ 9:03am 
(great idea but destroys the purpose of secretly killing and roleplay, not healthy for a small number of players (6 to 8) maybe a great role to have rarely active on a server with more players to make things fresh)
Fawx. 15 Dec, 2023 @ 9:01am 
Hello and welcome to GDQ 2023! Today I'll be speedrunning Trouble in Terrorists Town 2, an RDM game with some minor elements of social deduction.
So, when you come around this corner, you'll probably want to make sure you shoot these guys as fast as you can to save time, and I'm actually using an advanced technique called bunnyhopping, where you crouch and hold space, normally it would work differently in base gmod but there is an addon installed to allow you to do that.
Now, at this point in the round the rest of the players know of your existence and are trying to hide. We have proximity chat enabled, so if you can say something funny, something along the lines of "Hello and welcome to GDQ 2023! Today I'll be speedrunning Trouble in Terrorists Town 2, an RDM game with some minor elements of social deduction," the hiders might laugh in the voice chat revealing their location.
dolpin 2.0 23 Nov, 2023 @ 8:02am 
Hello and welcome to GDQ 2023! Today I'll be speedrunning Trouble in Terrorists Town 2, an RDM game with some minor elements of social deduction.
So, when you come around this corner, you'll probably want to make sure you shoot these guys as fast as you can to save time, and I'm actually using an advanced technique called bunnyhopping, where you crouch and hold space, normally it would work differently in base gmod but there is an addon installed to allow you to do that.
Now, at this point in the round the rest of the players know of your existence and are trying to hide. We have proximity chat enabled, so if you can say something funny, something along the lines of "Hello and welcome to GDQ 2023! Today I'll be speedrunning Trouble in Terrorists Town 2, an RDM game with some minor elements of social deduction," the hiders might laugh in the voice chat revealing their location.