Garry's Mod

Garry's Mod

130 ratings
Jason's Health Regeneration
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun
File Size
Posted
Updated
2.138 KB
2 Jan, 2013 @ 12:27pm
23 Dec, 2015 @ 11:07am
20 Change Notes ( view )

Subscribe to download
Jason's Health Regeneration

Description
It works a bit differently than you think. For example you start with 100 health and you lose 10 leaving you at 90 health. A timer will start giving you 1 health point every 3 seconds. When your health is 97, the timer will become slower, taking 9 seconds to refill a point until you have 100 health again (The health you had when you got hit + the health you lost) or the health you had when you got hit divided by 0.50. The health that you are going to regain before the timer gets slower will be printed on the screen next to your health(If you have a different resolution you might have to change the height and width values from the spawn menu. You must not take any damage if you want to recover completely. Also, if your health gets below 75 then the last 3 health points that will be slower to get will be multiplied by 2, taking a minute to fully recover. Most of these values can be changed, however. See below for a list of console commands or just use the spawn menu.

It might be difficult to understand what exactly this addon works (because of my incredible explaination). I suggest you play around with it so you can understand it better.

Here is a list of console commands that you can use to customize the addon. Here is the list (x is the value you replace the default one with):

---------------------------------------->|

jhr_first_phase_regen_limit_1 (def: 0.50) The first limit of phase 1 regeneration (your health will be divided by x).

jhr_first_phase_regen_limit_2 (def: 9.9) The second limit of phase 1 regeneration (the x/10ths of your health).

jhr_first_phase_regen_limit_a (def: 0) An artificial limit of phase 1 regeneration (how many health points you should regain before stopping).

jhr_first_phase_regen_time (def: 3) The time it takes (in seconds) to regen a health point in phase 1 regeneration.

jhr_final_phase_regen_stp (def: 3) The starting point of phase 2 regeneration (How many health points before the phase 1 limit).

jhr_final_phase_regen_time (def: 9) The time it takes for you (in seconds) to regen a health point in phase 2 regeneration.

jhr_final_phase_before_penalty_amount (def: 25) The amount of health added to the first phase regen limit before the final phase becomes larger.

jhr_final_phase_after_penalty_amount (def: 2) The amount to be multiplied by the final phase regen time when punished.

---------------------------------------->|

If you find any bugs, please let me know.

Thank you for your time.
77 Comments
дабстеп мытищи 20 Apr @ 2:18pm 
i really like the idea though. but the implementation is ass
дабстеп мытищи 19 Apr @ 1:14pm 
seems interesting but you explained it poorly and there's no option to hide the indicator
blehmeh98 13 Oct, 2022 @ 8:02pm 
consider learning algebra in order to express your health system better. This just sounds a bit like a logarithmic or square-root health regen system, where the slope starts high but levels off as you get closer to max health.
ballsaSTEEL2001 2 Jul, 2021 @ 8:16pm 
I like to imagine this version of Health regeneration as the real life equivalent to Willpower
A man is wounded... but the pain makes him outraged he let himself be hurt. And the pain slowly numbs away even if the wound remains clear to see.
Goggles 28 Apr, 2017 @ 6:44pm 
creates many lua errors
Jay 15 Apr, 2017 @ 1:08pm 
When I am killed by an explosion or get crushed, I receive this script error:

[Jason's Health Regeneration] lua/autorun/server/jason's_health_regeneration.sr.lua:225: bad argument #1 to 'WriteFloat' (number expected, got nil)
1. WriteFloat - [C]:-1
2. unknown - lua/autorun/server/jason's_health_regeneration.sr.lua:225

Timer Failed! [STEAM_0:0:0R][@lua/autorun/server/jason's_health_regeneration.sr.lua (line 213)]
AMOGUS 1 Feb, 2017 @ 2:34pm 
i got constant messages saying the jason vorhees addon is creating errors. how do i fix that?
B2B InsaneScientist 11 Mar, 2016 @ 3:04pm 
(for another addon)
B2B InsaneScientist 11 Mar, 2016 @ 3:04pm 
Use this exactly and change it all for armor!
Alis 19 Jan, 2016 @ 10:21am 
great mod, i love it. only. how do i remove the blue number above health