AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP50] Addon: Zombie Lifesteal (https://forums.alliedmods.net/showthread.php?t=230672)

Catastrophe 11-30-2013 07:04

[ZP50] Addon: Zombie Lifesteal
 
1 Attachment(s)
[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...

K4rim 11-30-2013 07:16

Re: [ZP50] Addon: Zombie Lifesteal
 
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)

Catastrophe 11-30-2013 09:37

Re: [ZP50] Addon: Zombie Lifesteal
 
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....

BananaJo3 12-01-2013 01:25

Re: [ZP50] Addon: Zombie Lifesteal
 
This looks like a cool plugin. It would give humans a little challenge.

Catastrophe 12-01-2013 04:49

Re: [ZP50] Addon: Zombie Lifesteal
 
Quote:

Originally Posted by K4rim (Post 2067006)
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 ?

Egan 12-01-2013 09:25

Re: [ZP50] Addon: Zombie Lifesteal
 
Quote:

Originally Posted by K4rim (Post 2067006)
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 ?

Gasa 12-01-2013 10:28

Re: [ZP50] Addon: Zombie Lifesteal
 
add in fw_TakeDamage

PHP Code:

is_user_alive(attacker


K4rim 12-01-2013 11:26

Re: [ZP50] Addon: Zombie Lifesteal
 
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:)

Catastrophe 12-02-2013 03:43

Re: [ZP50] Addon: Zombie Lifesteal
 
Ah thnxx gasa i forgot that... ill do it....

EDIT: Fixed.... i dont think that warning shud show up now....

K4rim 12-02-2013 06:30

Re: [ZP50] Addon: Zombie Lifesteal
 
tested,no bug/error,Good job.It work now.:)


All times are GMT -4. The time now is 14:50.

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