]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/client/main.qh
misc_laser is now client side too (untested too)
[divverent/nexuiz.git] / data / qcsrc / client / main.qh
1 const string string_null;
2
3 // --------------------------------------------------------------------------
4 // MENU Functionality
5
6 #define DATABUF_PING 0
7 #define DATABUF_CAPTURES (1*maxclients)
8 #define DATABUF_DEATHS (2*maxclients)
9 #define DATABUF_RETURNS (3*maxclients)
10
11 #define DATABUF_NEXT (5*maxclients)
12
13 void() menu_show_error;
14 void() menu_sub_null;
15
16 float menu_visible;
17 var void() menu_show;
18 var float(float bInputType, float nPrimary, float nSecondary) menu_action;
19
20 // --------------------------------------------------------------------------
21 // CTF
22
23 void() ctf_menu_show;
24 string ctf_temp_1;
25
26 // --------------------------------------------------------------------------
27 // Onslaught
28
29 // Map coordinate base calculations need these
30 vector mi_center;
31 vector mi_scale;
32 // Minimap
33 string minimapname;
34 float ons_showmap;
35
36 // --------------------------------------------------------------------------
37 // General stuff
38
39 float csqc_revision;
40
41 float drawfont;
42 float postinit;
43 float gametype;
44 entity gps_start;
45
46 float draw_enginesbar;
47 //float sorted_players;
48 //float sorted_teams;
49
50 // Defs
51 //.float ctf_state;
52 //.float health;
53
54 // Constants
55 const float COLOR_TEAM_RED = 64;
56 const float COLOR_TEAM_BLUE = 208;
57
58 const float COLOR_TEAM1       = 4;  // red
59 const float COLOR_TEAM2       = 13; // blue
60 const float COLOR_TEAM3       = 12; // yellow
61 const float COLOR_TEAM4       = 9; // pink
62 const float COLOR_SPECTATOR = 1337;
63
64 #define FONT_DEFAULT 0
65 #define FONT_USER 8
66
67 // --------------------------------------------------------------------------
68 // Scoreboard stuff
69
70 #define MAX_SBAR_FIELDS 16
71
72 #define SP_END -1
73
74 #define SP_PING -2
75 #define SP_NAME -3
76 #define SP_KDRATIO -4
77 #define SP_CLRATIO -5
78 #define SP_PL -6
79
80 #define SP_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;
86
87 float sbar_font;
88 float sbar_bigfont;
89
90 string scores_label[MAX_SCORE];
91 float scores_flags[MAX_SCORE];
92 string teamscores_label[MAX_SCORE];
93 float teamscores_flags[MAX_SCORE];
94 .float scores[MAX_SCORE];
95 .float teamscores[MAX_TEAMSCORE];
96
97 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )
98 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )
99
100
101 vector sbar_fontsize;
102
103 float csqc_flags;
104 #define CSQC_FLAG_READPICTURE 1
105
106 string config_get(string key, string defaultvalue);
107
108 entity playerslots[255]; // 255 is engine limit on maxclients
109 entity teamslots[17];    // 17 teams (including "spectator team")
110 .float gotscores;
111 .entity owner;
112
113 .void(void) draw;
114 float drawframetime;
115 vector view_origin, view_angles, view_forward, view_right, view_up;