Advertisement
DylanB

MotionBlur: The right way.

Apr 12th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. if (CLIENT) then
  2.     local ply = LocalPlayer()
  3.     local health
  4.     local AdditiveAlpha = 0.1
  5.     local DrawAlpha = 0.79
  6.     local FrameUpdateDelay = 0.05
  7.     hook.Add("RenderScreenspaceEffects", "Realism_Blur", function()
  8.         health = ply:Health()
  9.         if health < 30 then
  10.             DrawMotionBlur( AdditiveAlpha, DrawAlpha, FrameUpdateDelay )
  11.         end
  12.     end)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement