Removed old HUD, added better low-health effects

master
E. Almqvist 5 years ago
parent cb0cdc69e3
commit e9bbc4e442
  1. 4
      gamemode/engine/core/client/cl_hud.lua

@ -320,8 +320,7 @@ end
hook.Add( "RenderScreenspaceEffects", "Quantum_HUD_RenderLowHealth", function()
if( !Quantum.Client.IsInMenu || Quantum.Client.IsInInventory ) then
if( LocalPlayer():Health() / LocalPlayer():GetMaxHealth() <= 0.25 ) then
DrawMotionBlur( 0.4, 0.8, 0.1 )
DrawMotionBlur( Lerp( LocalPlayer():Health() / LocalPlayer():GetMaxHealth(), 0.4, 0 ), Lerp( LocalPlayer():Health() / LocalPlayer():GetMaxHealth(), 0.8, 0 ), Lerp( LocalPlayer():Health() / LocalPlayer():GetMaxHealth(), 0.1, 0 ) )
DrawColorModify( {
[ "$pp_colour_addr" ] = 0,
[ "$pp_colour_addg" ] = 0,
@ -334,5 +333,4 @@ hook.Add( "RenderScreenspaceEffects", "Quantum_HUD_RenderLowHealth", function()
[ "$pp_colour_mulb" ] = 0
} )
end
end
end)

Loading…
Cancel
Save