Advertisement
sethxi

Untitled

May 17th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. local function DoActualHUD()
  2.         local ply = LocalPlayer()
  3.         local HP,AR = ply:Health(),ply:Armor()
  4.        
  5.         draw.RoundedBox(6,10,ScrH() - 62,204,24,Color(0,0,0,255))
  6.         draw.RoundedBox(6,12,ScrH() - 60,math.Clamp(HP,4,100)*2,20,Color(209,0,0,255))
  7.         draw.SimpleText(HP,"TargetID",100,ScrH() - 58)
  8. end
  9.  
  10. local function DrawHUD()
  11.         Scrw, Scrh = ScrW(), ScrH()
  12.         RelativeX, RelativeY = 0, Scrh
  13.  
  14.         DoActualHUD()
  15. end
  16.  
  17. function GM:HUDPaint()
  18.     DrawHUD()
  19.     self.BaseClass:HUDPaint()
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement