2003-10-27 22:27:29 +00:00
|
|
|
#include "client.qh"
|
2003-10-24 21:43:32 +00:00
|
|
|
#include "common.qh"
|
|
|
|
#include "menu.qh"
|
2003-10-27 22:27:29 +00:00
|
|
|
#include "misc.qh"
|
2003-10-24 21:43:32 +00:00
|
|
|
|
|
|
|
/*
|
2004-02-08 07:34:17 +00:00
|
|
|
void ()
|
|
|
|
menu_team =
|
|
|
|
{
|
|
|
|
if (team_ischosen (self))
|
|
|
|
menu_set (menu_equip);
|
2003-10-24 21:43:32 +00:00
|
|
|
|
2004-02-08 07:34:17 +00:00
|
|
|
if (util_menu_needs_print () && is_cl (self)) {
|
|
|
|
centerprint (self,
|
|
|
|
"Team\n"
|
|
|
|
"\<\-\-\-\-\>\n"
|
|
|
|
"1\b.\b Red\n"
|
|
|
|
"2\b.\b Blue\n"
|
|
|
|
"\n"
|
|
|
|
"0\b.\b Auto\n");
|
2003-10-24 21:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (self.impulse == 1) {
|
2004-02-08 07:34:17 +00:00
|
|
|
team_join (TEAM_RED);
|
2003-10-24 21:43:32 +00:00
|
|
|
} else if (self.impulse == 2) {
|
2004-02-08 07:34:17 +00:00
|
|
|
team_join (TEAM_BLUE);
|
|
|
|
} else if (self.impulse == 10 || self.button0 || self.button1
|
|
|
|
|| self.button2) {
|
|
|
|
team_join_auto ();
|
2003-10-24 21:43:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
self.impulse = 0;
|
|
|
|
self.button0 = self.button1 = self.button2 = 0;
|
|
|
|
};
|
|
|
|
*/
|
|
|
|
|
|
|
|
void() menu_intro = {
|
|
|
|
if (!self.menu_state)
|
|
|
|
self.menu_state = time + 3;
|
|
|
|
else if (time >= self.menu_state) {
|
2004-02-08 07:34:17 +00:00
|
|
|
if (is_cl (self))
|
|
|
|
centerprint (self, "");
|
|
|
|
PutClientInGame ();
|
2003-10-24 21:43:32 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2004-02-08 07:34:17 +00:00
|
|
|
if (util_menu_needs_print ()) {
|
|
|
|
if (is_cl (self))
|
|
|
|
centerprint (self,
|
|
|
|
"\[ This server is running Klik 0.0.7 \]\n"
|
|
|
|
"\[ by Zinx Verituse \]\n"
|
|
|
|
"\[ http://staff.xmms.org/zinx/klik \]\n"
|
|
|
|
"\n"
|
|
|
|
"\<[ It's a Quake World. ]\>\n");
|
2003-10-24 21:43:32 +00:00
|
|
|
}
|
|
|
|
};
|