Raised This Month: $51 Target: $400
 12% 

HpRegeneration


Post New Thread Reply   
 
Thread Tools Display Modes
aeroplane10
Member
Join Date: Jan 2011
Location: Scotch Plains, NJ
Old 08-18-2011 , 09:34   Re: HpRegeneration
Reply With Quote #81

Is there any way to assign this to a specific flag?
Thanks!
__________________
aeroplane10 is offline
Lingus
Member
Join Date: Jan 2010
Location: UK
Old 02-17-2012 , 13:36   Re: HpRegeneration
Reply With Quote #82

works great, thanks dude. Was using the other HP regen plugin but the console spam was unbearable.
Lingus is offline
XyzKiller
Junior Member
Join Date: Mar 2012
Old 03-21-2012 , 18:02   Re: HpRegeneration
Reply With Quote #83

Works perfectly on my Synergy server.
XyzKiller is offline
derbmann
Junior Member
Join Date: Jul 2013
Old 07-12-2013 , 11:21   Re: HpRegeneration
Reply With Quote #84

Hello,

Can you add the function that you only regenerate HP if you have the Knife in your Hand? (or other weapon)

best regards,

derbmann
derbmann is offline
diesel_power
Junior Member
Join Date: Aug 2013
Old 08-08-2013 , 13:49   Re: HpRegeneration
Reply With Quote #85

del

Last edited by diesel_power; 09-14-2018 at 10:07.
diesel_power is offline
Figa
Member
Join Date: Apr 2011
Location: Siberia
Old 05-30-2014 , 08:01   Re: HpRegeneration
Reply With Quote #86

I changed this plugin for my L4D server. As in L4D "temporary" and "constant" health is used. I didn't like that if at you "temporary" health starts being regenerated "constant".



Now if you have no "constant" health, regeneration doesn't happen.

As after change of the card health regeneration wasn't started while you won't gets hurt. It also fixed.
Attached Files
File Type: sp Get Plugin or Get Source (hpregeneration.sp - 1236 views - 9.7 KB)
Figa is offline
Wolfseye
Senior Member
Join Date: Apr 2014
Location: Germany
Old 05-30-2014 , 08:11   Re: HpRegeneration
Reply With Quote #87

I suppose that doesn't work on INSURGENCY (Standalone), right ? Since the Game doesn't have any health regeneration and for the most part would take away from the reaslism. But just out of curiousity, can anyone say if that has been tested already ?

Thanks in advance.

Wolfseye

P.S: Tested, doesn't work with INS. Probably right because there is no real HP thingy in Insurgency. But you'll never know, might have worked. ;)

Last edited by Wolfseye; 05-30-2014 at 09:18.
Wolfseye is offline
Send a message via Skype™ to Wolfseye
alencore
Senior Member
Join Date: Oct 2011
Old 02-02-2015 , 07:52   Re: HpRegeneration
Reply With Quote #88

Quote:
Originally Posted by senseit View Post
I made the following changes to your plugin, and have attached the source..

Made the plugin have seperate configuration for 2 different teams defined with the teamindex variable.

New configuration layout..
Code:
sm_hpregeneration_enable 1
sm_hpregeneration_respawn 0
sm_hpregeneration_bots 0

sm_hpregeneration_mode 2

sm_hpregeneration_team1 2
sm_hpregeneration_tickrate1 1
sm_hpregeneration_health1 125
sm_hpregeneration_amount1 2

sm_hpregeneration_team2 3
sm_hpregeneration_tickrate2 1
sm_hpregeneration_health2 200
sm_hpregeneration_amount2 6
It's more or less the same options except, for 2 seperate teams..

I also modified the events so that on spawn, a players health is automatically set to sm_hpregeneration_health(1/2) (depending on which team they're on)..

The sm_hpregeneration_team2 value assigns which team is team1 and which is team2 using the team index. You can use mani admin ma_teamindex to find out which index number each team is (this is how i did it).

It's ugly, but it works. You may want to clean up the code if you decide to integrate it into your plugin. Keep all the rights to it, I just wanted something that worked for 2 teams separately.
This is absolutely perfect and it works thank you very much sir! T Y M as well to the original of course hehe.
__________________
alencore is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode