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