Quote:
Originally Posted by Ssand
it's a little weird because it worked once and when it killed zombies i got 10k health and that is bug
idk what how to fix it.
|
It is not a bug. That is how it work
What the plugin does is the nade will
kill 1 random Zombie in range and give the killer 10000 HP (HP Cvar:
zp_killbomb_hp)
If you still have the default
Flare Nade plugin of ZP running, disable it
Both use Smoke Grenade so it got overlap.
PHP Code:
while((victim = engfunc(EngFunc_FindEntityInSphere, victim, originF, NADE_EXPLOSION_RADIUS)) != 0)
{
if(!is_user_alive(victim) || !zp_get_user_zombie(victim) || zp_get_user_nemesis(victim))
continue
g_killedbykillbomb[victim] = 1
ExecuteHamB(Ham_Killed, victim, attacker, 0)
g_killedbykillbomb[victim] = 0
static health; health = get_user_health(attacker)
set_user_health(attacker, health+get_pcvar_num(cvar_bonushp))
}
__________________