Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Swapper [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Comic, Fun
File Size
Posted
Updated
365.251 KB
Sep 18, 2021 @ 7:55pm
Oct 8, 2021 @ 4:25am
8 Change Notes ( view )

Subscribe to download
[TTT2] Swapper [ROLE]

In 1 collection by Guardian954
TTT2 Addons
74 items
Description
You shouldn't have been so trigger happy...

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]. A list of all currently available roles can be found here.

Discord: https://discord.gg/9njYXGY
Source: https://github.com/Guardian954/ttt2-role_swapper_git




A Swapper is a Jester role. They cannot deal damage and they appear as a Jester to Traitors. Their sole goal is to be killed by someone. Once killed they will swap identities with their killer, swapping their roles and weapons to live their new life. By default the killer becomes the new swapper but with 1 health! Chaos normally ensues.



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_swapper_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_swapper_pct [0.0..1.0] (default: 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_swapper_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_swapper_random [0..100] (default: 30) # the amount of players needed for this role to spawn ttt_swapper_min_players: [0..n] (default: 5)

Rolespecific Convars:
# Can the Swapper damage entities or props? ttt2_swapper_entity_damage [0/1] (default: 1) # Can the Swapper explode, burn, crush, fall, drown?? ttt2_swapper_environmental_damage [0/1] (default: 1) # How much health should the Swapper's killer return with (set to 0 for them to just die)? ttt2_swapper_killer_health [0..100] (default: 1) # How much health should the swapper respawn into their new role with? ttt2_swapper_respawn_health [0..100] (default: 100) # Should the swapper respawn with a random role from the opposite team of their killer? (default: 0) ttt2_swapper_respawn_opposite_team # Should the swappers respawn be delayed until their killer's death? (default: 0) ttt2_swapper_respawn_delay_post_death # Should the above 2 convars be randomised every round? (default: 0) ttt2_swapper_randomise_rounds --
Credits:
Custom Roles for TTT: creator of the original role and inspiration for this TTT2 version.
15 Comments
SvveetMavis Jun 10 @ 8:24pm 
if someone is the swapper in the round and then is killed in spec dm they respawn back into the round
Tim | Mineotopia Nov 3, 2023 @ 3:35pm 
I can't update this, guardian has to do it
Star Oct 29, 2023 @ 2:02pm 
Seconding what Kraw asked for. Jesters should not be able to push people off of roofs, nor should they be allowed to steal bodies that detectives need to check/defib. These settings would be much appreciated!
Kraw Oct 22, 2023 @ 12:23pm 
Would it be possible to add similar options to the Swapper that are present for the (relatively similar, but not quite the same) Jester role? The two options mainly are Jester being able or not able to pick up items and/or push people with crowbars.
Sirius Apr 15, 2023 @ 9:16pm 
Has promise to be a less round ending Jester but without traitors knowing the existence of the swapper let alone who it is it just means they get randomly and arbitrarily punished.
LOCURASDEKRONK69 Jul 27, 2022 @ 8:31pm 
Hey there, is there any way to make so Traitors can see the overhead icon of this role?
NoColorFrog Jan 23, 2022 @ 2:48am 
that would be better if add an option:
# Should the Traitor see swapper identity 1/0
Cpt.Haxray Dec 16, 2021 @ 1:24pm 
Would it be possible to add a similar option to the randomise rounds, but it only randomizes the opposite team convar, instead of randomizing both it and if the swapper respawns on death? Most players not respawning after getting killed as the swapper, but generally things play out better if its impossible to tell what the swapper respawned as, as otherwise the swapper gets instant killed.
NoColorFrog Dec 14, 2021 @ 11:57pm 
Honestly, it would be nice to resurrect the random location of Jester
Ged Merrilin Oct 11, 2021 @ 8:50pm 
I didn't realize that it replaced the original role of the person who killed them with the swapper role at first, I still think it'd probably be nicer if that was an option but since I realized the role swaps on death it isn't very important.