Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Medic [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
158.527 KB
5 Sep, 2020 @ 4:29pm
24 Jun @ 11:10am
63 Change Notes ( view )

Subscribe to download
[TTT2] Medic [ROLE]

In 1 collection by mexikoedi
Eskalation Pur Server Addons for TTT2 [STANDARD]
159 items
Description
He spawned with a nice white cross on his arm and is now running around and helps everyone. And why? Why not.

You have to use TTT2 in order to use this role. 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/mexikoedi/ttt2_role_med




The Medic is a neutral role without a shop who helps everyone with his Medigun/Defibrillator. Everyone sees the Medic. He helps everyone or he can pick a side.
He can't win and is only a neutral supporter.
Only if you enable the win ConVar in the F1 menu then he can win with the winning team. He needs to heal a specific amount of health (and revive one player) and he needs to stay alive for that to happen. The amount of health which needs to be healed and if he needs to revive someone can also be configured. Popups will be shown to the Medic player to inform him how much he needs to heal and if he achieved the win condition.
If he kills someone he will loose his equipment and helps the Innocents to win. If he kills a Medic he will be transformed into a Traitor. A popup with names will be seen on both events. If someone kills you his name will be revealed. You can disable this kill/death handling with a ConVar.
If the Medic kills himself or dies from the world a popup will be seen.
The Medic has armor, sees the haste mode time, if someone has died and he also loses karma for his wrong actions.
Also it is recommended to check the F1 menu ConVars to customize the Medic experience. Especially the role specific ConVars are interesting. (For example the karma penalty ConVar.)

Plays best with:




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 the F1 menu. Additionally there might be some role specific ConVars, which are also in the F1 menu.

Normal role ConVars:
# enable or disable this role ttt_medic_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_medic_pct [0.0..1.0] (default: 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_medic_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_medic_random [0..100] (default: 33) # the amount of players needed for this role to spawn ttt_medic_min_players [0..n] (default: 8) # enable or disable traitor button visibility ttt_medic_traitor_button [0/1] (default: 0)

Role specific ConVars:
Here[pastebin.com]

--
Credits:
mexikoedi: creator of this role addon
Slifer808: designer of the workshop/ingame role icon and helped with testing
demarvLP/TTV: creator of the video
TKT: helped with ideas, bug fixing and testing
Wasted: helped with bug fixing
NickCloudAT: thanks for this wonderful Medigun and the tips
Tim | Mineotopia: thanks for this wonderful Defibrillator
berry: thanks for the Russian translations
ThePlatynumGhost: thanks for the Italian translations
18 Comments
mexikoedi  [author] 8 Oct, 2022 @ 2:56pm 
Thanks for a new idea again.
Maybe I will make this is in some weeks/months or maybe not at all.
I write it down and think about it.
NoColorFrog 8 Oct, 2022 @ 11:35am 
Hi, @mexikoedi, i have a new idea for TTT2, everybody born with a "fart skill", that will make a fart
sound from body in a random interval, the maximum and minimum values can be set by admin. it's a funny tool and make players who like to stay in one place feel threatened
NoColorFrog 2 Feb, 2022 @ 2:14am 
Thank you. awesome work!
mexikoedi  [author] 30 Jan, 2022 @ 1:06pm 
Thank you.
I fixed this issue.
NoColorFrog 30 Jan, 2022 @ 10:38am 
SpecDM is not installed on my server.
I saw that the last update is about SpecDM fixed, could this be the cause of normal revive broken?
The medic Defibrillator was expended but the player was not revived.
Defibrillator is still working, but Medic Defibrillator is broken.
mexikoedi  [author] 30 Jan, 2022 @ 9:40am 
Thank you. I reverted the changes to the last version.
Could you explain what exactly happend? Was the player in "Spectator Deathmatch"?
NoColorFrog 30 Jan, 2022 @ 8:32am 
The January 30th update has an error: [[TTT2] Medic [ROLE]] gamemodes/terrortown/entities/weapons/weapon_ttt2_medic_defibrillator.lua:176: attempt to call method 'CancelRevival' (a nil value)
1. DoCheck - gamemodes/terrortown/entities/weapons/weapon_ttt2_medic_defibrillator.lua:176
2. unknown - gamemodes/terrortown/gamemode/server/sv_player_ext.lua:847

Timer Failed! [TTT2RevivePlayer20][@gamemodes/terrortown/gamemode/server/sv_player_ext.lua (line 840)]

The medic Defibrillator was expended but the player was not revived !!
mexikoedi  [author] 19 Dec, 2021 @ 3:39am 
@EggMan
It would break some popups and more and would require much work.
And also if the Medic would be on a team it would be very unfair to the other team because the Medic would only help one team and this team would have a big advantage. The Medic should be there for everyone.

@NoColorFrog
The Medic can revive one player and this is already very powerful. For example if he revives a Traitor/Detective. It is also a bit hard to revive someone without being targeted.
It would also mean to create two new convars (how many times can the Medic revive and how many does the Medic need to revive to win) and to modify the win condition where the Medic needs to revive one player and the language files also need to be adjusted (how many he needs to revive).



But thanks for the ideas, if you have something else for one of my addons be free to comment.

Thank you.
NoColorFrog 19 Dec, 2021 @ 2:02am 
hi, @mexikoedi, awesome done thank you
It would be even more fun if Medic could resurrect multiple people and had customizable cooldowns, it makes the situation more uncertain, and dead players have something to look forward to!
EggMan 6 Dec, 2021 @ 8:59am 
Awesome, thank you so much!!! :lunar2019piginablanket:
If I may add, I personally think it would be cool if there also was a way to make the doctor on the innocent side, so that traitors, in order to win, have to kill the doctor too.