]> de.git.xonotic.org Git - voretournament/voretournament.git/blob - data/qcsrc/client/main.qh
e16c1088af8f734f0fae581a6bf218db8607563b
[voretournament/voretournament.git] / data / qcsrc / client / main.qh
1 const string string_null;\r
2 \r
3 // --------------------------------------------------------------------------\r
4 // MENU Functionality\r
5 \r
6 #define DATABUF_PING 0\r
7 #define DATABUF_CAPTURES (1*maxclients)\r
8 #define DATABUF_DEATHS (2*maxclients)\r
9 #define DATABUF_RETURNS (3*maxclients)\r
10 \r
11 #define DATABUF_NEXT (5*maxclients)\r
12 \r
13 void() menu_show_error;\r
14 void() menu_sub_null;\r
15 \r
16 float menu_visible;\r
17 var void() menu_show;\r
18 var float(float bInputType, float nPrimary, float nSecondary) menu_action;\r
19 \r
20 // --------------------------------------------------------------------------\r
21 // CTF\r
22 \r
23 void() ctf_menu_show;\r
24 string ctf_temp_1;\r
25 \r
26 // --------------------------------------------------------------------------\r
27 // Onslaught\r
28 \r
29 // Map coordinate base calculations need these\r
30 vector mi_center;\r
31 vector mi_scale;\r
32 // Minimap\r
33 string minimapname;\r
34 float showmap;\r
35 \r
36 // --------------------------------------------------------------------------\r
37 // General stuff\r
38 \r
39 float drawfont;\r
40 float postinit;\r
41 float gametype;\r
42 \r
43 //float sorted_players;\r
44 //float sorted_teams;\r
45 \r
46 // Defs\r
47 //.float ctf_state;\r
48 //.float health;\r
49 \r
50 // Constants\r
51 const float COLOR_TEAM_RED = 64;\r
52 const float COLOR_TEAM_BLUE = 208;\r
53 \r
54 const float COLOR_TEAM1       = 4;  // red\r
55 const float COLOR_TEAM2       = 13; // blue\r
56 const float COLOR_TEAM3       = 12; // yellow\r
57 const float COLOR_TEAM4       = 9; // pink\r
58 const float COLOR_SPECTATOR = 1337;\r
59 \r
60 #define FONT_DEFAULT 0\r
61 #define FONT_USER 8\r
62 \r
63 // --------------------------------------------------------------------------\r
64 // Scoreboard stuff\r
65 \r
66 #define MAX_SBAR_FIELDS 16\r
67 \r
68 #define SP_END -1\r
69 \r
70 #define SP_PING -2\r
71 #define SP_NAME -3\r
72 #define SP_KDRATIO -4\r
73 #define SP_CLRATIO -5\r
74 #define SP_PL -6\r
75 #define SP_FRAGS -7\r
76 \r
77 #define SP_SEPARATOR -100\r
78 \r
79 #define ST_HIGHLIGHT -1\r
80 #define ST_NAME -2\r
81 #define ST_HEALTH -3\r
82 \r
83 #define STP_HIGHLIGHT -2\r
84 #define STP_NAME -1\r
85 \r
86 float sbar_field[MAX_SBAR_FIELDS + 1];\r
87 float sbar_size[MAX_SBAR_FIELDS + 1];\r
88 string sbar_title[MAX_SBAR_FIELDS + 1];\r
89 float sbar_num_fields;\r
90 \r
91 float sbar_font;\r
92 float sbar_bigfont;\r
93 \r
94 string scores_label[MAX_SCORE];\r
95 float scores_flags[MAX_SCORE];\r
96 string teamscores_label[MAX_SCORE];\r
97 float teamscores_flags[MAX_SCORE];\r
98 .float scores[MAX_SCORE];\r
99 .float teamscores[MAX_TEAMSCORE];\r
100 \r
101 #define IS_INCREASING(x) ( (x)&SFL_LOWER_IS_BETTER )\r
102 #define IS_DECREASING(x) ( !((x)&SFL_LOWER_IS_BETTER) )\r
103 \r
104 \r
105 vector sbar_fontsize;\r
106 vector sbar_oldfontsize;\r
107 vector sbar_fontsize_spec;\r
108 \r
109 float RANKINGS_RECEIVED_CNT;\r
110 string grecordholder[RANKINGS_CNT];\r
111 float grecordtime[RANKINGS_CNT];\r
112 //float csqc_flags;\r
113 \r
114 entity playerslots[255]; // 255 is engine limit on maxclients\r
115 entity teamslots[17];    // 17 teams (including "spectator team")\r
116 .float gotscores;\r
117 .entity owner;\r
118 .float ready;\r
119 \r
120 .void(void) draw;\r
121 .void(void) draw2d;\r
122 .void(void) entremove;\r
123 float drawframetime;\r
124 vector view_origin, view_angles, view_forward, view_right, view_up;\r
125 \r
126 float button_zoom;\r
127 float spectatorbutton_zoom;\r
128 float button_attack2;\r
129 float button_jetpack;\r
130 float activeweapon;\r
131 float current_viewzoom;\r
132 float zoomin_effect;\r
133 float ignore_plus_zoom;\r
134 float ignore_minus_zoom;\r
135 float warmup_stage;\r
136 \r
137 string getcommandkey(string text, string command);\r
138 float sbar_showbinds;\r
139 float sbar_showbinds_limit;\r
140 \r
141 string vote_called_vote;\r
142 float ready_waiting;\r
143 float ready_waiting_for_me;\r
144 float vote_waiting;\r
145 float vote_waiting_for_me;\r
146 \r
147 float previous_game_starttime;\r
148 entity restartAnnouncer; //a temporary entity which will play the countdown sounds 3, 2, 1 for the client\r
149 void restartAnnouncer_Think();\r
150 \r
151 float current_zoomfraction;\r
152 \r
153 float cs_project_is_b0rked;\r
154 float vid_width, vid_height, vid_pixelheight;\r
155 \r
156 float camera_active;            // Demo camera is active if set to TRUE\r
157 float chase_active_backup;\r
158 float camera_roll;\r
159 vector camera_direction;\r
160 \r
161 void centerprint(string strMessage);\r
162 \r
163 #define ALPHA_MIN_VISIBLE 0.003\r
164 \r
165 float g_campaign;\r
166 \r
167 float armorblockpercent;\r
168 float g_weaponswitchdelay;\r
169 \r
170 float g_vore;\r
171 float g_healthsize_center, g_healthsize_min, g_healthsize_max;\r
172 float armor_max;\r
173 float teamheal_max;\r
174 float g_power, g_power_reboot, g_power_reboot_spawn;\r
175 \r
176 //hooks\r
177 float calledhooks;\r
178 #define HOOK_START    1\r
179 #define HOOK_END      2\r
180 \r
181 .float ping, ping_packetloss, ping_movementloss;\r
182 .float plhealth, plpredator;\r
183 \r
184 entity entcs_receiver[255]; // 255 is the engine limit on maxclients\r