Advertisement
Guest User

Untitled

a guest
Jun 29th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. net.Receive( "BarTimer", function()
  2.  
  3. timer.Simple(5, function()
  4. hook.Remove("PostDrawOpaqueRenderables", "BarTimer")
  5. end)
  6.  
  7. function BarTimer()
  8. local barTime = 1
  9.  
  10. for _, ent in pairs( ents.FindByClass( "coke_stove" )) do
  11. local Ang = ent:GetAngles()
  12.  
  13. Ang:RotateAroundAxis( Ang:Forward(), 90)
  14. Ang:RotateAroundAxis( Ang:Right(), -90)
  15.  
  16. cam.Start3D2D(ent:GetPos()+ent:GetUp()*50, Ang, 0.35)
  17. draw.RoundedBox( 0, -50, -23, Lerp(barTime, 0, 5), 5, Color(16, 238, 165, 150) )
  18. cam.End3D2D()
  19. end
  20. end
  21. hook.Add("PostDrawOpaqueRenderables", "BarTimer", BarTimer)
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement