Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The CL_INIT.Lua
- include("shared.lua")
- function ENT:Initialize()
- end
- // New code ------------------------------
- local cooled = self:GetNWInt("IsCooled")
- if cooled = 1 then
- local cooling = "Cooling"
- else
- local cooling = "Not Cooling"
- end
- // New Code ------------------------------
- function ENT:Draw()
- self.Entity:DrawModel()
- local Pos = self:GetPos()
- local Ang = self:GetAngles()
- txt1 = "Copper Printer"
- txt2 = "$" ..self:GetNWInt("PrintA")
- txt3 = cooling
- surface.SetFont("HUDNumber5")
- local TextWidth = surface.GetTextSize(txt1)
- local TextWidth2 = surface.GetTextSize(txt2)
- Ang:RotateAroundAxis(Ang:Up(), 90)
- cam.Start3D2D(Pos + Ang:Up() * 11.5, Ang, 0.11)
- draw.WordBox(2, -TextWidth*0.5, -30, txt1, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
- draw.WordBox(2, -TextWidth2*0.5, 18, txt2, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
- cam.End3D2D()
- end
- function ENT:Think()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement