The code was created by request for Zombie Plague Mod and I decided to make this as a ZP sub-plugin, though I'm not using or playing this mod. This was not tested by myself but someone else said that it works perfectly.
So, what it does?
As the title says, it makes zombies regenerate their health after being hit.
There are several CVars to configure everything as you want:
- zp_regeneration <1|0> - enables/disables plugin.
- zp_regen_time <#> - every x seconds zombie will get back some health.
- zp_regen_amount <#> - how many health zombie will get on every x seconds.
- zp_regen_nemesis <1|0> - enables/disables regeneration for Nemesis.
- zp_regen_firstzombie <1|0> - enables/disables regeneration for the first zombie.
- zp_regen_lastzombie <1|0> - enables/disables regeneration for the last zombie.
Modules:
Fakemeta.
To do:
Set CVar so only Nemesis/first zombie/last zombie could regenerate.
Note: To compile the plugin, you MUST have zombieplague.inc in your scripting/include folder.
Changelog:
Quote:
1.2:- Removed Survivor CVar though Survivor is not a zombie.
- Added CVars to control first and last zombie regeneration.
1.1:Added CVars to control regeneration of Nemesis.
|