Guest User

Untitled

a guest
Sep 3rd, 2012
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. The CL_INIT.Lua
  2.  
  3.  
  4. include("shared.lua")
  5.  
  6. function ENT:Initialize()
  7. end
  8.  
  9. local cooled = self:GetNWInt("IsCooled")
  10. if cooled = 1 then
  11. local cooling = "Cooling"
  12. else
  13. local cooling = "Not Cooling"
  14. end
  15.  
  16. function ENT:Draw()
  17. self.Entity:DrawModel()
  18.  
  19. local Pos = self:GetPos()
  20. local Ang = self:GetAngles()
  21.  
  22.  
  23.  
  24. txt1 = "Copper Printer"
  25. txt2 = "$" ..self:GetNWInt("PrintA")
  26. txt3 = cooling
  27.  
  28. surface.SetFont("HUDNumber5")
  29. local TextWidth = surface.GetTextSize(txt1)
  30. local TextWidth2 = surface.GetTextSize(txt2)
  31.  
  32. Ang:RotateAroundAxis(Ang:Up(), 90)
  33.  
  34. cam.Start3D2D(Pos + Ang:Up() * 11.5, Ang, 0.11)
  35. draw.WordBox(2, -TextWidth*0.5, -30, txt1, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
  36. draw.WordBox(2, -TextWidth2*0.5, 18, txt2, "HUDNumber5", Color(140, 0, 0, 100), Color(255,255,255,255))
  37. cam.End3D2D()
  38. end
  39.  
  40. function ENT:Think()
  41. end
Advertisement
Add Comment
Please, Sign In to add comment