Hola am.
Tengo un problema al intentar crear la awp de fuegoy hielo.
Lo que hago es lo siguente
Code:
// Me voy a:
// Ham Take Damage Forward (inflictor = weapon)
// Y agrego esto:
if (get_user_weapon(attacker) == CSW_AWP)
{
switch (g_awpfire[attacker])
{
fire_player(victim)
}
}
// Voy al final del todo el zp y agrego esto:
fire_player(victim)
{
// Get origin
static Float:originF[3]
pev(victim, pev_origin, originF)
// Fire nade explode sound
engfunc(EngFunc_EmitSound, victim, CHAN_WEAPON, grenade_fire_player[random_num(0, sizeof grenade_fire_player - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
// Only effect alive zombies
if (!is_user_alive(victim) || !g_zombie[victim] || g_nodamage[victim])
return;
// 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()
}
// Our task params
static params[1]
if (g_nemesis[victim]) // fire duration (nemesis takes less)
params[0] = get_pcvar_num(cvar_fireduration)
else
params[0] = get_pcvar_num(cvar_fireduration)*5
// Set burning task on victim
set_task(0.1, "burning_flame", victim+TASK_BLOOD, params, sizeof params)
}
// Y por ultimo agrego en el case del arma:
case: 1
{
fire_player(victim)
}
Obvio que en el case le seteo el arma que modifique con un bool.
Pero sigue siendo igual nunca prende fuego al zombie, hice lo mismo probando la de hielo y tampoco
funciona.
Alguna Solucion?