diff --git a/beatrun/gamemodes/beatrun/gamemode/sv/sv_hitsoundsme.lua b/beatrun/gamemodes/beatrun/gamemode/sv/sv_hitsoundsme.lua index 13535eb..e38193b 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sv/sv_hitsoundsme.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sv/sv_hitsoundsme.lua @@ -9,7 +9,7 @@ hook.Add("EntityTakeDamage", "MEHitSounds", function(ply, dmginfo) ply:EmitSound("mirrorsedge/Flesh_0" .. tostring(math.random(1, 9)) .. ".wav") ply:ViewPunch(Angle(math.Rand(-10, -5), 0, math.Rand(0, 5))) - elseif dmginfo:IsFallDamage() and not ply:HasGodMode() then + elseif not ply:HasGodMode() and (dmginfo:IsFallDamage() and ply:Health() - dmginfo:GetDamage() <= 0) then net.Start("DeathStopSound") net.Send(ply) @@ -21,4 +21,4 @@ hook.Add("EntityTakeDamage", "MEHitSounds", function(ply, dmginfo) ply:ScreenFade(SCREENFADE.OUT, Color(0, 0, 0, 255), 0.05, 5) end -end) \ No newline at end of file +end)