CSGO: Fix that molotov/incendiary damages humans
This commit is contained in:
parent
b4e0e11d0c
commit
bd10d160c4
|
@ -342,6 +342,30 @@ public Action:DamageOnTakeDamage(client, &attacker, &inflictor, &Float:damage, &
|
||||||
// Stop damage.
|
// Stop damage.
|
||||||
return Plugin_Handled;
|
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.
|
// Client was damaged by falling.
|
||||||
else if (damagetype & DMG_FALL)
|
else if (damagetype & DMG_FALL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user