Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include("shared.lua")
- AddCSLuaFile()
- local thisent
- local text = SMS.LangTab["Refinery"]
- local font = "Default"
- function ENT:Draw()
- self.Entity:DrawModel()
- local textw, texth = surface.GetTextSize( text )
- local w = 5 + textw + 5
- local h = 2 + texth + 2
- local x, y = -w / 2, -h / 2
- local offset = Vector( 0, 0, 90 )
- local ang = LocalPlayer():EyeAngles()
- ang:RotateAroundAxis( ang:Forward(), 90 )
- ang:RotateAroundAxis( ang:Right(), 90 )
- local pos = self:GetPos() + (self:GetAngles():Up() * 90)
- cam.Start3D2D( pos, Angle( 0, ang.y, 90 ), 0.25 )
- surface.SetFont( font )
- surface.SetDrawColor( Color( 0, 0, 0, 200 ) )
- surface.DrawRect( x, y, w, h )
- draw.SimpleTextOutlined( text, font, 0, 0, Color( 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color( 0, 0, 0 ) )
- cam.End3D2D()
- end
- function ENT:Think()
- self:PhysicsInit(SOLID_VPHYSICS)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement