Fix slug rifle always showing 9999 damage.

This commit is contained in:
JetBoom 2014-11-14 03:20:18 -05:00
parent e2e90aa9d0
commit d49bd320d8

View file

@ -129,10 +129,10 @@ function SWEP.BulletCallback(attacker, tr, dmginfo)
end
if gamemode.Call("PlayerShouldTakeDamage", ent, attacker) then
INFDAMAGEFLOATER = true
ent:SetHealth(math.max(ent:Health() - 400, 1))
end
end
INFDAMAGEFLOATER = true
GenericBulletCallback(attacker, tr, dmginfo)
end