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

HP Fix after the latest Steam Update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
john_dillinger
Junior Member
Join Date: Jun 2011
Old 10-17-2011 , 09:55   HP Fix after the latest Steam Update
Reply With Quote #1

Hi ppl,

I've just finished developing and testing a small plugin to fix the HP limit bug.
You have nothing to do on you configuration (no need to change classes attributes).

The plugin is working as follows: when a human is infected, he has to jump once to fix the HP. The HP will be set to 500. The remaining is kept for later use. On every damage, the hp will be initiated to 500 and the delta is deducted from the remaining that we defined before. When no remaining HP anymore, the zombie will die.

Dont forget to use jump for each zombie respawn.
If you have installed another plugins related to this bug, remove it to avoid problem.


Example:

For a zombie with 2000 hp, for the first time when it jumps or gets hurt, its HP will be to 500. The remaining which is 1500 will be kept.
When it get hurt by for example 45 damage, its HP will be set to 500 and the remaining will be 1500 - 45 = 1455
As far as there are remaining HP, the HP will be increased.

Best regards,
John
Attached Files
File Type: smx sm_hpfix.smx (4.7 KB, 337 views)
File Type: sp Get Plugin or Get Source (sm_hpfix.sp - 320 views - 5.3 KB)

Last edited by john_dillinger; 10-17-2011 at 15:36.
john_dillinger is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 10-17-2011 , 09:56   Re: HP Fix after the latest Steam Update
Reply With Quote #2

You need to attach a source as well.
KyleS is offline
john_dillinger
Junior Member
Join Date: Jun 2011
Old 10-17-2011 , 10:03   Re: HP Fix after the latest Steam Update
Reply With Quote #3

Done for the source
john_dillinger is offline
CatsyLady
Senior Member
Join Date: Oct 2009
Location: Germany
Old 10-17-2011 , 10:19   Re: HP Fix after the latest Steam Update
Reply With Quote #4

umm
this is probably better than damage reducer

i give it a try


***edit

zombies not die on AWP headshot?

Last edited by CatsyLady; 10-17-2011 at 10:28.
CatsyLady is offline
nikooo777
AlliedModders Donor
Join Date: Apr 2010
Location: Lugano, Switzerland
Old 10-17-2011 , 11:01   Re: HP Fix after the latest Steam Update
Reply With Quote #5

one question, in a 64 players server, won't this plugin cause lags?
handling the health of 64 players isn't that soft for a server...
__________________
nikooo777 is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 10-17-2011 , 11:01   Re: HP Fix after the latest Steam Update
Reply With Quote #6

If Zombie regen enable.

How to work by health regen?

500 / fake health + regen?


or

500+ regen?
/

nikooo777, I send u message
jungjunghoo is offline
john_dillinger
Junior Member
Join Date: Jun 2011
Old 10-17-2011 , 11:15   Re: HP Fix after the latest Steam Update
Reply With Quote #7

@jungjunghoo

I've just added the regen support:
500 / fake health + regen
redownload.
john_dillinger is offline
jungjunghoo
Senior Member
Join Date: Sep 2009
Old 10-17-2011 , 11:19   Re: HP Fix after the latest Steam Update
Reply With Quote #8

Quote:
Originally Posted by john_dillinger View Post
@jungjunghoo

I've just added the regen support:
500 / fake health + regen
redownload.
Still 500+regen
jungjunghoo is offline
john_dillinger
Junior Member
Join Date: Jun 2011
Old 10-17-2011 , 12:04   Re: HP Fix after the latest Steam Update
Reply With Quote #9

@jungjunghoo
Fixed bug when user regenerates before getting hurt, it doesn't loose its old fake HP.

Test and tell me.
john_dillinger is offline
Paparazziv2
Senior Member
Join Date: Feb 2011
Location: Chile, La Serena
Old 10-17-2011 , 17:41   Re: HP Fix after the latest Steam Update
Reply With Quote #10

Hi, i can't understand the function of this plugin than damage_reducer, this plugin changes the values to de default health and the zombies not bugs with the floor?, Zombie HP = 1500 in playerclasses.txt and the zombies take 1500 hp and not buged? or reduce the damage ?? :S sorry but i am a stupid xD!
__________________
Sorry for the bad english please.

Paparazziv2 is offline
Send a message via MSN to Paparazziv2
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 07:53.


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