Garry's Mod

Garry's Mod

242 ratings
Passive Health Regeneration
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
674.000 B
18 Aug, 2023 @ 2:48pm
24 Aug, 2023 @ 7:56am
2 Change Notes ( view )

Subscribe to download
Passive Health Regeneration

In 1 collection by Coffee Man
Coffee Man's Gameplay-Enhancing Addons
67 items
Description
Variation of the Low Health Regeneration addon for Garry's Mod. Enables the player to slowly regenerate his health back to full when they're injured. Intended to be used when surviving against large hordes of enemies.




Features:
  • coffee_health_regeneration 1 to turn on the effect.

  • When the player's health drops below 100, a slight health regeneration effect will kick in.

  • The effect regenerates 1 health every 2 seconds to the player.

  • The regeneration stops when the player reaches 100 health again (or dies).

Limitations:
  • This addon has only been tested for Single Player. There may be unnoticed bugs during multiplayer matches.

  • You can't tweak the health limit where the regeneration stops in-game. Download the addon manually and edit the LUA file yourself if the default value isn't what you want.




Credits:
  • Coffee Man: Coming up with the gameplay idea and creating this addon.


19 Comments
Chachu 14 Oct, 2024 @ 12:20am 
Does anyone know what kind of regeneration Alyx & Barney have? Is it possible to give that to another npc?
Mediumkey 13 Aug, 2024 @ 8:46am 
is there a way to speed it up?
Worst Eleanor Ever 6 Dec, 2023 @ 2:54pm 
portal health
Microsoft Powerpoint 1 Oct, 2023 @ 5:22am 
not working
Coffee Man  [author] 24 Aug, 2023 @ 6:43am 
I thought lua in autorun already run on server side. If something needs to run client side, you'd just put it inside the "client" folder.

Anyway, thanks for the tips, I'll update the addon soon. I'm not exactly the best when it comes to LUA because it's a pretty shit programming language, so there's always room for improvement in all my scripted addons.
Unknown Developer 24 Aug, 2023 @ 6:39am 
Move your script file to 'lua/autorun/server/{script-name}.lua' ( running it client-side makes no sense for your script ), and better use this one, it has much better performance: https://pastebin.com/ivJ6gK3k
Adam 󠀡 6: 23 Aug, 2023 @ 1:26am 
AWsome
Coffee Man  [author] 21 Aug, 2023 @ 10:42am