Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Sacrifice [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
370.910 KB
5 Oct, 2021 @ 8:17pm
5 Jan @ 5:10pm
8 Change Notes ( view )

Subscribe to download
[TTT2] Sacrifice [ROLE]

Description
Sometimes sacrifices are necessary...

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-sacrifice




The Sacrifice is an innocent role that has a defib which can revive a dead player's corpse. However, the cost of using the defib is the user's life (or specified amount of damage). The Sacrifice is a role that should sacrifice himself for a more important person who may be dead. An example could be a dead detective, or a dead innocent player who could call out who their murderer was. Convars can be used to change whether the Sacrifice dies when using the defib (by reducing the damage of using the item), and how much health a revived player will respawn with. When the Sacrifice dies, the defib disappears.



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

Rolespecific Convars:
# how much ammo the sacrifice's defib has (so how many times they can revive people) ttt2_sacrificedefi_ammo [1..n] (default 1) # how long it takes the revive using the defib ttt2_sacrificedefi_revive_time [0.0..n] (default 3.0) # how long it takes the defib to reset after encountering a revive error ttt2_sacrificedefi_error_time [0.0..n] (default 1.5) # how much damage is received when using the defib ttt2_sacrifice_revive_damage [0..n] (default 250) # how much health a person has when revived using the defib ttt2_sacrifice_revive_target_hp [0..n] (default 100)
6 Comments
faye 25 Apr, 2022 @ 9:59pm 
Reviving a dead person just lets them tell others who the traitors are. kinda ruins the entire point of TTT...? maybe if the revived person couldn't use voice or text chat, or some other severe restriction could work. but in it's current state, I really dont get why someone would play with this role
SvveetMavis 16 Oct, 2021 @ 12:22pm 
cool role! my class pack has a similar class variant, nice
Willi 12 Oct, 2021 @ 1:44pm 
e
TaintedEnergy  [author] 10 Oct, 2021 @ 11:51pm 
that is correct, the sacrifice code is based from the mesmerist
ElPatron01 10 Oct, 2021 @ 1:34am 
probably not cause its the same with mesmerist i think if they die before they can use it they wont even get it
blackmagicfine 6 Oct, 2021 @ 11:36am 
What happens to the defib if The Sacrifice dies before they can use it? Can others pick it up from their corpse?