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

Help / Support [SOLVED][ZP 4.3] How to change survivor aura color ?


Post New Thread Reply   
 
Thread Tools Display Modes
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-17-2015 , 10:20   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #21

the aura code of the survivor, is the same

just search which one is for the survivor
Depresie is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-18-2015 , 14:04   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #22

Quote:
Originally Posted by zmd94 View Post
Just find below code from your zombie_plague40.sma file. Then, change it:
Code:
// Nemesis/madness aura task
public zombie_aura(taskid)
{
    // Not nemesis, not in zombie madness
    if (!g_nemesis[ID_AURA] && !g_nodamage[ID_AURA])
    {
        // Task not needed anymore
        remove_task(taskid);
        return;
    }
    
    // Get player's origin
    static origin[3]
    get_user_origin(ID_AURA, origin)
    
    // Colored Aura
    message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
    write_byte(TE_DLIGHT) // TE id
    write_coord(origin[0]) // x
    write_coord(origin[1]) // y
    write_coord(origin[2]) // z
    write_byte(20) // radius
    write_byte(get_pcvar_num(cvar_nemnvgcolor[0])) // r
    write_byte(get_pcvar_num(cvar_nemnvgcolor[1])) // g
    write_byte(get_pcvar_num(cvar_nemnvgcolor[2])) // b
    write_byte(2) // life
    write_byte(0) // decay rate
    message_end()
}
-->
Code:
// Nemesis/madness aura task
public zombie_aura(taskid)
{
    // Not nemesis, not in zombie madness
    if (!g_nemesis[ID_AURA] && !g_nodamage[ID_AURA])
    {
        // Task not needed anymore
        remove_task(taskid);
        return;
    }
    
    // Get player's origin
    static origin[3]
    get_user_origin(ID_AURA, origin)
    
    // Colored Aura
    message_begin(MSG_PVS, SVC_TEMPENTITY, origin)
    write_byte(TE_DLIGHT) // TE id
    write_coord(origin[0]) // x
    write_coord(origin[1]) // y
    write_coord(origin[2]) // z
    write_byte(20) // radius
    write_byte(get_pcvar_num(0) // r
    write_byte(get_pcvar_num(0) // g
    write_byte(get_pcvar_num(250) // b
    write_byte(2) // life
    write_byte(0) // decay rate
    message_end()
}
This code giving a error: "New message started when msg '23' has not been sent yet"
CrazY. is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-18-2015 , 14:22   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #23

I made ​​some changes here in zombie_plague40 and used the nemesis of the aura survivor , only have a problem when the survivor dies, his aura does not disappear , how can I fix this?
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 381 views - 335.5 KB)
CrazY. is offline
thekiller123
Member
Join Date: Dec 2012
Old 07-19-2015 , 14:10   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #24

You can change the aura color in zombieplague.cfg:

zp_surv_aura_size 35 // Size of aura
zp_surv_aura_R 10 // Color of aura [Red]
zp_surv_aura_G 200 // Color of aura [Green]
zp_surv_aura_B 200 // Color of aura [Blue]

Try the plugin, i added the aura in your plugin.
Attached Files
File Type: sma Get Plugin or Get Source (zombie_plague40.sma - 416 views - 356.1 KB)
File Type: cfg zombieplague.cfg (11.5 KB, 52 views)
thekiller123 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-19-2015 , 16:45   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #25

Thx, It worked without errors
You who edited the code?
CrazY. is offline
thekiller123
Member
Join Date: Dec 2012
Old 07-19-2015 , 16:58   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #26

No problem
Yes i edited the code.

Last edited by thekiller123; 07-19-2015 at 16:59.
thekiller123 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 07-19-2015 , 17:32   Re: [Help] [ZP 4.3] How to change survivor aura color ?
Reply With Quote #27

Ok
CrazY. 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 08:42.


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