Advertisement
Guest User

Untitled

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