Garry's Mod

Garry's Mod

Jason's Health Regeneration
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
Misha 19 Jan, 2016 @ 10:06am 
Would it be possible to use negatives to periodically lose health as a way to simulate hunger or toxic environments? (Such as a post-apoc map)
Misha 17 Jan, 2016 @ 11:14am 
Allow me to try to explain: The more health you've lost, and the greater the amount of damage you've been dealt, the longer it takes for your health to regenerate. That's as far as I've understood, at least. Might have to test it out more.
Sneaki 15 Sep, 2015 @ 2:09pm 
Yeah, you've really not explained this well. I'm pretty damn confused.
Sir Boogulus Of Woogulus 6 Jun, 2015 @ 11:27am 
Well, the mod itself is pretty complicated. If he explained it in a simple manner, we may have failed to hear something important. It just takes a minute and a few re-readings to figure out.
6packramen 23 Mar, 2015 @ 11:05am 
Not to be rude but, next time, can you please not make the description so complicated?
AviatorSam 14 Mar, 2015 @ 6:34pm 
I'm getting an error with this addon.

[Jason's Health Regeneration] lua/autorun/server/jason's_health_regeneration.sr.lua:68: attempt to call method 'GetFloat' (a nil value)
1. unknown - lua/autorun/server/jason's_health_regeneration.sr.lua:68

Timer Failed! [mytimer1][@lua/autorun/server/jason's_health_regeneration.sr.lua (line 32)]
Derek Payne 7 Mar, 2015 @ 3:37pm 
now you can be deadpool
Dornek 5 Mar, 2015 @ 3:05am 
Fix it, or reporting "Not working"
Dornek 21 Jan, 2015 @ 6:43am 
''Something is creating script errors'' It wrote into console everytime i get shot

[Jason's Health Regeneration] lua/autorun/server/jason's_health_regeneration.sr.lua:28: attempt to call method 'GetFloat' (a nil value)
1. v - lua/autorun/server/jason's_health_regeneration.sr.lua:28
2. unknown - lua/includes/modules/hook.lua:84
VL4DST3R 1 Nov, 2014 @ 8:14am 
How the f**k do I remove that little number ? Looks like crap and has no use for me...
bologna 14 Oct, 2014 @ 4:41am 
Character isn't regenerating past 100. What the fuck?
RENDERMODE_NONE 13 Oct, 2014 @ 8:36pm 
I like this addon, but I wish I could disable the little number on the HUD; the indicator is really annyoing.

@Midnight, I believe you can do that by switching the values of the first phase and the second phase around.
loud == funny 1 May, 2014 @ 12:32am 
I'm trying to edit this so once i start regenerating health it will continue and slightly speed up (much like battlefields hp regen, but quite a bit slower) i've spent quite a while trying to figure out how to do it with the commands you have given us. Can someone please post what preferences i would need for this to work? i don't know if it's broken in the current version of gmod or i'm doing it wrong. :(
Truescreen 15 Dec, 2013 @ 1:27am 
I Think This Will Be Great For HL2 (Half-Life 2)
[DFS]toast 5 Dec, 2013 @ 5:58pm 
seems nice i might get it
jasondokusis  [author] 1 Dec, 2013 @ 2:26pm 
@Cass, Yup, net message was the only way to make a serverside addon show information on the client. Also, those seem like pretty good changes you've made. Good job!
Cass 1 Dec, 2013 @ 2:07pm 
@jasondokusis, heya, thanks. Didn't have much problem understanding it. I learn'd aA LOT by studying it. I extracted it using GMAExtractor. The only problem I had was with the whole net.message thing. It was used only to display the number on the HUD, was that the its only use?

In case you want to know, I modified it to make it so it regens only X% of damage taken (with the fisrt Y% being faster) but it would work only with one time damage, wouldn't heal the combined damage by being shot at several times in a short period of time. So I just made it heal X% of your max hp with Y% being faster. Also added default armor.
jasondokusis  [author] 1 Dec, 2013 @ 1:54pm 
@Cass, Also, two more things. First, since I have no idea how this works, do you need the text file? (dumb question, I know). Also, make sure to read the code carefully (it was my first ever addon and the coding in it is so bad, it is hard even for me to understand.
jasondokusis  [author] 1 Dec, 2013 @ 1:51pm 
@Cass, Don't worry about it. I know one of the best ways to learn is by looking at an example. If you need any help to understanding the code (or maybe even want a certain request), let me know. I may not have much time to code, but I would try my best.
Cass 30 Nov, 2013 @ 3:06pm 
Heya, would you mind if I butcher your code to suit my own needs? I want to mod it to something more to my liking.
jasondokusis  [author] 17 Nov, 2013 @ 1:22pm 
@Hahaha Thanks!
<internet_instigator> 17 Nov, 2013 @ 1:17pm 
No need for a vid, with that desc. :)
jasondokusis  [author] 7 Aug, 2013 @ 3:24pm 
I am unfortunately going away again until August 30.I will try to fix any bugs I find in my code, but any changes will not be published until I'm back, as I will not have an internet connection by the time I reach my destination.
jasondokusis  [author] 6 Aug, 2013 @ 5:59pm 
@Wolf, Sure, i'll start working on it tomorrow, since it's pretty late where I live. Thanks for the suggestion.
Bubble 6 Aug, 2013 @ 4:40pm 
Hi there, love your mod. only one thing to ask: could you also add an option for default/max armor value, so players could spawn with armor and change how much they can have?
jasondokusis  [author] 2 Aug, 2013 @ 8:33am 
@ElementalRiot, I don't know how to do such a thing yet. However, I will do some research. I'll see what I can do.
jasondokusis  [author] 2 Aug, 2013 @ 8:31am 
Hello! I've been away from home (unfortunately I will be going away again on August 8th).
Sorry it happened so suddently but I didn't have the time to announce it. Point is, I am available until August 8th.
ElementalRiot 19 Jun, 2013 @ 12:29pm 
Can you make a addon like this for npc's?
jasondokusis  [author] 13 Jun, 2013 @ 12:11pm 
I've created two more addons a few weeks ago. However, my friends' lack of desire and time to help me test them make them impossible to upload.
jasondokusis  [author] 11 Jun, 2013 @ 12:12am 
I've just found out that there are some errors in the addon. It seems that the default preset doesn't work and the health doesn't regenerate for some reason. I'll try to find the source of the problem.
Stream Lord 10 Jun, 2013 @ 11:16am 
@ jasondokusis lol cheers man!
jasondokusis  [author] 10 Jun, 2013 @ 1:52am 
@ Sir Hennington The addon is finished. It's name is Jason's Simple Regen (Request). What's funny is that the image took me 10x time to make than the addon itself :)
Stream Lord 9 Jun, 2013 @ 8:31am 
No need to rush c:
jasondokusis  [author] 9 Jun, 2013 @ 8:03am 
Slight setback. Errors with the image. I'll fix it but it'll take time.
jasondokusis  [author] 9 Jun, 2013 @ 6:50am 
@ Sir Hennington No problem. Happy to help.

P.S. I've just finished your request. Uploading now.
Stream Lord 9 Jun, 2013 @ 3:01am 
@jasondokusis wow cheers dude! c:
jasondokusis  [author] 9 Jun, 2013 @ 2:36am 
@Sir Hennington That shouldn't be too hard to do. I'll get to it.
Stream Lord 8 Jun, 2013 @ 11:18am 
Could you make a simple health regen? I love this addon its just i get muddled up with it, while trying to set it to a Battlefield style regen. Just make one that lets you choose how fast it regens and how fast untill it starts?
Shy 6 Jun, 2013 @ 5:17am 
:) I look forward to it.
jasondokusis  [author] 6 Jun, 2013 @ 2:50am 
I'm working on a new addon. It changes your speed depending on the health you have and the damage you have just taken if any. I have to test it a bit first and then I'll upload it.