Raised This Month: $ Target: $400
 0% 

[ZP50] Addon: Zombie Lifesteal


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 11-30-2013 , 07:04   [ZP50] Addon: Zombie Lifesteal
Reply With Quote #1

[ZP50] Addon: Zombie Lifesteal

Description:-
This is just a fun plugin, it heals zombies when they attack, idea from the game warcraft 3..... when zombies do an attack it heals them based on the damage they do.... it heals a % of the damage they deal, edited by cvar.

Besides, it also has a skill which has cooldown (CVAR) , when it is activated (by saying "/sh") the % heal increases (CVAR) for a certain amount of time (CVAR)

Credits:-

Warcraft 3 - 100% idea
Me:- 100% code

To Do: -

Nothing, i dont plan any updates.

Bugs : -

None. Report if u find any.

Authors Note:-

Dont PM me for anything related to this topic, post it here.........
Hope u all like it

Cvars:-

zpls_lifesteal_amount - How much heal in % (Def is 100)
zpls_lifesteal_amount_sh - How much heal in % while skill is active (Def is 300)
zpls_skill_cd - Skill CD (Def is 100.0) (keep this value in decimal form if u edit it)
zpls_skill_duration - Skill Duration (Def is 5.0) (keep this value in decimal form if u edit it)

Change log:-

v1.0
Release...
Attached Files
File Type: sma Get Plugin or Get Source (zp50_lifesteal.sma - 1090 views - 3.8 KB)
__________________
You will find everything u need :-

Last edited by Catastrophe; 12-02-2013 at 03:57.
Catastrophe is offline
K4rim
Senior Member
Join Date: Oct 2013
Location: Malaysia
Old 11-30-2013 , 07:16   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #2

new error:

L 11/30/2013 - 23:20:01: Start of error session.
L 11/30/2013 - 23:20:01: Info (map "zm_ded_street3") (file "addons/amxmodx/logs/error_20131130.log")
L 11/30/2013 - 23:20:01: [ZP] Invalid Player (0)
L 11/30/2013 - 23:20:01: [AMXX] Displaying debug trace (plugin "zp50_lifesteal.amxx", version "1.0")
L 11/30/2013 - 23:20:01: [AMXX] Run time error 10: native error (native "zp_core_is_zombie")
L 11/30/2013 - 23:20:01: [AMXX] [0] zp50_lifesteal.sma::fw_TakeDamage (line 104)

Last edited by K4rim; 11-30-2013 at 10:35. Reason: new error
K4rim is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 11-30-2013 , 09:37   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #3

Mind posting the full error ??? like atleast 10-12 lines....

BTW: i changed the code in the main post check if the new one works....
__________________
You will find everything u need :-

Last edited by Catastrophe; 11-30-2013 at 09:45.
Catastrophe is offline
BananaJo3
Junior Member
Join Date: Nov 2013
Old 12-01-2013 , 01:25   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #4

This looks like a cool plugin. It would give humans a little challenge.
__________________

There is a time to work and a time to play. Just don't take it the wrong way.
I am 35% addicted to Counterstrike. What about you?

BananaJo3 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 12-01-2013 , 04:49   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #5

Quote:
Originally Posted by K4rim View Post
new error:

L 11/30/2013 - 23:20:01: Start of error session.
L 11/30/2013 - 23:20:01: Info (map "zm_ded_street3") (file "addons/amxmodx/logs/error_20131130.log")
L 11/30/2013 - 23:20:01: [ZP] Invalid Player (0)
L 11/30/2013 - 23:20:01: [AMXX] Displaying debug trace (plugin "zp50_lifesteal.amxx", version "1.0")
L 11/30/2013 - 23:20:01: [AMXX] Run time error 10: native error (native "zp_core_is_zombie")
L 11/30/2013 - 23:20:01: [AMXX] [0] zp50_lifesteal.sma::fw_TakeDamage (line 104)
Its the same error.... that means my fix didnt work.... but however i dont know why this error does not show up for me.... o.O ..... and the first two lines arent the error for my plugin so.... they dont matter....

Does any1 else have this error too ?
__________________
You will find everything u need :-
Catastrophe is offline
Egan
BANNED
Join Date: May 2013
Location: GB
Old 12-01-2013 , 09:25   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #6

Quote:
Originally Posted by K4rim View Post
new error:

L 11/30/2013 - 23:20:01: Start of error session.
L 11/30/2013 - 23:20:01: Info (map "zm_ded_street3") (file "addons/amxmodx/logs/error_20131130.log")
L 11/30/2013 - 23:20:01: [ZP] Invalid Player (0)
L 11/30/2013 - 23:20:01: [AMXX] Displaying debug trace (plugin "zp50_lifesteal.amxx", version "1.0")
L 11/30/2013 - 23:20:01: [AMXX] Run time error 10: native error (native "zp_core_is_zombie")
L 11/30/2013 - 23:20:01: [AMXX] [0] zp50_lifesteal.sma::fw_TakeDamage (line 104)
did you compile it locally ?
Egan is offline
Send a message via ICQ to Egan Send a message via AIM to Egan Send a message via Yahoo to Egan Send a message via Skype™ to Egan
Gasa
Senior Member
Join Date: Sep 2013
Old 12-01-2013 , 10:28   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #7

add in fw_TakeDamage

PHP Code:
is_user_alive(attacker

Last edited by Gasa; 12-01-2013 at 10:31.
Gasa is offline
K4rim
Senior Member
Join Date: Oct 2013
Location: Malaysia
Old 12-01-2013 , 11:26   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #8

Quote:
did you compile it locally ?
yup

Quote:
add in fw_TakeDamage

PHP Code:
is_user_alive(attacker
Idk to do it,im new to this
K4rim is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 12-02-2013 , 03:43   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #9

Ah thnxx gasa i forgot that... ill do it....

EDIT: Fixed.... i dont think that warning shud show up now....
__________________
You will find everything u need :-

Last edited by Catastrophe; 12-02-2013 at 03:58.
Catastrophe is offline
K4rim
Senior Member
Join Date: Oct 2013
Location: Malaysia
Old 12-02-2013 , 06:30   Re: [ZP50] Addon: Zombie Lifesteal
Reply With Quote #10

tested,no bug/error,Good job.It work now.

Last edited by K4rim; 12-02-2013 at 06:59. Reason: ,
K4rim is offline
Reply



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 14:50.


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