Raised This Month: $32 Target: $400
 8% 

View Poll Results: Should the Tank/Witch be able to regenerate HP?
Yes, both of them should regenerate 4 23.53%
Just the Tank should regenerate 6 35.29%
Just the Witch should regenerate 0 0%
No, neither should regenerate 7 41.18%
Voters: 17. You may not vote on this poll

[L4D2] HP Regeneration V-1.63 (1/26/11)


Post New Thread Reply   
 
Thread Tools Display Modes
marvel
BANNED
Join Date: Dec 2009
Old 03-21-2010 , 16:58   Re: [L4D2] HP Regeneration
Reply With Quote #11

Quote:
Originally Posted by Mortiegama View Post
@Alex - That would make it incredibly overpowered and you wouldn't be killing anything.

@Marvel

1) You need to edit the HP.Regeneration.cfg file in the Sourcemod folder to change the values.

2) Bots are now regenerating

3) It was not calculating incapped properly and has now been changed.

4) It's hooked to players being hurt but it should be working better now
Great, thanks for the fixes! I did edit the .cfg btw and set it to 5 seconds, but it was still increasing every 3 seconds.
marvel is offline
Mortiegama
Senior Member
Join Date: Feb 2010
Old 03-21-2010 , 21:17   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #12

@Skorpion - Thanks for the tip on the call for Survivors. Made that change and removed the KillTimer. Shouldn't be necessary for this plugin.
Mortiegama is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 03-22-2010 , 00:15   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #13

i think alex means - the person has to not take any damage for x seconds before regeneration starts.
dirka_dirka is offline
alexip121093
Senior Member
Join Date: Dec 2009
Location: Hong Kong
Old 03-22-2010 , 00:42   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #14

Quote:
Originally Posted by dirka_dirka View Post
i think alex means - the person has to not take any damage for x seconds before regeneration starts.
yes
alexip121093 is offline
Send a message via MSN to alexip121093
triggerman
Senior Member
Join Date: Jun 2009
Old 03-22-2010 , 01:24   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #15

you should change the name of the auto generated config so it doesnt interfere with Bl4nk's plugin.
__________________
triggerman is offline
marvel
BANNED
Join Date: Dec 2009
Old 03-22-2010 , 18:20   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #16

Thanks for the fixes, i'm testing now
marvel is offline
marvel
BANNED
Join Date: Dec 2009
Old 03-23-2010 , 08:48   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #17

Quote:
Originally Posted by marvel View Post
Thanks for the fixes, i'm testing now
So far so good from what I can see, I love this plugin. Now I can even create more action by making the special infected much better and still give the survivors a chance to make it to the end.

I've started with regeneration to max 50 though, and 1 HP each 5 seconds.

For SI it's 10 HP each 3 seconds and I like these values so far ;)

Btw I don't think tank and/or witch should re-generate. It would be boring when you're busy for 1 hour killing tank since he will most certainly hide somewhere when he's almost dead to re-charge his HP. If you want a better tank just increase tank's HP. I have with 24vs 2 tanks with both 15000hp and they are very hard to deal with already

Last edited by marvel; 03-23-2010 at 11:44.
marvel is offline
Cuthbert
Senior Member
Join Date: Nov 2009
Old 03-23-2010 , 20:41   Re: [L4D2] HP Regeneration
Reply With Quote #18

Quote:
Originally Posted by alexip121093 View Post
can you add a CVAR about the player not take any damage for a period of time then start regeneration
A lot of popular action game titles use this method, and I'd like for this to be available too, before I try using the plugin. I'd like to use it to allow for pretty rapid health regen after an Infected player takes themselves out of the action. Having it as a constant regen with no delay would make for a) long periods of inactivity for players trying to get their health back to full or b) game-breaking regeneration that gives the Infected a strong advantage over the Survivors.
Cuthbert is offline
Jo-Barf_Creepy
Member
Join Date: Mar 2010
Location: Denmark
Old 03-25-2010 , 08:12   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #19

On my server, I sat tickrate to 6, and all other players regenerate with 3. How do I fix this??
Jo-Barf_Creepy is offline
psychonic

BAFFLED
Join Date: May 2008
Old 03-25-2010 , 09:13   Re: [L4D2] HP Regeneration V-1.12 (3/21/10)
Reply With Quote #20

Quote:
Originally Posted by Mortiegama View Post
...and removed the KillTimer. Shouldn't be necessary for this plugin.
What?

You're creating a repeat-indefinitely timer the first time any infected gets hurt and never returning Plugin_Stop in the callback or using CloseHandle or KillTimer on the timer. That will definitely leak memory.

It looks like you should add a hook on player_death and then do the following in the callback
PHP Code:
new client GetClientOfUserId(GetEventInt(event"userid"));
if (
clientTimer[client] != INVALID_HANDLE)
{
    
CloseHandle(clientTimer[client]);
    
clientTimer[client] = INVALID_HANDLE;

You will also want to do similar whenever a client disconnects.

You can also make your timer callback use a switch() statement for the player class check as you will never have more than 1 case be true.
psychonic 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 21:36.


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