Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- net.Receive( "BarTimer", function()
- timer.Simple(5, function()
- hook.Remove("PostDrawOpaqueRenderables", "BarTimer")
- end)
- function BarTimer()
- local barTime = 1
- for _, ent in pairs( ents.FindByClass( "coke_stove" )) do
- local Ang = ent:GetAngles()
- Ang:RotateAroundAxis( Ang:Forward(), 90)
- Ang:RotateAroundAxis( Ang:Right(), -90)
- cam.Start3D2D(ent:GetPos()+ent:GetUp()*50, Ang, 0.35)
- draw.RoundedBox( 0, -50, -23, Lerp(barTime, 0, 5), 5, Color(16, 238, 165, 150) )
- cam.End3D2D()
- end
- end
- hook.Add("PostDrawOpaqueRenderables", "BarTimer", BarTimer)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement