Bug fix with near death effects

master
AlmTech 5 years ago
parent 395ee40207
commit a598e9c327
  1. 4
      gamemode/core/client/cl_hud.lua

@ -49,6 +49,8 @@ function GM:HUDPaint()
end end
hook.Add( "RenderScreenspaceEffects", "Quantum_HUD_RenderLowHealth", function() hook.Add( "RenderScreenspaceEffects", "Quantum_HUD_RenderLowHealth", function()
if( LocalPlayer():Health() / LocalPlayer():GetMaxHealth() <= 0.15 ) then
DrawMotionBlur( 0.4, 0.8, 0.1 )
DrawColorModify( { DrawColorModify( {
[ "$pp_colour_addr" ] = 0, [ "$pp_colour_addr" ] = 0,
[ "$pp_colour_addg" ] = 0, [ "$pp_colour_addg" ] = 0,
@ -60,5 +62,5 @@ hook.Add( "RenderScreenspaceEffects", "Quantum_HUD_RenderLowHealth", function()
[ "$pp_colour_mulg" ] = 0, [ "$pp_colour_mulg" ] = 0,
[ "$pp_colour_mulb" ] = 0 [ "$pp_colour_mulb" ] = 0
} ) } )
if( LocalPlayer():Health() / LocalPlayer():GetMaxHealth() <= 0.15 ) then DrawMotionBlur( 0.4, 0.8, 0.1 ) end end
end) end)

Loading…
Cancel
Save