]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/main.qh
map previews when voting, g_maplist_textonly for old style
[divverent/nexuiz.git] / data / qcsrc / client / main.qh
1 // --------------------------------------------------------------------------
2 // MENU Functionality
3
4 #define DATABUF_PING 0
5 #define DATABUF_CAPTURES (1*maxclients)
6 #define DATABUF_DEATHS (2*maxclients)
7 #define DATABUF_RETURNS (3*maxclients)
8
9 #define DATABUF_NEXT (5*maxclients)
10
11 void() menu_show_error;
12 void() menu_sub_null;
13
14 float menu_visible;
15 var void() menu_show;
16 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
17
18 // --------------------------------------------------------------------------
19 // CTF
20
21 void() ctf_menu_show;
22 string ctf_temp_1;
23
24 // --------------------------------------------------------------------------
25 // Onslaught
26
27 // Map coordinate base calculations need these
28 vector mi_center;
29 vector mi_scale;
30 // Minimap
31 string minimapname;
32 float ons_showmap;
33
34 // --------------------------------------------------------------------------
35 // General stuff
36
37 float csqc_revision;
38
39 float drawfont;
40 float postinit;
41 float gametype;
42 entity gps_start;
43
44 float draw_enginesbar;
45 //float sorted_players;
46 //float sorted_teams;
47
48 // Defs
49 //.float ctf_state;
50 //.float health;
51
52 // Constants
53 const float COLOR_TEAM_RED = 64;
54 const float COLOR_TEAM_BLUE = 208;
55
56 const float COLOR_TEAM1       = 4;  // red
57 const float COLOR_TEAM2       = 13; // blue
58 const float COLOR_TEAM3       = 12; // yellow
59 const float COLOR_TEAM4       = 9; // pink
60 const float COLOR_SPECTATOR = 1337;
61
62 #define FONT_DEFAULT 0
63 #define FONT_USER 8
64
65 // --------------------------------------------------------------------------
66 // Scoreboard stuff
67
68 #define MAX_SBAR_FIELDS 16
69
70 #define SBF_END 0
71 #define SBF_PING 1
72 #define SBF_NAME 2
73 #define SBF_CAPS 3
74 #define SBF_RETS 4
75 #define SBF_FRAGS 5
76 #define SBF_DEATHS 6
77 #define SBF_KDRATIO 7
78
79 #define SBF_SEPARATOR 100
80
81 float sbar_field[MAX_SBAR_FIELDS + 1];
82 float sbar_size[MAX_SBAR_FIELDS + 1];
83 string sbar_title[MAX_SBAR_FIELDS + 1];
84 float sbar_num_fields;
85 float sbar_font;
86
87 float csqc_flags;
88 #define CSQC_FLAG_READPICTURE 1