Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local colHealth = Color(0, 0, 0, 240)
- local function ContentsPaint(self)
- --[[ local lp = LocalPlayer()
- if lp:IsValid() then
- local health = math.max(lp:Health(), 0)
- local healthperc = math.Clamp(health / lp:GetMaxHealthEx(), 0, 1)
- colHealth.r = (1 - healthperc) * 180
- colHealth.g = healthperc * 180
- draw.SimpleTextBlurry(health, "ZSHUDFont", 8, self:GetTall() - 8, colHealth, TEXT_ALIGN_LEFT, TEXT_ALIGN_TOP)
- surface.SetDrawColor(Color(255,255,255,255))
- surface.SetMaterial(AmmoRing)
- --surface.DrawTexturedRect(w * -0.2, h * -0.25, w * 0.4, w * 0.4)
- local hparts = NiceUV(ScrW() * 0.5, ScrH() * 0.5, 100, 100, math.Clamp(lp:Health(), 0, lp:GetMaxHealthEx()) / lp:GetMaxHealthEx() * 360, true )
- end ]]
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement