Garry's Mod

Garry's Mod

219 ratings
Adrenaline Shot (TTT) - Temporary Health
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
File Size
Posted
Updated
692.883 KB
19 May, 2017 @ 10:18pm
11 Sep, 2021 @ 3:31pm
8 Change Notes ( view )

Subscribe to download
Adrenaline Shot (TTT) - Temporary Health

In 1 collection by a
Cutie Café
2 items
Description
The Adrenaline Shot provides a temporary amount of health that decays over time. Left-click to give yourself, by default, 50 HP that will decay by 1, every second. Be careful, though - if your health is still decaying and you hit 0 HP, it's game over...

While this SWEP was designed with TTT in mind, it can be used in other gamemodes such as Sandbox or DarkRP. This SWEP is also highly customizable through ConVars.

It is highly recommended that you use the Workshop addon directly (rather than extracting it - in fact, please don't do that) as there may be small patches that I have to send out. I will not provide support for releases older than the latest. If you decide to extract the addon anyway, subscribe to this discussion to receive notifications of new releases.

ConVars
* denotes convars that may require a map change

a_adrenaline_health - Sets the amount of health to be restored by the Adrenaline Shot (default: 50)
a_adrenaline_seconds - Sets the number of seconds before health decays (default: 1)
a_adrenaline_rate - Sets the amount of health to decay per a_adrenaline_seconds (default: 1)
a_adrenaline_overheal - Sets whether the Adrenaline Shot is allowed to overheal (default: 0)
a_adrenaline_name* - Sets the name of the Adrenaline Shot (default: Adrenaline Shot)
a_adrenaline_slot* - Sets the slot that the Adrenaline Shot should appear in. You should probably change this to 6 or 7 if you're using this for TTT. (default: 5)
a_adrenaline_sound - Sets whether the Adrenaline Shot should make a sound. (default: 1)
a_adrenaline_kill - Sets whether the Adrenaline Shot should kill a player if their HP decays to 1. (default: 1)

TTT Convars:
a_adrenaline_canbuy* - Sets who can buy the Adrenaline Shot. 0 for Detective, 1 for Traitor, 2 for both. (default: 1)
a_adrenaline_limitedstock* - Sets whether this weapon is in "limited stock" - i.e., can only be bought once per round. (default: 1)
a_adrenaline_icon* - The type of icon to use for the Adrenaline Shot. Set this to 0 for blue, or 1 for red. (default: 1)

Credits
The sounds have been sampled from harrybates01[www.freesound.org] and mariiao2[www.freesound.org] at Freesound.org.

Programming and assembly by Cutie Café[cutie.cafe].

Like what we're doing? Be sure to give us some 👍s above!
11 Comments
Zackattack3806 18 Apr, 2022 @ 4:20pm 
Can this be applied to other players? If not, would it be possible for you to make it usable on other players? Possibly add a console command if you're worried about balance.
matek 6 Feb, 2022 @ 9:40pm 
Hello! This weapon is completely in balanced and should be removed. Please consider learning how to balance an item in the future!
Hell's Redeemer 19 Sep, 2021 @ 6:48pm 
I think it would be better to make a_adrenaline_rate independent from a_adrenaline_seconds.
The reasoning would be that I think it would make sense to have a delay before your health decays, then at a set rate it decays a_adrenaline_rate per second rather than decay X hp per Y seconds.
For example:
Currently if I were to have a_adrenaline_rate 6 and a_adrenaline_seconds 10 it would take 10 seconds to drain 6 hp, but my desired effect is 10 seconds of full temporary health then draining 6 HP per second.
I would much rather have a_adrenaline_seconds be a DELAY, not the frequency of health decay.
Malivil 11 Sep, 2021 @ 3:44pm 
Great -- thanks =)
The person who told me about the problem is gonna try out the fix.
a  [author] 11 Sep, 2021 @ 3:31pm 
Thanks - I've updated the addon with your suggestion.
Malivil 11 Sep, 2021 @ 1:04pm 
I think there are a couple errors when this is used in TTT: Both calls to hook.Remove("Adrenaline_TTT_" .. ply:SteamID()) are missing the hook name in the first parameter.

One should be hook.Remove("TTTPrepareRound", "Adrenaline_TTT_" .. ply:SteamID()) and the other should be hook.Remove("PlayerDeath", "Adrenaline_TTT_" .. ply:SteamID())
Playmond 10 Sep, 2021 @ 12:43pm 
This addon is so good!!!!
Vlad Bloxy 6 Jul, 2021 @ 6:02am 
sorry, i didnt read description so good
Vlad Bloxy 6 Jul, 2021 @ 6:01am 
ok, thanks!
a  [author] 5 Jul, 2021 @ 1:58pm 
> While this SWEP was designed with TTT in mind, it can be used in other gamemodes such as Sandbox or DarkRP. This SWEP is also highly customizable through ConVars.