- Regenerates main health over time after using Adrenaline, Pain Pills or First Aid.
- Highly customisable, how much health, how fast, if temp health should be removed or replaced etc.
- Option to always regenerate main or temporary health.
- Iizuka07 - For the request.
Saved to l4d_healing.cfg
in your servers \cfg\sourcemod\
// 0=Plugin off, 1=Plugin on.
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
// 0.0=Off. After taking damage wait this long before regenerating health again.
// How much health to apply while the effect is active.
// Maximum player health to prevent over-healing.
// Heal when their movement speed is slower than this. 0.0=Off. 76=Crouched. 86=Walking. 250=Running.
// Maximum health Adrenaline can regenerate (L4D2 only).
// Maximum health First Aid can regenerate.
// Maximum health Pain Pills can regenerate.
// 0=Items regen main health. Regen with temp health: 1=Adrenaline (L4D2 only), 2=Pain Pills, 4=First Aid. 7=All. Add numbers together.
// Survivors always regenerate health. 0=Off. 1=Main health. 2=Temp health. 3=Main health and replace temp while healing.
// When allowed item types are used: 1=Remove health applied. 2=Replace temp health when healing with main health. 3=Both.
// How often to heal the player.
// Which item to affect. 0=None, 1=Adrenaline (L4D2 only), 2=Pain Pills, 4=First Aid. 7=All. Add numbers together.
// Healing plugin version
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
- Various changes to tidy up code.
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
- Fixed incorrect cvar change hook breaking "l4d_healing_moving" in L4D1. Thanks to "Dragokas" for reporting.
- Optimized the way cvars are read to use less CPU cycles.
- Fixed affecting temporary health while incapacitated.
- Added cvar "l4d_healing_damage" to temporarily block regenerating health when taking damage.
- Added cvar "l4d_healing_regen_type" to set which items heal main or temp health.
- Added cvar "l4d_healing_regenerate" to always regenerate main or temporary health.
- Changed cvar "l4d_healing_temp" to control removing temp health. Recommended value "1, last version was "0".
- Changed cvar "l4d_healing_type" to disable regenerating health from items.
- Added feature to regenerate health from First Aid Kits.
- Added cvar "l4d_healing_regen_first" to set First Aid health.
- Changed cvar "l4d_healing_type" to include First Aid.
- Initial release.
Updating from 1.1 or older:
- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.