Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ENT:Draw()
- self.Entity:DrawModel()
- local Name = LocalPlayer():Nick()
- local lpos = LocalPlayer():GetPos()
- local entity = LocalPlayer():GetEyeTrace().Entity
- if entity:IsValid() and lpos:Distance( entity:GetPos() ) < 160 then
- local p
- local ang = LocalPlayer():EyeAngles()
- --local health = self.health
- --local printName = self.Entity:GetName()
- p = entity:GetPos() + Vector(10,0,78) -- + math.sin(CurTime()*3))
- for _,yaw in pairs({0, 180}) do
- local ang = LocalPlayer():EyeAngles()
- cam.Start3D2D(p, Angle( 0, ang.y - 90, 90 ), 0.1)
- draw.RoundedBox( 8, -200 - 50, 440 + 100, 190 + 20 * 2, 130, Color( 50, 50, 50, 255 ) ) --Box
- --draw.RoundedBox( 4, -246, 404, 492, 292, Color( 48, 96, 139, 255 ) )
- draw.RoundedBox( 4, -182 - 50, 460 + 20 + 100, 160 + 15 * 2, 1, Color( 255, 255, 255, 255 ) ) --Underline
- draw.RoundedBox( 4, -182 - 50, 500 + 1 + 100, 160 + 15 * 2, 20, Color( 255, 0, 0, 255) ) --Health Bar
- draw.DrawText( "Health", "otherstuf", -182 - 50, 500 + 20 + 76, Color( 255, 255, 255, 255) ) --Health Text
- draw.DrawText( "City", "otherstuf", -210, 400 + 70 + 160, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER) --Ent Name
- draw.DrawText(Name, "watevrstuf", -135, 400 + 40 + 100, Color(255, 255, 255, 255), TEXT_ALIGN_CENTER) --Owner's Name
- cam.End3D2D()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement