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

[L4D2] Bonus Healing V-1.31 (Updated: 1/16/14)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mortiegama
Senior Member
Join Date: Feb 2010
Plugin ID:
1611
Plugin Version:
1.31
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    6 
    Plugin Description:
    Allows custom Survivor HP and healing values.
    Old 04-19-2010 , 21:25   [L4D2] Bonus Healing V-1.31 (Updated: 1/16/14)
    Reply With Quote #1

    General

    This plugin requires Sourcemod 1.5 or higher


    Description

    This plugin will allow you to set Survivor HP beyond the 100 HP standard. It will also allow you to set Bonus Healing values for when a Medkit or Pills are used. They're set with default values but can be changed by editing the plugin.L4D2.BonusHealing.cfg in the CFG\Sourcemod folder.


    Cvars

    <*>To change these values edit the plugin.L4D2.BonusHealing.cfg in the CFG\Sourcemod folder.
    • sm_bonushealing_version
    • sm_bonushealing_enable (Enabled 1, Disabled 0), Sets custom values for Survivor HP and bonus healing.
    • sm_bonushealing_spawn (Enabled 1, Disabled 0), Anytime a new player joins their health will be set to the SurvivorHP Cvar
    • sm_bonushealing_bot (Enabled 1, Disabled 0), Set if Bots will have their HP set.
    • sm_bonushealing_autorevive (Enabled 1, Disabled 0), Can players automatically revive once they are incapped (will not free them from infected).
    • sm_bonushealing_survivorhp (Default 150), Amount of HP that the Survivor starts with.
    • sm_bonushealing_survivorincaphp (Default 500), Amount of HP that the Survivor has when incapped.
    • sm_bonushealing_medkitannounce (Enabled 1, Disabled 0), Will players receive a message about being healed from a medkit.
    • sm_bonushealing_medkitbonushp (Default 20), Amount of bonus HP a survivor gets when healed with a medkit.
    • sm_bonushealing_medkitbuffhp (Default 10), Amount of bonus temporary HP a survivor gets when healed with a medkit.
    • sm_bonushealing_healermedkitbonus (Default 10), Amount of bonus HP the healer gets for healing another survivor with a medkit.
    • sm_bonushealing_healermedkitbuff (Default 50), Amount of bonus temporary HP the healer gets for healing another survivor with a medkit.
    • sm_bonushealing_pillsannounce (Enabled 1, Disabled 0), Will players receive a message about being healed from pills.
    • sm_bonushealing_pillsbonushp (Default 5), Amount of bonus HP a survivor gets when healed with a pills.
    • sm_bonushealing_pillsbuffhp (Default 10), Amount of bonus temporary HP a survivor gets when healed with a pills.
    • sm_bonushealing_adrenalineannounce (Enabled 1, Disabled 0), Will players receive a message about being healed from a adrenaline.
    • sm_bonushealing_adrenalinebonushp (Default 5), Amount of bonus HP a survivor gets when using adrenaline.
    • sm_bonushealing_adrenalinebuffhp (Default 10), Amount of bonus temporary HP a survivor gets when using adrenaline.
    • sm_bonushealing_reviveannounce (Enabled 1, Disabled 0), Will players receive a message about being healed from being revived.
    • sm_bonushealing_reviveebonushp (Default 10), Amount of bonus HP a survivor gets when revived.
    • sm_bonushealing_reviveebuffhp (Default 15), Amount of bonus temporary HP a survivor gets when revived.
    • sm_bonushealing_reviverbonushp (Default 5), Amount of bonus HP a survivor gets when reviving someone else.
    • sm_bonushealing_reviverbuffhp (Default 5), Amount of bonus temporary HP a survivor gets when reviving someone else.
    • sm_bonushealing_autorevivetimeout (Default 30), Time in seconds a survivor must wait between reviving.
    • sm_bonushealing_autorevivehp (Default 50), Amount of HP a survivor will receive once they are revived.
    • sm_bonushealing_autorevivechance (Default 20), Percent chance that a survivor has of autoreviving (20 = 20%).

    Installation
    • Download and copy [L4D2] Bonus Healing.smx to Addons/Sourcemod/Plugins
    • Delete the plugin.L4D2.BonusHealing.cfg in the CFG\Sourcemod folder

    Version History


    Version 1.31 - (1/16/14)
    <*>Patch to fix errors
    Version 1.3 - (1/14/14) - 10 Views

    <*>Added several Cvars to control bot healing and announcing healing to players
    <*>Cleaned up the code for closing timers
    <*>Added the ability to auto revive when incapacitated
    <*>When setting Survivor HP, set to remove B&W
    Version 1.24 - (2/19/11) - 1536 Views
    <*>Added a Cvar to determine if new players will have their Health reset

    Version 1.23 - (1/26/11) - 71 Views
    <*>Added bonus HP when you are revived and when you revive someone else

    Version 1.22 - (5/9/10) - 989 Views
    <*>Changed the way values are reset after a round

    Version 1.21 - (4/29/10) - 87 Views
    <*>Added additional checks for validate Clients
    <*>Added additional hooks for setting Survivor HP
    Version 1.2 - (4/25/10) - 75 Views
    <*>Added another check after Timer to make sure client still exists
    Version 1.1 - (4/24/10) - 18 Views
    <*>Added a timer to make sure that Survivor HP is set properly
    <*>Added bonus HP for healing another Survivor with the medkit
    <*>Added bonus HP when using adrenaline
    <*>Added a check to make sure Client 0 is not called
    Version 1.0 - (4/19/10) - 57 Views
    <*>Original launch of the plugin


    Special Thanks
    <*>ChinaGreenElvis - Autohelp
    <*>http://forums.alliedmods.net/showthread.php?t=170454
    <*>Used some code for Auto Revive


    Known Issues
    <*>None
    Attached Files
    File Type: sp Get Plugin or Get Source (L4D2 Bonus Healing.sp - 4825 views - 20.6 KB)

    Last edited by Mortiegama; 01-16-2014 at 11:53.
    Mortiegama is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-19-2010 , 21:27   Re: [L4D2] Bonus Healing V-1.0 (Updated: 4/19/10)
    Reply With Quote #2

    maybe you can add a cvar to customize the limit of survivor's HP because the original one is 100 HP
    chris1701 is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 04-19-2010 , 21:30   Re: [L4D2] Bonus Healing V-1.0 (Updated: 4/19/10)
    Reply With Quote #3

    @Chris - Heh, forgot that Cvar. It does have custom values for Survivor HP.
    __________________
    Mortiegama is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-20-2010 , 01:30   Re: [L4D2] Bonus Healing V-1.0 (Updated: 4/19/10)
    Reply With Quote #4

    Quote:
    Originally Posted by Mortiegama View Post
    @Chris - Heh, forgot that Cvar. It does have custom values for Survivor HP.

    If you have that cvar, it will make sense, Let me try this plugins. BTW: it is a great plugins
    chris1701 is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 04-20-2010 , 07:01   Re: [L4D2] Bonus Healing V-1.0 (Updated: 4/19/10)
    Reply With Quote #5

    Good, I think it sometimes .
    First Map Hp Survivor not change to 150, restart again it work!
    quang20082008 is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 04-20-2010 , 07:07   Re: [L4D2] Bonus Healing V-1.0 (Updated: 4/19/10)
    Reply With Quote #6

    You can add Cvars Bonus Health of Adrenaline , Thanks :@)!
    quang20082008 is offline
    chris1701
    Senior Member
    Join Date: Nov 2009
    Old 04-20-2010 , 09:34   Re: [L4D2] Bonus Healing V-1.0 (Updated: 4/19/10)
    Reply With Quote #7

    Quote:
    Originally Posted by quang20082008 View Post
    Good, I think it sometimes .
    First Map Hp Survivor not change to 150, restart again it work!
    I think he should fix that bug, sometimes it won't work
    chris1701 is offline
    Mortiegama
    Senior Member
    Join Date: Feb 2010
    Old 04-25-2010 , 22:22   Re: [L4D2] Bonus Healing V-1.1 (Updated: 4/24/10)
    Reply With Quote #8

    @Quang - I added a timer to check to make sure the Survivor HP gets set properly

    I've also updated the plugin to give bonus to the healer and when using adrenaline. Along with a minor bug check with the new DLC - The Passing.
    __________________
    Mortiegama is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 04-26-2010 , 06:05   Re: [L4D2] Bonus Healing V-1.1 (Updated: 4/24/10)
    Reply With Quote #9

    Quote:
    Originally Posted by Mortiegama View Post
    @Quang - I added a timer to check to make sure the Survivor HP gets set properly

    I've also updated the plugin to give bonus to the healer and when using adrenaline. Along with a minor bug check with the new DLC - The Passing.
    Thanks
    quang20082008 is offline
    Newf
    Senior Member
    Join Date: Dec 2009
    Old 04-26-2010 , 13:45   Re: [L4D2] Bonus Healing V-1.1 (Updated: 4/24/10)
    Reply With Quote #10

    great plugin. just installed/cfg'd it. getting this error.

    L 04/26/2010 - 1784: [SM] Native "SetEntProp" reported: Entity 6 (6) is invalid
    L 04/26/2010 - 1784: [SM] Displaying call stack trace for plugin "L4D2 Bonus Healing.smx":
    L 04/26/2010 - 1784: [SM] [0] Line 86, /home/groups/alliedmodders/forums/files/7/0/1/7/8/64403.attach::Timer_SetHealth()
    __________________
    I like to drink beer and shoot stuff. Video games are fun too i guess!
    Newf 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 06:04.


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