First open the main plug-ZP
1. The first to find new g_zombie [33] in the next one to join
2. To find out humanme (id, survivor, silentmode)
Quote:
g_zombie[id] = true
g_survivor[id] = false
g_nemesis[id] = false
g_firstzombie[id] = false
|
The next one to join
Quote:
|
g_flame_zombie[id] = false
|
3. To find out zombieme (id, infector, nemesis, silentmode, rewards)
Quote:
g_zombie[id] = false
g_nemesis[id] = false
g_survivor[id] = false
g_firstzombie[id] = false
g_canbuy[id] = true
g_nvision[id] = false
g_nvisionenabled[id] = false
|
The next one to join
Quote:
|
g_flame_zombie[id] = true
|
4. To find out fire_explode (ent)
The whole
Quote:
while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)
{
// Only effect alive zombies
if (!is_user_valid_alive(victim) || !g_zombie[victim] || g_nodamage[victim])
continue;
// Heat icon?
if (get_pcvar_num(cvar_hudicons))
{
message_begin(MSG_ONE_UNRELIABLE, g_msgDamage, _, victim)
write_byte(0) // damage save
write_byte(0) // damage take
write_long(DMG_BURN) // damage type
write_coord(0) // x
write_coord(0) // y
write_coord(0) // z
message_end()
}
|
Change
Quote:
while ((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)
{
// Only effect alive zombies
if (!is_user_valid_alive(victim) || !g_zombie[victim] || g_nodamage[victim])
continue;
if (g_flame_zombie[victim] == 1)
continue;
// Heat icon?
if (get_pcvar_num(cvar_hudicons))
{
message_begin(MSG_ONE_UNRELIABLE, g_msgDamage, _, victim)
write_byte(0) // damage save
write_byte(0) // damage take
write_long(DMG_BURN) // damage type
write_coord(0) // x
write_coord(0) // y
write_coord(0) // z
message_end()
}
|
5. Join new native
Quote:
public native_set_zombie_flame(id, flame)
{
if (flame != 0 && flame != 1)
return 0;
if (!flame)
g_flame_zombie[id] = false
else
g_flame_zombie[id] = true
return 1;
}
|
6. Identify the public plugin_natives ()
Join
Quote:
|
register_native("zp_set_zombie_flame", "native_set_zombie_flame", 1)
|
The last is very important!!!!
Open \ cstrike \ addons \ amxmodx \ scripting \ include the zombieplague
Join
Quote:
|
native zp_set_zombie_flame(id, flame)
|
__________________