in the medic hunt after m5l1 (i think) it uses hudprint to have the ready set go on the screen, if that's what you want and the rest of it's alright (level.counter and level.missilehealth) use...
while (1)
{
waitthread announce_points ("Countdown: " + (level.counter) + " seconds" + "\n" + "Missile health: " + (level.misslehealth) + " percent" ) 1 0 0
}
announce_points:
hudprint local.nstring local.nr local.ng local.nb:
println local.nstring
level.hudprint = local
local.distance = local.nstring.size / -2
huddraw_rect 187 (local.distance * 10) 200 0 0
huddraw_color 187 local.r local.g local.b
huddraw_font 187 "facfont-20"
huddraw_string 187 local.nstring
huddraw_align 187 center top
huddraw_alpha 187 1
wait .5 //refresh time
/* while (local.fade > 0)
{
local.fade = local.fade - 0.02
huddraw_alpha 187 local.fade
wait 0.02
}
*/
end
you can have it so it's fading if you wanted to but the refresh time should be larger (that bit i've commented out though) and you need to change the orange line to this
local.fade = 1
huddraw_alpha 187 local.fade
