Raised This Month: $ Target: $400
 0% 

[ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ExTc_kevin
Senior Member
Join Date: Jan 2011
Location: Idk
Old 02-17-2011 , 17:37   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #1

here u go https://forums.alliedmods.net/showthread.php?t=150355
ExTc_kevin is offline
WelcomE~
Senior Member
Join Date: Sep 2009
Old 04-01-2011 , 19:30   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #2

Here you go
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_healing_zombie.sma - 640 views - 3.3 KB)
__________________


WelcomE~ is offline
Old 03-07-2012, 13:58
adrian88888888
This message has been deleted by adrian88888888.
naSTR
Veteran Member
Join Date: Dec 2011
Location: Asia, Mongolia
Old 03-07-2012 , 15:05   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #4

Dead thread revived >)
__________________
naSTR is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 03-07-2012 , 15:12   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #5

Here, now don't revive it.
http://forums.alliedmods.net/showpos...4&postcount=42
__________________
H.RED.ZONE is offline
adrian88888888
New Member
Join Date: Feb 2012
Old 03-10-2012 , 18:20   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #6

Quote:
Originally Posted by H.RED.ZONE View Post
thank you very much!
adrian88888888 is offline
HamSwit
Member
Join Date: Nov 2014
Location: Romania
Old 12-31-2014 , 03:00   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #7

Quote:
Originally Posted by H.RED.ZONE View Post
How to set a message in hud (at the top of the screen) after healing, like:

" !!!You have regenerated!!!
300HP!!! "
HamSwit is offline
Send a message via Yahoo to HamSwit Send a message via Skype™ to HamSwit
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-31-2014 , 09:27   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #8

Just try below:
PHP Code:
/*
                [ZP] Class : Healing Zombie
                 ( Passive zombie skill )
                       by Fry


    Description :

            This is another zombie class only this zombie can heal him self.


    Cvars :

            zp_healing_zombie_delay   "3.0"  - After how many seconds will be healing, default is after 3 seconds.
            zp_healing_zombie_amount "50.0"  - How much HP you will gain in healing process, default is 15 hp in 3 seconds.
        

    Credits :

            hleV - For his created plugin. (creating/fixing from v1.0 - v1.0.5)

    
    Changelog :

            06/11/2008 - v1.0 - First release
             16/06/2009 - v1.0.4 - removed toggle cvar, fixed health was  regenerate more than max (all the time), prevented this class for  Nemesis, optimized code.
            27/06/2009 - v1.0.5 - fixed minor bug.
            12/08/2009 - v1.0.6 - fixed passive regeneration, changed plugin and zombie name.
*/

#include <amxmodx>
#include <fakemeta>
#include <zombieplague>

#define PLUGIN "[ZP] Class : Healing Zombie"
#define VERSION "1.0.6"
#define AUTHOR "Fry!"

new const zclass_name[] = "Regeneration Zombie"
new const zclass_info[] = "Can heal HP"
new const zclass_model[] = "Ironmaiden_frk_14"
new const zclass_clawmodel[] = "v_creep.mdl"
const zclass_health 2500
const zclass_speed 280
const Float:zclass_gravity 0.9
const Float:zclass_knockback 3.25

new g_zclass_healingg_healing_delayg_healing_amount
new Float:g_heal_delay[33]

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_cvar("zp_zclass_healing_zombie",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
    
    
g_healing_delay register_cvar("zp_healing_zombie_delay""1.0")
    
g_healing_amount register_cvar("zp_healing_zombie_amount""40.0")
    
    
register_event("Damage""Damage""be")
    
    
register_forward(FM_PlayerPreThink"fw_PlayerPreThink")
}

public 
plugin_precache()
{
     
g_zclass_healing zp_register_zombie_class(zclass_namezclass_info,  zclass_modelzclass_clawmodelzclass_healthzclass_speed,  zclass_gravityzclass_knockback)
}

public 
zp_user_infected_post(playerinfector)
{
    if (
zp_get_user_zombie_class(player) == g_zclass_healing)
        return 
PLUGIN_CONTINUE
        
    
return PLUGIN_CONTINUE
}

public 
Damage(victim)
{
    if (!
is_user_alive(victim) || !zp_get_user_zombie(victim))
        return 
PLUGIN_HANDLED
        
    
if (zp_get_user_zombie_class(victim) != g_zclass_healing)
        return 
PLUGIN_CONTINUE
    
    
static Float:g_gametime
    
    g_gametime 
get_gametime()
        
    
g_heal_delay[victim] = g_gametime get_pcvar_float(g_healing_delay)
    
    return 
PLUGIN_CONTINUE
}

public 
fw_PlayerPreThink(player)
{
    if (!
is_user_alive(player) || !zp_get_user_zombie(player))
        return 
FMRES_IGNORED
        
    
if (zp_get_user_zombie_class(player) != g_zclass_healing)
        return 
FMRES_IGNORED
        
    
static Float:g_gametimeFloat:g_health
    
    g_gametime 
get_gametime()
    
pev(playerpev_healthg_health)
    
    if (
g_health zclass_health && g_heal_delay[player] < g_gametime)
    {
        
set_pev(playerpev_healthg_health get_pcvar_float(g_healing_amount))
        
        
set_hudmessage(random_num(10,255), random(256), random(256), -1.00.2006.012.00.00.0, -1)
        
show_hudmessage(player"You have regenerated ^n%d HP!"get_pcvar_float(g_healing_amount))
        
        
g_heal_delay[player] = g_gametime get_pcvar_float(g_healing_delay)
    }
    
    return 
FMRES_IGNORED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by zmd94; 12-31-2014 at 09:28.
zmd94 is offline
HamSwit
Member
Join Date: Nov 2014
Location: Romania
Old 01-02-2015 , 03:43   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #9

Thank you.
HamSwit is offline
Send a message via Yahoo to HamSwit Send a message via Skype™ to HamSwit
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 01-02-2015 , 03:46   Re: [ZP] Class : Healing Zombie || Updated v1.0.6 [26/12/2009]
Reply With Quote #10

So, it is working?
zmd94 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 17:09.


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