AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission ZP: Regeneration (https://forums.alliedmods.net/showthread.php?t=79302)

hleV 10-20-2008 14:58

ZP: Regeneration
 
8 Attachment(s)
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.


Fry! 10-20-2008 15:03

Re: ZP: Regeneration
 
Oh, I was going to create this in this week, but it's ok, good job. :D

Hammerfallerz 10-20-2008 15:40

Re: ZP: Regeneration
 
Does it ignore nemesis?

Fry! 10-20-2008 15:54

Re: ZP: Regeneration
 
I don't think cuz in code there was regenaration for all zombies...

Hammerfallerz 10-20-2008 15:55

Re: ZP: Regeneration
 
It would be good to add a cvar for ignoring regeneration:
Nemesis & last zombie.

ifx 10-20-2008 16:53

Re: ZP: Regeneration
 
thanks!

hleV 10-20-2008 17:28

Re: ZP: Regeneration
 
Updated. Check first post.

NestleMilo 10-20-2008 23:19

Re: ZP: Regeneration
 
Can you make this a seperate class plugin?

[Regeneration Zombie]

Fry! 10-21-2008 00:34

Re: ZP: Regeneration
 
hleV You are really good at this. :)

Hammerfallerz 10-21-2008 06:39

Re: ZP: Regeneration
 
Excuse me, hleV, can you make this plugin like a passive zombie skill? I mean so it will always (no need to being hit) regenerate zombie health for X hp every second with no timelimit (besides last zombie, nemesis & survivor)? And, of course, zombie's HP can't go over it classes max hp :)


All times are GMT -4. The time now is 16:58.

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