mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
fix dying with buddha or god mode on (black screen
on buddha cant be fixed)
This commit is contained in:
parent
98a5e451ae
commit
49eae3f898
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue