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