Garry's Mod

Garry's Mod

Not enough ratings
[TTT/2] Role Defibrillator
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Realism
File Size
Posted
Updated
23.606 KB
18 Oct, 2019 @ 9:39pm
1 Mar, 2024 @ 1:32pm
11 Change Notes ( view )

Subscribe to download
[TTT/2] Role Defibrillator

In 1 collection by Fabii
TTT Server - alternative Kollektion
329 items
Description
The role defibrillator is basically an enhanced version of the traitor defibrillator. It forces any corpse you revive to join your team. Killing a traitor and picking up a traitor defibrillator only to realize that it is of no use to you as an innocent, is no more!

Features
  • Revive people and make them part of your team!
  • A traitor dropped the role defibrillator? Pick it up and use it! You could even respawn the traitor and force him to be part of the innocent team, if you want to.
  • ULX and TTT2 integration allows you too easily edit the convars without ever having to restart your server!

ConVars
Name
Description
ttt_rdef_healthOnRespawn (Def. 100)
Amount of health the respawned player has after respawning
ttt_rdef_defibTime (Def. 5)
Amount of time the defibrillation takes
ttt_rdef_baseRolesOnly (Def. 1)
Instead of respawning as a specific subrole respawn as the baserole of that subrole
ttt_rdef_accessShop (Def. 1)
Grant access to the shop to roles that usually have shop access

Credits
This addon is based on the Traitor Defibrillator, which itself is based on another Traitor Defibrillator, which itself is based on the original TTT Defibrillator.
Crazy, isn't it?

Dependencies

Github
Repository[github.com]
14 Comments
mexikoedi  [author] 18 Oct, 2021 @ 10:11am 
The team should be copied now.
mexikoedi  [author] 9 Oct, 2021 @ 7:49am 
I tested it and it works for doppelganger and other roles. I didn't find the "Lovers" role but it should work too. If something is not working please create an Issue on GitHub. Read the description for more information.
KillerfoxyLP 8 Oct, 2021 @ 10:30am 
pls?
KillerfoxyLP 2 Oct, 2021 @ 11:40am 
i wanted to ask if its possible to make it that it copies the team too for like lovers,doppelganger
Fabii  [author] 23 Oct, 2020 @ 3:52am 
Yes, use the TTT2 shopeditor to configure who can buy it. Just type !shopeditor in chat, assuming you are superadmin on the server
Knochi 23 Oct, 2020 @ 12:27am 
Can the detective also buy it?
Tim | Mineotopia 19 Jun, 2020 @ 5:34am 
Ah, no, I asked you because I did not want to create another addon. If I find the time to do it, I'll open a pullrequest so you can update yours.

Yes, that's nice. But they contacted us! :))
Fabii  [author] 19 Jun, 2020 @ 3:07am 
@Tim | Mineotopia Due to corona my university semester is rather stressful, so it's definitely not going to happen for now. But the repository is public so if anyone is willing to do it, they can always go ahead and fork it or ask me to add them as collaborateur. I will handle pull requests, but I can't do it myself right now. Also congratulations on the collaboration with HandOfBlood, I saw that you assembled his collection :)
Tim | Mineotopia 6 Jun, 2020 @ 7:58am 
Hey Fabian, we've added many thing to the TTT2 revive functionality. It would be cool if you'd rework this defi as well based on these functions. Feel free to use my defibrillator as a base:

WS: https://sp.zhabite.com/sharedfiles/filedetails/?id=2115944312
GH: https://github.com/TTT-2/ttt2-wep_defi
ルネ | Lune 27 Dec, 2019 @ 11:50am 
amazing!