Raised This Month: $ Target: $400
 0% 

Subplugin Submission ZP: Regeneration


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-20-2008 , 14:58   ZP: Regeneration
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (zp_regeneration.sma - 3719 views - 2.0 KB)
__________________

Last edited by Excalibur.007; 06-27-2011 at 11:41. Reason: Fixed plugin by tei1995
hleV is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-20-2008 , 15:03   Re: ZP: Regeneration
Reply With Quote #2

Oh, I was going to create this in this week, but it's ok, good job.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 10-20-2008 , 15:40   Re: ZP: Regeneration
Reply With Quote #3

Does it ignore nemesis?
Hammerfallerz is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-20-2008 , 15:54   Re: ZP: Regeneration
Reply With Quote #4

I don't think cuz in code there was regenaration for all zombies...
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 10-20-2008 , 15:55   Re: ZP: Regeneration
Reply With Quote #5

It would be good to add a cvar for ignoring regeneration:
Nemesis & last zombie.
Hammerfallerz is offline
ifx
Senior Member
Join Date: Apr 2008
Old 10-20-2008 , 16:53   Re: ZP: Regeneration
Reply With Quote #6

thanks!
ifx is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 10-20-2008 , 17:28   Re: ZP: Regeneration
Reply With Quote #7

Updated. Check first post.
__________________
hleV is offline
NestleMilo
BANNED
Join Date: May 2008
Location: http://zombieplague.org
Old 10-20-2008 , 23:19   Re: ZP: Regeneration
Reply With Quote #8

Can you make this a seperate class plugin?

[Regeneration Zombie]
NestleMilo is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 10-21-2008 , 00:34   Re: ZP: Regeneration
Reply With Quote #9

hleV You are really good at this.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 10-21-2008 , 06:39   Re: ZP: Regeneration
Reply With Quote #10

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
Hammerfallerz is offline
Reply


Thread Tools
Display Modes

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 16:57.


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