From d49bd320d8a26d4051cf339399aeb737de529704 Mon Sep 17 00:00:00 2001 From: JetBoom Date: Fri, 14 Nov 2014 03:20:18 -0500 Subject: [PATCH] Fix slug rifle always showing 9999 damage. --- .../zombiesurvival/entities/weapons/weapon_zs_slugrifle.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_slugrifle.lua b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_slugrifle.lua index 230dfdc..a1a1c88 100644 --- a/gamemodes/zombiesurvival/entities/weapons/weapon_zs_slugrifle.lua +++ b/gamemodes/zombiesurvival/entities/weapons/weapon_zs_slugrifle.lua @@ -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