game-source/klik/menu.qc

26 lines
349 B
C++
Raw Permalink Normal View History

#include "common.qh"
#include "menu.qh"
2003-10-28 21:20:34 +00:00
.float menu_state;
.float menu_time;
.void () menu_think;
2003-10-28 21:20:34 +00:00
void (void () menu_func)
menu_set =
{
self.menu_state = 0;
self.menu_time = 0;
self.menu_think = menu_func;
};
float ()
util_menu_needs_print =
{
if (time > self.menu_time) {
self.menu_time = time + 1.4;
return TRUE;
}
return FALSE;
};