This commit is contained in:
Jonny_Bro (Nikita) 2024-07-23 01:38:39 +05:00
parent 8832566ead
commit adae89fe2f
No known key found for this signature in database
GPG key ID: 3F1ECC04147E9BD8

View file

@ -6,7 +6,7 @@ hook.Add("EntityTakeDamage", "MEHitSounds", function(ply, dmginfo)
if dmginfo:IsBulletDamage() then
if ply:GetVelocity():Length() > 400 then return true end -- Block damage if they're going very fast
ply:EmitSound("mirrorsedgse/Flesh_0" .. tostring(math.random(1, 9)) .. ".wav")
ply:EmitSound("mirrorsedge/Flesh_0" .. tostring(math.random(1, 9)) .. ".wav")
ply:ViewPunch(Angle(math.Rand(-10, -5), 0, math.Rand(0, 5)))
elseif not ply:HasGodMode() and (dmginfo:IsFallDamage() and ply:Health() - dmginfo:GetDamage() <= 0) then
net.Start("DeathStopSound")