fix dying with buddha or god mode on (black screen

on buddha cant be fixed)
This commit is contained in:
Jonny_Bro (Nikita) 2024-01-26 20:42:01 +05:00
parent 98a5e451ae
commit 49eae3f898
No known key found for this signature in database
GPG key ID: 391C19BE62D36B33
2 changed files with 2 additions and 2 deletions

View file

@ -207,7 +207,7 @@ if SERVER then
return 0
end
if speed >= 800 and not ply:InOverdrive() then
if speed >= 800 and not ply:InOverdrive() and not ply:HasGodMode() then
if speed < 800 and CurTime() < ply:GetSafetyRollKeyTime() and not ply:GetCrouchJump() and not ply:Crouching() then
return 0
else

View file

@ -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 ply:Health() - dmginfo:GetDamage() <= 0) and not ply:HasGodMode() and not blinded then
elseif dmginfo:IsFallDamage() and not ply:HasGodMode() then
net.Start("DeathStopSound")
net.Send(ply)