CSGO: Fix that molotov/incendiary damages humans

This commit is contained in:
zaCade 2017-09-10 18:05:34 +02:00
parent b4e0e11d0c
commit bd10d160c4
1 changed files with 24 additions and 0 deletions

View File

@ -342,6 +342,30 @@ public Action:DamageOnTakeDamage(client, &attacker, &inflictor, &Float:damage, &
// Stop damage.
return Plugin_Handled;
}
// Client was damaged by fire.
else if (damagetype & DMG_BURN)
{
// If its not an inferno, then allow damage.
if (strncmp(classname, "inferno", 7) != 0)
{
return Plugin_Continue;
}
// If attacker isn't valid, then allow damage.
if (!ZRIsClientValid(attacker))
{
return Plugin_Continue;
}
// If client is a zombie, then allow damage.
if (InfectIsClientInfected(client))
{
return Plugin_Continue;
}
// Stop damage.
return Plugin_Handled;
}
// Client was damaged by falling.
else if (damagetype & DMG_FALL)
{