AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   [ZP] Addons: Zombie Healing Skill ( version 1.0) (https://forums.alliedmods.net/showthread.php?t=159425)

tei1995 06-16-2011 23:36

[ZP] Addons: Zombie Healing Skill ( version 1.0)
 
1 Attachment(s)
I take this idea from wheN I'm playing Zombe Mod 3 in CSO NST, if you stand in 5 second, you will regen with 200 hp:D
so have fun with it:D, this is some cvar in plugin.
PHP Code:

zp_zombie_heal_enable 1 // plugin toogle, 1 is enable, 2 is disable
zp_zombie_time 5 // the time you must to wait for  regen
zp_zombie_heal_amount 200 // amount of heal  when regen 

p/s: Sorry, My Eng is veryvery bad...

Excalibur.007 06-17-2011 00:19

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
Please upload the sounds.

5c0r-|3i0 06-17-2011 02:50

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
1)
PHP Code:

if ( health 200 zp_get_zombie_maxhealth(id) ) 

to
PHP Code:

if ( health get_pcvar_float(cvar_amount) < zp_get_zombie_maxhealth(id) ) 

2) Add cool sounds !

dias 06-17-2011 03:16

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
PHP Code:

    if (!get_cvar_num("zp_on"))
        return 
FMRES_IGNORED
    
if ( zp_get_user_nemesis(id) || zp_get_user_survivor(id))
        return 
FMRES_IGNORED
    
if (!zp_get_user_zombie(id))
        return 
FMRES_IGNORED
    
if (!is_user_alive(id))
        return 
FMRES_IGNORED
    
if (!get_pcvar_num(cvar_active))
        return 
FMRES_IGNORED 

=>
PHP Code:

    if(!get_cvar_num("zp_on") || !get_pcvar_num(cvar_active))
        return 
FMRES_IGNORED
    
if(!is_user_alive(id))
        return 
FMRES_IGNORED
    
if(!zp_get_user_zombie(id) || zp_get_user_nemesis(id) || zp_get_user_survivor(id))
        return 
FMRES_IGNORED 


tei1995 06-17-2011 03:19

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
Thanks my bro,i forget, i wil add.

dias 06-17-2011 03:24

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
1 Attachment(s)
Here is CSO sound

Download and extract it. Copy the file zombie_heal.wav to "sound/zombie_plague"

Done...

tei1995 06-17-2011 06:27

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
thanks dias:D

albert123 06-17-2011 08:59

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
If you like more effect, should add fade screen effect when healing.

Dolph_Ziggler 06-17-2011 09:18

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
tei1995 why dont make when he regen his health it show sprit up him like CSO ?
PHP Code:

    if (!can_heal[id])
    {
        
can_heal[id] = true
        user_time
[id] = get_gametime()
               
        
message_begin(MSG_BROADCAST,SVC_TEMPENTITY); 
        
write_byte(TE_EXPLOSION); // TE_EXPLOSION
        
write_coord(floatround(Origin[x])); // origin x
        
write_coord(floatround(Origin[y])); // origin y
        
write_coord(floatround(Origin[z])); // origin z
        
write_short(YOUR SPRITE); // sprites
        
write_byte(15); // scale in 0.1's
        
write_byte(12); // framerate
        
write_byte(14); // flags 
        
message_end(); // message end 

like that ?????? :D i hop you add it :D

jc980 06-17-2011 09:19

Re: [ZP] Addons: Zombie Healing Skill ( version 1.0)
 
damn, i was gonna do this. too lazy. lolz


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

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