Garry's Mod
218 ψήφοι
Adrenaline Shot (TTT) - Temporary Health
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Weapon
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
692.883 KB
19 Μαϊ 2017, 22:18
11 Σεπ 2021, 15:31
8 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
Adrenaline Shot (TTT) - Temporary Health

ΣΕ 1 ΣΥΛΛΟΓΗ ΑΠΟ a
Cutie Café
2 αντικείμενα
ΠΕΡΙΓΡΑΦΗ
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 σχόλια
Zackattack3806 18 Απρ 2022, 16:20 
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 Φεβ 2022, 21:40 
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 Σεπ 2021, 18:48 
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 Σεπ 2021, 15:44 
Great -- thanks =)
The person who told me about the problem is gonna try out the fix.
a  [Δημιουργός] 11 Σεπ 2021, 15:31 
Thanks - I've updated the addon with your suggestion.
Malivil 11 Σεπ 2021, 13:04 
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 Σεπ 2021, 12:43 
This addon is so good!!!!
Vlad Bloxy 6 Ιουλ 2021, 6:02 
sorry, i didnt read description so good
Vlad Bloxy 6 Ιουλ 2021, 6:01 
ok, thanks!
a  [Δημιουργός] 5 Ιουλ 2021, 13:58 
> 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.