Raised This Month: $319 Target: $400
 79%   Almost there!

convert zombie class rage for zp 5.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrysisWarHead
Junior Member
Join Date: Aug 2010
Old 11-15-2011 , 13:40   convert zombie class rage for zp 5.0
Reply With Quote #1

hi guys pls convert this plugin for zp 5.0 pre thanks
Attached Files
File Type: sma Get Plugin or Get Source (zp_zclass_ragenerate.sma - 519 views - 2.9 KB)
CrysisWarHead is offline
WtF S3R6I0
New Member
Join Date: Nov 2011
Old 11-15-2011 , 20:01   Re: convert zombie class rage for zp 5.0
Reply With Quote #2

PHP Code:
#define PLUGIN "xxx"
#define VERSION "xxx"
#define AUTHOR "xxx"

#define TASK_CHECK 50000
#define ID_CHECK (taskid - TASK_CHECK)

// xxx Zombie Attributes
new const zclass6_name[] = "xxx"
new const zclass6_info[] = "xxx"
new const zclass6_model[][] = { "xxx" }
new const 
zclass6_clawmodel[][] = { "xxx" }
const 
zclass6_health xxx
const Float:zclass6_speed xxx
const Float:zclass6_gravity xxx
const Float:zclass6_knockback xxx

new g_zclass_rage

public plugin_init() 
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
}

public 
plugin_precache()
{
    
register_cvar("zp_rage_aura_radius""15.0")
    
register_cvar("zp_rage_aura_red""0")
    
register_cvar("zp_rage_aura_green""255")
    
register_cvar("zp_rage_aura_blue""0")
    new 
index
    g_zclass_rage 
zp_class_zombie_register(zclass6_name,zclass6_info,zclass6_health,zclass6_speed,zclass6_gravity)
    
zp_class_zombie_register_kb(g_zclass_ragezclass6_knockback)
    for (
index 0index sizeof zclass6_modelindex++)
        
zp_class_zombie_register_model(g_zclass_rage,zclass6_model[index])
    for (
index 0index sizeof zclass6_clawmodelindex++)
        
zp_class_zombie_register_claw(g_zclass_rage,zclass6_clawmodel[index])
    
}

public 
zp_user_infected_post(idinfector)
{
    if (
zp_class_zombie_get_current(id) == g_zclass_rage)
    {
        
set_task(1.5"Aura"id__"b")
    }
    
    
check(id)
}

public 
zp_user_humanized_post(id)
{
    
fm_set_rendering(idkRenderFxNoneFloat:{ 0.0255.00.0 }, kRenderNormal0)
}

public 
efectos(taskid)

    if (
zp_class_zombie_get_current(ID_CHECK) == g_zclass_rage && zp_core_is_zombie(ID_CHECK))
{
    if(
pev(ID_CHECKpev_maxspeed) != 1.0)
        
fm_set_rendering(ID_CHECKkRenderFxGlowShellFloat:{ 0.0255.00.0 }, kRenderNormal0)
    
set_task(0.2"efectos"ID_CHECK+TASK_CHECK)
}

public 
check(id)
{
    if (
zp_class_zombie_get_current(id) == g_zclass_rage && zp_core_is_zombie(id))
        
efectos(id+TASK_CHECK)
}

public 
client_disconnect(id)
{
    
remove_task(id+TASK_CHECK)
}

public 
Aura(id)
{
    if (
zp_core_is_zombie(id)) {
        if (
zp_class_zombie_get_current(id) == g_zclass_rage) {        
            if (!
is_user_alive(id))
                return 
PLUGIN_HANDLED

            
static Float:originF[3]
            
pev(idpev_originoriginF)

            
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
            
write_byte(TE_DLIGHT)
            
engfunc(EngFunc_WriteCoordoriginF[0])
            
engfunc(EngFunc_WriteCoordoriginF[1])
            
engfunc(EngFunc_WriteCoordoriginF[2])
            
write_byte(get_cvar_num("zp_rage_aura_radius"))
            
write_byte(get_cvar_num("zp_rage_aura_red"))
            
write_byte(get_cvar_num("zp_rage_aura_green"))
            
write_byte(get_cvar_num("zp_rage_aura_blue"))
            
write_byte(2)
            
write_byte(0)
            
message_end()
        } else {
            
remove_task(id)
        }
    } else {
        
remove_task(id)
    }
    
    return 
PLUGIN_CONTINUE
}

