From 567b647ab61d2114fff28951f8f3f248a2ba5ce6 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" <48434875+JonnyBro@users.noreply.github.com> Date: Tue, 30 Jan 2024 08:29:06 +0500 Subject: [PATCH] should fix something, idk --- beatrun/gamemodes/beatrun/gamemode/sv/sv_hitsoundsme.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)