Garry's Mod

Garry's Mod

30 ratings
Simple Overheal
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Realism
File Size
Posted
Updated
3.042 KB
26 Aug, 2023 @ 8:44am
27 Aug, 2023 @ 12:46pm
2 Change Notes ( view )

Subscribe to download
Simple Overheal

Description
In collaboration with ChatGPT:


This addon introduces an overheal mechanic seen in many cartoon/arcade style FPS games. The addon comes with multiple console variables.

sv_overheal_automatic
Automatically gain HP regardless of interacting.

sv_overheal_refreshRate
Sets the refresh rate of the addon. Lower means more performance.

sv_overheal_target
If health is above this number, then start decaying.

sv_overheal_rate
How fast should health be decayed over time.

sv_overheal_ease
How slow should the decay be when approaching target health.

sv_overheal_penalty
Bigger number means more health is decayed when further away from target health.

sv_overheal_maxHealth
Sets maximum health of player when interacting.

This addon is not self-aware, meaning it will most likely not play well if there are other addons that also modify max health.
11 Comments
Stoque  [author] 25 Sep, 2023 @ 5:50pm 
Most HUDs assume your max HP will be at 100 no matter what, so all they do is check your percentage of max HP and interpolate that from 0 health to get the render. But because the addon brute forces your max HP to 1,000 when pressing the +use key, it messes up the calculations.
Lombaxtard 25 Sep, 2023 @ 12:30pm 
All the HUDs I've tested this with have the same issue: if I'm holding a +use button my health bar indicated that I have 10 HP (SlateHUD, Minimal HUD), however my real health is still what it was before and I've tested that by taking more than 10HP damage
Whenever I depress +use button my HUDs go back to normal
SuperToaster 31 Aug, 2023 @ 4:10am 
Holy crap, someone using ChatGPT for GOOD purposes? Awesome addon. :bigjohn:
Stoque  [author] 30 Aug, 2023 @ 4:43am 
Gm_nexus
Garb 29 Aug, 2023 @ 9:53pm 
What map in the vid?
Stoque  [author] 29 Aug, 2023 @ 1:00pm 
health overdose (not part of the addon)
Bad to the bone 29 Aug, 2023 @ 9:48am 
did bro just die of a heart attack at the end
Bad to the bone 29 Aug, 2023 @ 9:46am 
chatGPT my beloved
Stoque  [author] 29 Aug, 2023 @ 3:13am 
ChatGPT is an excellent teacher for understanding Lua scripting. However, don't expect it to make the entire project in one question. Ask it simple phrases like, "move speed increases over time" and build on top of that. ChatGPT will tell you what it is doing and show you what the code is doing.
⋆ ♥ Starlight ♥ ⋆ 28 Aug, 2023 @ 9:29pm 
And would it require any coding experience?