Quote:
Sorry for the inconvenience, and for version 5.0, what would I have to touch?
Is the line:
|
In
zp50_grenade_frost.sma you have to remove the following lines:
In TraceAttack
PHP Code:
public fw_TraceAttack(victim, attacker)
{
// Non-player damage or self damage
if (victim == attacker || !is_user_alive(attacker))
return HAM_IGNORED;
// Block damage while frozen, as it makes killing zombies too easy
if (flag_get(g_IsFrozen, victim))
return HAM_SUPERCEDE;
return HAM_IGNORED;
}
--->
PHP Code:
public fw_TraceAttack(victim, attacker)
{
// Non-player damage or self damage
if (victim == attacker || !is_user_alive(attacker))
return HAM_IGNORED;
return HAM_IGNORED;
}
and in TakeDamage
PHP Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
// Non-player damage or self damage
if (victim == attacker || !is_user_alive(attacker))
return HAM_IGNORED;
// Block damage while frozen, as it makes killing zombies too easy
if (flag_get(g_IsFrozen, victim))
return HAM_SUPERCEDE;
return HAM_IGNORED;
}
--->
PHP Code:
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
// Non-player damage or self damage
if (victim == attacker || !is_user_alive(attacker))
return HAM_IGNORED;
return HAM_IGNORED;
}