Fix slug rifle always showing 9999 damage.
This commit is contained in:
parent
e2e90aa9d0
commit
d49bd320d8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue