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
|
end
|
||||||
|
|
||||||
if gamemode.Call("PlayerShouldTakeDamage", ent, attacker) then
|
if gamemode.Call("PlayerShouldTakeDamage", ent, attacker) then
|
||||||
|
INFDAMAGEFLOATER = true
|
||||||
ent:SetHealth(math.max(ent:Health() - 400, 1))
|
ent:SetHealth(math.max(ent:Health() - 400, 1))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
INFDAMAGEFLOATER = true
|
|
||||||
GenericBulletCallback(attacker, tr, dmginfo)
|
GenericBulletCallback(attacker, tr, dmginfo)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue