Raised This Month: $51 Target: $400
 12% 

Can you help me whit glow on my zombie ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 01-01-2011 , 15:05   Can you help me whit glow on my zombie ?
Reply With Quote #1

I see one bug on my glow zombie. When i fire in the frost nade the glow effect of the zombie replace whit glow effect of the frost nade and then doesn't continue the glow effect on the zombie (green) Can someone view the code of this Glow Zombie and redact them to continue glow effect of the zombie ? (sorry for my bad English)
Code:
#include <amxmodx>
#include <zombieplague>
#include <fun>
// Zombie Attributes
new const zclass_name[] = { "Fat Zombie" } // name
new const zclass_info[] = { "HP 5000|SP 220|GR 800|KN 50%" } // description
new const zclass_model[] = { "Intx_fatzm" } // model
new const zclass_clawmodel[] = { "Intx_v_knife_fatzm.mdl" } // claw model
const zclass_health = 5000 // health
const zclass_speed = 220 // speed
const Float:zclass_gravity = 1.0 // gravity
const Float:zclass_knockback = 0.5 // knockback
// Class IDs
new g_zclassid1
// Cvar
new gCvarGlow
// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    register_plugin("[ZP] Zombie Class: Fat Zombie", "1.1", "Glorian")
    gCvarGlow = register_cvar("zp_glow","1")
    
    // Register the new class and store ID for reference
    g_zclassid1 = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback) 
}
public zp_user_infected_post ( id, infector )
{
    if (zp_get_user_zombie_class(id) == g_zclassid1)
    {
        set_user_rendering(id,kRenderFxGlowShell,127,255,0,kRenderNormal,0)  
    }
}
WaLkMaN is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 01-02-2011 , 08:07   Re: Can you help me whit glow on my zombie ?
Reply With Quote #2

Nothing is wrong with it. Just that frost nade replaces your current glow and remove it. Try looping a task with maybe 5 second delay then set the rendering again. This is the only thing I can thought of. It definitely work.
Excalibur.007 is offline
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 01-02-2011 , 08:14   Re: Can you help me whit glow on my zombie ?
Reply With Quote #3

Nothing is wrong with it. Just that frost nade replaces your current glow and remove it. Try looping a task with maybe 5 second delay then set the rendering again. This is the only thing I can thought of. It definitely work.
Excalibur.007 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 01-02-2011 , 14:46   Re: Can you help me whit glow on my zombie ?
Reply With Quote #4

http://forums.alliedmods.net/showthread.php?t=146852
__________________
georgik57 is online now
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
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 09:03.


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