Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Necrohealiac [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
358.754 KB
19 May, 2022 @ 4:59am
3 Jun, 2022 @ 3:33am
3 Change Notes ( view )

Subscribe to download
[TTT2] Necrohealiac [ROLE]

Description
Get off (heal) on other peoples deaths!

You have to use TTT2 in order to use this role.

TTT2 Discord: https://discord.gg/Npcbb4W
Source: Coming Soon!




Once any player death occurs (other than yourself), you will heal up!
After a delay, you will get a visual notification via flashlight and a little boost of health.



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_necroh_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_necroh_pct [0.0..1.0] (default: 1.0) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_necroh_max [0..n] (default: 1) # the probability each round of this role being spawned at all ttt_necroh_random [0..100] (default: 50) # the amount of players needed for this role to spawn ttt_necroh_min_players: [0..n] (default: 8)

Rolespecific Convars:
# Heal amount upon another's death ttt2_necroh_healAmount [1..100] (default: 10) # Max Health possible ttt2_necroh_maxHealth [10..1000] (default: 300) # Toggle Flashlight during Necrohealiac effects ttt2_necroh_doFlash [0..1] (default: 1) # Flashlight Rate of Flash (seconds) ttt2_necroh_flashRate [0.01..5.0] (default: 0.1) # Flashlight Flash Amount ttt2_necroh_flashAmount [1..100] (default: 20) # Minimum Delay before Health Receive ttt2_necroh_minDelay [0.1..120.0] (default: 15) # Maximum Delay before Health Receive ttt2_necroh_maxDelay [0.1..120.0] (default: 30)

--
Credits:
Jayden: Role Programming
eee: Idea, Design
Flebsy: Icon Design
2 Comments
Bevnindo  [author] 21 May, 2022 @ 2:15am 
Thanks for pointing out the "doFlash" convar, it seems I uploaded the wrong codebase which didn't include that. A new update should be coming through with that now!
As for the max health continuation bug, I thought I had fixed that but will take another look. Thanks for feedback!
The1337Gh0st 20 May, 2022 @ 9:23pm 
It appears that the convar "ttt2_necroh_doFlash" does not do anything. Upon looking at the code for the role, it seems that it is not set to do anything, making it a useless cvar. There is also a bug where the Necrohealiac's flashlight effect and health gain carries over to new rounds, which has the effect of other roles being able to utilize the max health gain of the Necrohealiac.