Garry's Mod

Garry's Mod

219 évaluations
Adrenaline Shot (TTT) - Temporary Health
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
Type de contenu: Addon
Type d'addon: Arme
Taille du fichier
Publié le
Mis à jour le
692.883 KB
19 mai 2017 à 22h18
11 sept. 2021 à 15h31
8 notes de changement ( voir )

S'abonner pour télécharger
Adrenaline Shot (TTT) - Temporary Health

Dans 1 collection faite par a
Cutie Café
2 objets
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 commentaires
Zackattack3806 18 avr. 2022 à 16h20 
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 févr. 2022 à 21h40 
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 sept. 2021 à 18h48 
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 sept. 2021 à 15h44 
Great -- thanks =)
The person who told me about the problem is gonna try out the fix.
a  [créateur] 11 sept. 2021 à 15h31 
Thanks - I've updated the addon with your suggestion.
Malivil 11 sept. 2021 à 13h04 
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 sept. 2021 à 12h43 
This addon is so good!!!!
Vlad Bloxy 6 juil. 2021 à 6h02 
sorry, i didnt read description so good
Vlad Bloxy 6 juil. 2021 à 6h01 
ok, thanks!
a  [créateur] 5 juil. 2021 à 13h58 
> 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.