Garry's Mod

Garry's Mod

53 ratings
[TTT2] Bodyguard [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Gamemode
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
382.122 KB
7 Jul, 2019 @ 8:15am
15 Apr, 2024 @ 8:21am
12 Change Notes ( view )

Subscribe to download
[TTT2] Bodyguard [ROLE]

In 1 collection by NickCloudAT
NickCloud TTT - Utils
17 items
Description
By using his bare muscles, and the help of some bullets, he needs to protect the Person he got paid from.

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/9njYXGY
Source: https://github.com/TheNickSkater/ttt2-bodyguard




The BodyGuard is a special case. Once he Spawns, he will get a random Player dedicated for him to protect and is also in the same Team as this Player. He will get a message which also reveals the Role of the Player he needs to protect. BUT, the BodyGuard will NOT see the other Players in the Team he is (so as Traitor he will not see other Traitors). Also the Player he needs to protect will get a message that a Player is his BodyGuard. Goal is to protect the Player you are dedicated to.

If the Player you need to protect dies, you will get some damage (or die depending on the Convar settings below) and you will also get a new Player to protect.

If you damage the Person you should protect, he will get less damage and you will get much damage back (Depending on the convar settings below). If you somehow manage to kill the Person you need to protect, you will also die (Depending on the convar settings below).

Plays best with:
  • Jackal
  • Pirate
  • And probably all other Roles




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_bodyguard_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_bodyguard_pct [0.0..1.0] (default: 0.13) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_bodyguard_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_bodyguard_random [0..100] (default: 20) # the amount of players needed for this role to spawn ttt_bodyguard_min_players: [0..n] (default: 8)

Rolespecific Convars:
# the damage a bodyguard will get if the person he needs to protect dies ttt_bodygrd_damage_guarded_death [0..n] (def: 20) # defines if the bodyguard should be killed if he manages to kill the person he needs to protect ttt_bodygrd_kill_guard_teamkill [0/1] (def: 1) # the multiplier of damage that gets reflected to the bodyguard if damaging the person he needs to protect ttt_bodygrd_damage_reflect_multiplier [0..n] (def: 1.5) # the multiplier of damage that the person will get if damaged by his bodyguard ttt_bodygrd_damage_dealt_multiplier [0..n] (def: 0.1)

--
Credits:
Alf21: creator of TTT2
Mineotopia: designer of the WS icon and probably most TTT2 designs
9 Comments
Qwoppy 5 Jul, 2023 @ 1:02am 
is there a way to make bodyguards unable to get a neutral as a target?
mexikoedi 14 Nov, 2021 @ 10:34am 
Is it intended that the Bodyguard does not see the Detective?
NickCloudAT  [author] 21 Apr, 2020 @ 5:16am 
@blackmagicfine Bodyguards can not guard the same person another bodyguard guards, UNLESS there are not enough players left.
blackmagicfine 20 Apr, 2020 @ 7:12pm 
What would happen if the number of bodyguards outweighed everyone else? Would they just be left with no way of winning?
NickCloudAT  [author] 20 Apr, 2020 @ 5:45am 
@blackmagicfine no that is not possible.
blackmagicfine 20 Apr, 2020 @ 1:09am 
Can a bodyguard be assigned to a bodyguard?
Wolviller111 1 Feb, 2020 @ 4:41am 
Yeah, thought as much. Thank you for the confirmation ^^
NickCloudAT  [author] 1 Feb, 2020 @ 4:38am 
@Wolviller111 all Roles do that. If there are not enough players, other roles may overwrite the Detective.
Wolviller111 1 Feb, 2020 @ 4:18am 
Do bodyguards replace detectives? If there is no more space for them?