stock fm_set_rendering(entityfx kRenderFxNoneFloat:color[3] = { 0.0255.00.0 }, render kRenderNormalamount 0)
{
    
set_pev(entitypev_renderfxfx)
    
set_pev(entitypev_rendercolorcolor)
    
set_pev(entitypev_rendermoderender)
    
set_pev(entitypev_renderamtfloat(amount))

WtF S3R6I0 is offline
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 11-15-2011 , 20:16   Re: convert zombie class rage for zp 5.0
Reply With Quote #3

o.0???
JoKeR LauGh is offline
CrysisWarHead
Junior Member
Join Date: Aug 2010
Old 11-16-2011 , 11:21   Re: convert zombie class rage for zp 5.0
Reply With Quote #4

Quote:
Originally Posted by WtF S3R6I0 View Post
PHP Code:
#define PLUGIN "xxx"
#define VERSION "xxx"
#define AUTHOR "xxx"

#define TASK_CHECK 50000
#define ID_CHECK (taskid - TASK_CHECK)

// xxx Zombie Attributes
new const zclass6_name[] = "xxx"
new const zclass6_info[] = "xxx"
new const zclass6_model[][] = { "xxx" }
new const 
zclass6_clawmodel[][] = { "xxx" }
const 
zclass6_health xxx
const Float:zclass6_speed xxx
const Float:zclass6_gravity xxx
const Float:zclass6_knockback xxx

new g_zclass_rage

public plugin_init() 
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
}

public 
plugin_precache()
{
    
register_cvar("zp_rage_aura_radius""15.0")
    
register_cvar("zp_rage_aura_red""0")
    
register_cvar("zp_rage_aura_green""255")
    
register_cvar("zp_rage_aura_blue""0")
    new 
index
    g_zclass_rage 
zp_class_zombie_register(zclass6_name,zclass6_info,zclass6_health,zclass6_speed,zclass6_gravity)
    
zp_class_zombie_register_kb(g_zclass_ragezclass6_knockback)
    for (
index 0index sizeof zclass6_modelindex++)
        
zp_class_zombie_register_model(g_zclass_rage,zclass6_model[index])
    for (
index 0index sizeof zclass6_clawmodelindex++)
        
zp_class_zombie_register_claw(g_zclass_rage,zclass6_clawmodel[index])
    
}

public 
zp_user_infected_post(idinfector)
{
    if (
zp_class_zombie_get_current(id) == g_zclass_rage)
    {
        
set_task(1.5"Aura"id__"b")
    }
    
    
check(id)
}

public 
zp_user_humanized_post(id)
{
    
fm_set_rendering(idkRenderFxNoneFloat:{ 0.0255.00.0 }, kRenderNormal0)
}

public 
efectos(taskid)

    if (
zp_class_zombie_get_current(ID_CHECK) == g_zclass_rage && zp_core_is_zombie(ID_CHECK))
{
    if(
pev(ID_CHECKpev_maxspeed) != 1.0)
        
fm_set_rendering(ID_CHECKkRenderFxGlowShellFloat:{ 0.0255.00.0 }, kRenderNormal0)
    
set_task(0.2"efectos"ID_CHECK+TASK_CHECK)
}

public 
check(id)
{
    if (
zp_class_zombie_get_current(id) == g_zclass_rage && zp_core_is_zombie(id))
        
efectos(id+TASK_CHECK)
}

public 
client_disconnect(id)
{
    
remove_task(id+TASK_CHECK)
}

public 
Aura(id)
{
    if (
zp_core_is_zombie(id)) {
        if (
zp_class_zombie_get_current(id) == g_zclass_rage) {        
            if (!
is_user_alive(id))
                return 
PLUGIN_HANDLED

            
static Float:originF[3]
            
pev(idpev_originoriginF)

            
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)
            
write_byte(TE_DLIGHT)
            
engfunc(EngFunc_WriteCoordoriginF[0])
            
engfunc(EngFunc_WriteCoordoriginF[1])
            
engfunc(EngFunc_WriteCoordoriginF[2])
            
write_byte(get_cvar_num("zp_rage_aura_radius"))
            
write_byte(get_cvar_num("zp_rage_aura_red"))
            
write_byte(get_cvar_num("zp_rage_aura_green"))
            
write_byte(get_cvar_num("zp_rage_aura_blue"))
            
write_byte(2)
            
write_byte(0)
            
message_end()
        } else {
            
remove_task(id)
        }
    } else {
        
remove_task(id)
    }
    
    return 
PLUGIN_CONTINUE
}

stock fm_set_rendering(entityfx kRenderFxNoneFloat:color[3] = { 0.0255.00.0 }, render kRenderNormalamount 0)
{
    
set_pev(entitypev_renderfxfx)
    
set_pev(entitypev_rendercolorcolor)
    
set_pev(entitypev_rendermoderender)
    
set_pev(entitypev_renderamtfloat(amount))

bigg thanks man
CrysisWarHead is offline
Reply


Thread Tools
Display Modes

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 05:45.


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