|
Veteran Member
Join Date: May 2015
Location: SP, Brazil
|
07-18-2015
, 14:04
Re: [Help] [ZP 4.3] How to change survivor aura color ?
|
#22
|
Quote:
Originally Posted by zmd94
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"
|
|
|
|