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