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