Raised This Month: $7 Target: $400
 1% 

[L4D] Health Bonus Update Fix


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Downtown1
Veteran Member
Join Date: Mar 2004
Plugin ID:
795
Plugin Version:
0.1.2
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    Fix health bonus for the healee not updating when a person heals someone else
    Old 03-04-2009 , 02:14   [L4D] Health Bonus Update Fix
    Reply With Quote #1

    L4D Health Bonus Update Fix 0.1.2

    This plugin will fix the health bonus not updating after healing someone. Basically if A heals B, then the health bonus for A will update, but the health bonus for B will not update till someone shoots him.

    Boost the Health Bonus Legitimately
    There is one legitimate way to "bump" up the health bonus, basically if you have 80hp and a medkit and another person has 10hp and no health pack, then you would heal the person with 10hp. In this case it is no longer necessary to shoot the other person to get the health pack bonus to update.

    Note: Originally this fixed a health bonus exploit due to pill passing or healing, but the purely exploitative part was patched by Valve in a March 11, 2009 patch.


    In other words health bonuses will always update when someone is healed or pills are passed around.


    This plugin will block the exploits related to the health bonus in Versus mode.

    Exploit Description:
    1) Passing pills around before closing the safe room door
    2) Healing others with low health and then shooting them

    In situation #1 the game thinks everyone has pills.
    In situation #2 the game thinks the healer still has a medkit so it's the same thing as getting 2+ extra medkits at the end of a level.

    Why Use The Exploit?
    In both situations it is possible for the health bonus to go from 120 something to 180 and thus you get easily 60x4=240 more points (and that's just for map1), easily up to 1500 extra points overall on the campaign just from health bonus glitching.

    I look forward to people picking this up until VALVe fixes it in their own patch, since currently teams glitching the health bonus virtually eliminates any point difference one might've had otherwise.

    How Is The Exploit Blocked?
    Whenever pills are passed to another player or someone is healed, the health bonus update algorithm gets run. We force L4D to update the health bonus for the affected players by giving them +1 temporary health (if they hadn't any temporary hp already), which almost immediately drains down to 0 temporary health.



    Thanks to:
    Fission for helping me test this throughout the entire lifespan and helping me figure out how to reproduce the two health bonus exploits.

    Trinity Gaming for doing a "live" 4 survivors test without using cheats or any SM commands.

    ShadoMagi for inspiring me on using the side-effects of m_healthBuffer to update the health bonus.

    CHANGELOG
    • 0.1.2 - Changed version cvar to l4d_eb_health_bonus (it was too long), and removed all compilation warnings
    • 0.1.1 - The health bonus will update 0.1 seconds faster than in v0.1
    • 0.1 - Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_exploit_health_bonus_block.sp - 3088 views - 9.5 KB)

    Last edited by Downtown1; 03-14-2009 at 03:52.
    Downtown1 is offline
    Dark-Reaper
    Member
    Join Date: Jan 2009
    Old 03-04-2009 , 03:41   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #2

    I'v never heard this exploit until now.

    But there is idiots everywhere, I'll probably install it.
    Dark-Reaper is offline
    General Balls
    New Member
    Join Date: Mar 2009
    Old 03-04-2009 , 03:44   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #3

    Before I whack this on my server, what exactly does this do to circumvent the exploit?

    I understand how the exploit works (you explained that well), but I'm still not sure what this plugin does to stop it.
    General Balls is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 03-04-2009 , 04:09   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #4

    Quote:
    Originally Posted by General Balls View Post
    Before I whack this on my server, what exactly does this do to circumvent the exploit?

    I understand how the exploit works (you explained that well), but I'm still not sure what this plugin does to stop it.
    Good question! I updated my post with this :

    How Is It Blocked?
    Whenever pills are passed to another player or someone is healed, the health bonus update algorithm gets run. We force L4D to update the health bonus for the affected players by giving them +1 temporary health (if they hadn't any temporary hp already), which almost immediately drains down to 0 temporary health.
    Downtown1 is offline
    Waukeen
    Junior Member
    Join Date: Jan 2009
    Old 03-04-2009 , 16:27   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #5

    Nice been looking for something like this for my server. Will be installing it and let you know if anything weird crops up.
    Waukeen is offline
    Number Six
    Senior Member
    Join Date: Dec 2008
    Old 03-04-2009 , 16:32   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #6

    Sourcemod Compiler 1.2.0


    /home/groups/sourcemod/upload_tmp/phpJ2CTad.sp(374) : warning 203: symbol is never used: "format"
    Header size: 2372 bytes
    Code size: 2044 bytes
    Data size: 756 bytes
    Stack/heap size: 16384 bytes; Total requirements: 21556 bytes

    1 Warning.
    __________________


    Number Six is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 03-04-2009 , 16:43   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #7

    Quote:
    Originally Posted by Number Six View Post
    Sourcemod Compiler 1.2.0


    /home/groups/sourcemod/upload_tmp/phpJ2CTad.sp(374) : warning 203: symbol is never used: "format"
    Header size: 2372 bytes
    Code size: 2044 bytes
    Data size: 756 bytes
    Stack/heap size: 16384 bytes; Total requirements: 21556 bytes

    1 Warning.
    My my, picky aren't we? Uploaded the same version with the warning removed.
    Downtown1 is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 03-04-2009 , 18:09   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #8

    Warnings arent as important as Errors, if you used the online compiler to compile some of the plugins on the board, they may give you a few warnings. Not uncommon but good not to have.
    __________________

    DontWannaName is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 03-05-2009 , 03:29   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #9

    Minor update to 0.1.2 - Changed version cvar to l4d_eb_health_bonus (it was too long), and removed all compilation warnings

    If anyone is wondering I was testing this throughout 3 scrims and 2 pub games today and it went just fine working as it should, didn't crash the server either.
    Downtown1 is offline
    Downtown1
    Veteran Member
    Join Date: Mar 2004
    Old 03-07-2009 , 19:31   Re: [L4D] Health Bonus Exploit Blocker
    Reply With Quote #10

    If you are using this plugin and are also using my Ready-Up Mod 0.15.0 or later, then you may delete this plugin. The same functionality is featured in the RUP mod.
    Downtown1 is offline
    Reply


    Thread Tools
    Display Modes

    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 23:56.


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