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