daily pastebin goal
84%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local lastTexture = nillocal mat_Overlay = nillocal lp = LocalPlayer()
  2.  
  3. localfunction DrawMaterialOverlay2( texture, refractamount )if ( texture ~= lastTexture or mat_Overlay == nil ) then
  4. mat_Overlay = Material( texture )
  5. lastTexture = texture
  6. endif ( mat_Overlay == nil || mat_Overlay:IsError() ) thenreturnend
  7. render.UpdateScreenEffectTexture()
  8. mat_Overlay:SetFloat( "$envmap", 0 )
  9. mat_Overlay:SetFloat( "$envmaptint", 0 )
  10. mat_Overlay:SetFloat( "$refractamount", refractamount )
  11. mat_Overlay:SetInt( "$ignorez", 1 )
  12. render.SetMaterial( mat_Overlay )
  13. render.DrawScreenQuad()
  14. endlocalfunction DrawInternal2()local overlay = "effects/combine_binocoverlay"--your overlayif lp:Team() != TEAM_CITIZEN thenreturnend-lp:Team() != TEAM_CITIZEN thenreturnend
  15. DrawMaterialOverlay2( overlay, 0.3 )
  16. end
  17.  
  18. hook.Add( "RenderScreenspaceEffects", "RenderMaterialOverlay", DrawInternal2 )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top