• Auto-Regen Script
    25 replies, posted
This is an auto-regen script that Kogitsune helped me out with. How does this work: Default: Every time you receive damage, you get a 5 second health-regen penalty, and after those 5 seconds are over, your health regenerates at 1 health point per 1.25 sec. Per-Section Regen: Same as default, BUT: it won't regen past every 25 health points, as in if your health is lower than 75, it won't regen past 75, lower than 50, won't regen past 50 and so on. Heal-Ramps (compatible with both Per-Section Regen and Default Regen types): Every 3 healing sequences, the amount of health you receive is by 1 health point bigger. For example: you received 1 health point every 3 sequences, and the next 3 sequences will be 2 health points. [b]Commands:[/b] [b]ar_toggle - [i]toggles the Auto-Regen script[/i][/b] [b]ar_persectionregen - [i]toggles 'Per-Section Regen' type[/i][/b] [b]ar_healramps - [i]toggles 'Heal-Ramps Regen' type[/i][/b] Tested in Singleplayer and Multiplayer! How to install: 1. Extract somewhere; 2. Check if there isn't another 'Auto Regen' folder inside the 'Auto Regen' folder; 3. If not, cut/copy-paste to addons; 4. Done. YouTube Videos: 1.2: [media]http://www.youtube.com/watch?v=aPxh161HgCM[/media] 1.0: [media]http://www.youtube.com/watch?v=1hn6Oe5RDpM[/media] [url=http://www.garrysmod.org/downloads/?a=view&id=99755][img]http://www.garrysmod.org/img/?t=dll&id=99755[/img][/url] Changelog: 1.4: + Added in a customizable regeneration delay variable + Added in a customizable damage regeneration delay variable + Added in an admin-only menu (Q > Utilities) 1.3: /\ From now on, a player's health will be regenerated to his maximum health amount instead of 100 health points 1.2: + Added 'Heal-Ramps' (adds 1 additional heal point after each 3 heal sequences) 1.1: + Auto-Regen is now toggleable! (thanks to Kogitsune for pointing out what wasn't working!(command is [b]ar_toggle[/b])) + Added 'Per-Section Regen' (won't heal past 75 if you have health less than 75 and so on(command is [b]ar_persectionregen[/b])) Once again, thanks to Kogitsune for the help!
This is fucking incredible [/sarcasm]
[QUOTE=TehBigCheese;18524493]This is fucking incredible [/sarcasm][/QUOTE] Actually a lot of people requested scripts like this, be nice to this guy.
Haha this is pretty cool. I'm surprised this hasn't been done before. good job
is there a toggle cvar?
[QUOTE=Rallepower;18527099]is there a toggle cvar?[/QUOTE] Not yet, I might add it in later.
[QUOTE=LEETNOOB;18527655]Not yet, I might add it in later.[/QUOTE] Do it and you get my download
Update released, link: [url=http://www.garrysmod.org/downloads/?a=view&id=84203][img]http://www.garrysmod.org/img/?t=dll&id=84203[/img][/url] New stuff: 1.1: + Auto-Regen is now toggleable! (command is ar_toggle) + Added 'Per-Section Regen' (won't heal past 75 if you have health less than 75 and so on(command is ar_persectionregen))
This seems surprisingly Familiar...
[QUOTE=Wizey!;18542384]This seems surprisingly Familiar...[/QUOTE] Indeed, almost reminds me of this: [url]http://www.garrysmod.org/downloads/?a=view&id=17348[/url]
[QUOTE=Python1320;18542854]Indeed, almost reminds me of this: [url]http://www.garrysmod.org/downloads/?a=view&id=17348[/url][/QUOTE] Never actually saw this, thought of this 'Per-Section Regen' myself, didn't think there was another one.
[QUOTE=Python1320;18542854]Indeed, almost reminds me of this: [url]http://www.garrysmod.org/downloads/?a=view&id=17348[/url][/QUOTE] I tried that. It was broken, and the boxes didn't even show up. Thus I switched to this.
AAHH!!! Oh my god, finally it's back again! Thanks Leetnoob! Regenerating HP has always been a fantastic thing every game should have.
[QUOTE=jakejakke;18544266]AAHH!!! Oh my god, finally it's back again! Thanks Leetnoob! Regenerating HP has always been a fantastic thing every game should have.[/QUOTE] No problem.
[QUOTE=LEETNOOB;18542943]Never actually saw this, thought of this 'Per-Section Regen' myself, didn't think there was another one.[/QUOTE] Like the health boxes addon...?
[QUOTE=Wizey!;18546617]Like the health boxes addon...?[/QUOTE] Yes, that one.
Fucking finally, I asked for this almost a year ago. Thanks so much.:glomp:
You know what would be nice? Adjustable time and healing ramps. For example, the ability to regen like the Medic in TF2. 3 HP per second, but it ramps up depending on the time since damaged. So it's initially 3 HP per second, then after 5 seconds it's 4 HP, and after 10 Seconds it's 6 HP.
[QUOTE=SGTNAPALM;18694803]You know what would be nice? Adjustable time and healing ramps. For example, the ability to regen like the Medic in TF2. 3 HP per second, but it ramps up depending on the time since damaged. So it's initially 3 HP per second, then after 5 seconds it's 4 HP, and after 10 Seconds it's 6 HP.[/QUOTE] Good idea, I'll give it a try.
WOAH, everybody who downloaded the 1.2 version, please, delete it and download this FIX: [url=http://www.garrysmod.org/downloads/?a=view&id=84983][img]http://www.garrysmod.org/img/?t=dll&id=84983[/img][/url] I was so stupid and used a single local on ALL clients instead of using separate metatables for every client... New stuff: 1.2: + Added 'Heal-Ramps' (adds 1 additional heal point after each 3 heal sequences)
Nice work!
This will come in handy for my server. It's so annoying when you bash yourself on a prop and your HP is stuck in flashing red...
Is it possible to modify the health regeneration speed? Also nice far cry 2 health ramp system
Is it possible to get this, only for armor? I don't want regenerating health, but regenerating suit energy is something I'd like to use with garrysmod deathmatches. EDIT: Nevermind, 5 seconds in notepad and I've changed it to regenerate Armor instead. Good script, man.
it would be nice if there was a command to change the speed of the regen.
[QUOTE=Sonic1993;22221274]Is it possible to modify the health regeneration speed? [/QUOTE] [QUOTE=ZenX2;22252181]it would be nice if there was a command to change the speed of the regen.[/QUOTE] I'll add this in the next update. [QUOTE=Djonin;22247924]Is it possible to get this, only for armor? I don't want regenerating health, but regenerating suit energy is something I'd like to use with garrysmod deathmatches. EDIT: Nevermind, 5 seconds in notepad and I've changed it to regenerate Armor instead. Good script, man.[/QUOTE] If you haven't seen my Armor Regen script, then check it out: [url]http://www.facepunch.com/showthread.php?t=883270[/url] [editline]11:52AM[/editline] Done, link: [url=http://www.garrysmod.org/downloads/?a=view&id=99755][img]http://www.garrysmod.org/img/?t=dll&id=99755[/img][/url] What's new? 1.4: + Added in a customizable regeneration delay variable + Added in a customizable damage regeneration delay variable + Added in an admin-only menu (Q > Utilities)
Sorry, you need to Log In to post a reply to this thread.