Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( 'PostDrawTranslucentRenderables', 'SourceMod Ring', function()
- if !IsValid(v) or !v:Alive() then
- for k,v in pairs( player.GetAll() ) do
- cam.Start3D2D( v:GetPos() + Vector( 0, 0, 5 ),Angle( 0, CurTime() * 120, 0 ), 0.30 )
- local source_width = 100
- surface.SetMaterial( Sourcemod_Material )
- surface.SetDrawColor( GetHealthColor(v) )
- surface.DrawTexturedRect( -source_width, -source_width, source_width*2, source_width*2 )
- cam.End3D2D()
- end
- for k,v in pairs( player.GetAll() ) do
- if v:IsAdmin() then
- cam.Start3D2D( v:GetPos() + Vector( 0, 0, 5 ),Angle( 0, 120, 0 ), 0.30 )
- local source_width = math.sin( CurTime() + 10 ) * 90
- surface.SetMaterial( Sourcemod_Material )
- surface.SetDrawColor( HSVToColor( 10, 5, math.Rand( 1, 2 ) ), 50 )
- surface.DrawTexturedRect( -source_width, -source_width, source_width*2, source_width*2 )
- cam.End3D2D()
- end
- end
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement