Hud modification

I’ve made a weapon that makes you innocent for * x * amount of time ( being defined by a Server ConVar ) in TTT.

I want to create something that overlays the default hud and counts down, revealing red every second the timer counts down. I’ve never done anything with HUD. How would I got about dothing this?

( NOTE: I’ll get an MS Paint picture after I finish school )

hook.Add(“HUDPaint”, “blah”, blah)

For example, here is some text that I needed on the HUD for one of my weapons;

function drawdr()
draw.DrawText("YOUR TEXT HERE", "DRfont",61, ScrH() - 10 - 103, Color(255,255,255,255))

hook.Add("HUDPaint", "drawdr", drawdr)

Please note I created the font ‘DRfont’ in the code.

Thank you!

To make it slowly reveal itself, do I just make a for loop?

To make it appear slowly increase Alpha over dT ( change in time ) until it’s 255.