|
|
|
@ -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) |
|
|
|
|