]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/stats.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / stats.qh
1 #ifndef STATS_H
2 #define STATS_H
3
4 #if defined(CSQC)
5     #include "util-pre.qh"
6     #include "../client/sys-pre.qh"
7     #include "../dpdefs/csprogsdefs.qc"
8     #include "../client/sys-post.qh"
9     #include "../client/Defs.qc"
10     #include "../dpdefs/keycodes.qc"
11     #include "constants.qh"
12 #elif defined(MENUQC)
13 #elif defined(SVQC)
14     #include "util-pre.qh"
15     #include "../server/sys-pre.qh"
16     #include "../dpdefs/progsdefs.qc"
17     #include "../dpdefs/dpextensions.qc"
18     #include "../server/sys-post.qh"
19     #include "../warpzonelib/anglestransform.qh"
20     #include "../warpzonelib/mathlib.qh"
21     #include "../warpzonelib/common.qh"
22     #include "../warpzonelib/util_server.qh"
23     #include "../warpzonelib/server.qh"
24     #include "constants.qh"
25 #endif
26
27 // Full list of all stat constants, included in a single location for easy reference
28 // 255 is the current limit (MAX_CL_STATS - 1), engine will need to be modified if you wish to add more stats
29
30 const int MAX_CL_STATS                = 256;
31 const int STAT_HEALTH                 = 0;
32 // 1 empty?
33 const int STAT_WEAPON                 = 2;
34 const int STAT_AMMO                   = 3;
35 const int STAT_ARMOR                  = 4;
36 const int STAT_WEAPONFRAME            = 5;
37 const int STAT_SHELLS                 = 6;
38 const int STAT_NAILS                  = 7;
39 const int STAT_ROCKETS                = 8;
40 const int STAT_CELLS                  = 9;
41 const int STAT_ACTIVEWEAPON           = 10;
42 const int STAT_TOTALSECRETS           = 11;
43 const int STAT_TOTALMONSTERS          = 12;
44 const int STAT_SECRETS                = 13;
45 const int STAT_MONSTERS               = 14;
46 const int STAT_ITEMS                  = 15;
47 const int STAT_VIEWHEIGHT             = 16;
48 // 17 empty?
49 // 18 empty?
50 // 19 empty?
51 // 20 empty?
52 const int STAT_VIEWZOOM               = 21;
53 // 22 empty?
54 // 23 empty?
55 // 24 empty?
56 // 25 empty?
57 // 26 empty?
58 // 27 empty?
59 // 28 empty?
60 // 29 empty?
61 // 30 empty?
62 // 31 empty?
63 const int STAT_KH_KEYS                = 32;
64 const int STAT_CTF_STATE              = 33;
65 // 34 empty?
66 const int STAT_WEAPONS                = 35;
67 const int STAT_SWITCHWEAPON           = 36;
68 const int STAT_GAMESTARTTIME          = 37;
69 const int STAT_STRENGTH_FINISHED      = 38;
70 const int STAT_INVINCIBLE_FINISHED    = 39;
71 // 40 empty?
72 const int STAT_ARC_HEAT               = 41;
73 const int STAT_PRESSED_KEYS           = 42;
74 const int STAT_ALLOW_OLDVORTEXBEAM    = 43; // this stat could later contain some other bits of info, like, more server-side particle config
75 const int STAT_FUEL                   = 44;
76 const int STAT_NB_METERSTART          = 45;
77 const int STAT_SHOTORG                = 46; // compressShotOrigin
78 const int STAT_LEADLIMIT              = 47;
79 const int STAT_WEAPON_CLIPLOAD        = 48;
80 const int STAT_WEAPON_CLIPSIZE        = 49;
81 const int STAT_VORTEX_CHARGE          = 50;
82 const int STAT_LAST_PICKUP            = 51;
83 const int STAT_HUD                    = 52;
84 const int STAT_VORTEX_CHARGEPOOL      = 53;
85 const int STAT_HIT_TIME               = 54;
86 const int STAT_DAMAGE_DEALT_TOTAL     = 55;
87 const int STAT_TYPEHIT_TIME           = 56;
88 const int STAT_LAYED_MINES            = 57;
89 const int STAT_HAGAR_LOAD             = 58;
90 const int STAT_SWITCHINGWEAPON        = 59;
91 const int STAT_SUPERWEAPONS_FINISHED  = 60;
92 const int STAT_VEHICLESTAT_HEALTH     = 61;
93 const int STAT_VEHICLESTAT_SHIELD     = 62;
94 const int STAT_VEHICLESTAT_ENERGY     = 63;
95 const int STAT_VEHICLESTAT_AMMO1      = 64;
96 const int STAT_VEHICLESTAT_RELOAD1    = 65;
97 const int STAT_VEHICLESTAT_AMMO2      = 66;
98 const int STAT_VEHICLESTAT_RELOAD2    = 67;
99 const int STAT_VEHICLESTAT_W2MODE     = 68;
100 const int STAT_NADE_TIMER             = 69;
101 const int STAT_SECRETS_TOTAL          = 70;
102 const int STAT_SECRETS_FOUND          = 71;
103 const int STAT_RESPAWN_TIME           = 72;
104 const int STAT_ROUNDSTARTTIME         = 73;
105 const int STAT_WEAPONS2               = 74;
106 const int STAT_WEAPONS3               = 75;
107 const int STAT_MONSTERS_TOTAL         = 76;
108 const int STAT_MONSTERS_KILLED        = 77;
109 const int STAT_BUFFS                  = 78;
110 const int STAT_NADE_BONUS             = 79;
111 const int STAT_NADE_BONUS_TYPE        = 80;
112 const int STAT_NADE_BONUS_SCORE       = 81;
113 const int STAT_HEALING_ORB            = 82;
114 const int STAT_HEALING_ORB_ALPHA      = 83;
115 const int STAT_PLASMA                 = 84;
116 const int STAT_OK_AMMO_CHARGE         = 85;
117 const int STAT_OK_AMMO_CHARGEPOOL     = 86;
118 // 87 empty?
119 // 88 empty?
120 // 89 empty?
121 // 90 empty?
122 // 91 empty?
123 // 92 empty?
124 // 93 empty?
125 // 94 empty?
126 // 95 empty?
127 // 96 empty?
128 // 97 empty?
129 // 98 empty?
130 // 99 empty?
131
132
133 /* The following stats change depending on the gamemode, so can share the same ID */
134 // IDs 100 to 104 reserved for gamemodes
135
136 // freeze tag, clan arena, jailbreak
137 const int STAT_REDALIVE               = 100;
138 const int STAT_BLUEALIVE              = 101;
139 const int STAT_YELLOWALIVE            = 102;
140 const int STAT_PINKALIVE              = 103;
141
142 // domination
143 const int STAT_DOM_TOTAL_PPS          = 100;
144 const int STAT_DOM_PPS_RED            = 101;
145 const int STAT_DOM_PPS_BLUE           = 102;
146 const int STAT_DOM_PPS_YELLOW         = 103;
147 const int STAT_DOM_PPS_PINK           = 104;
148
149 // vip
150 const int STAT_VIP                    = 100;
151 const int STAT_VIP_RED                = 101;
152 const int STAT_VIP_BLUE               = 102;
153 const int STAT_VIP_YELLOW             = 103;
154 const int STAT_VIP_PINK               = 104;
155
156 // key hunt
157 const int STAT_KH_REDKEY_TEAM         = 100;
158 const int STAT_KH_BLUEKEY_TEAM        = 101;
159 const int STAT_KH_YELLOWKEY_TEAM      = 102;
160 const int STAT_KH_PINKKEY_TEAM        = 103;
161
162 /* Gamemode-specific stats end here */
163
164
165 const int STAT_FROZEN                 = 105;
166 const int STAT_REVIVE_PROGRESS        = 106;
167 // 107 empty?
168 // 108 empty?
169 // 109 empty?
170 // 110 empty?
171 // 111 empty?
172 // 112 empty?
173 // 113 empty?
174 // 114 empty?
175 // 115 empty?
176 // 116 empty?
177 // 117 empty?
178 // 118 empty?
179 // 119 empty?
180 // 120 empty?
181 // 121 empty?
182 // 122 empty?
183 // 123 empty?
184 // 124 empty?
185 // 125 empty?
186 // 126 empty?
187 // 127 empty?
188 // 128 empty?
189 // 129 empty?
190 // 130 empty?
191 // 131 empty?
192 // 132 empty?
193 // 133 empty?
194 // 134 empty?
195 // 135 empty?
196 // 136 empty?
197 // 137 empty?
198 // 138 empty?
199 // 139 empty?
200 // 140 empty?
201 // 141 empty?
202 // 142 empty?
203 // 143 empty?
204 // 144 empty?
205 // 145 empty?
206 // 146 empty?
207 // 147 empty?
208 // 148 empty?
209 // 149 empty?
210 // 150 empty?
211 // 151 empty?
212 // 152 empty?
213 // 153 empty?
214 // 154 empty?
215 // 155 empty?
216 // 156 empty?
217 // 157 empty?
218 // 158 empty?
219 // 159 empty?
220 // 160 empty?
221 // 161 empty?
222 // 162 empty?
223 // 162 empty?
224 // 163 empty?
225 // 164 empty?
226 // 165 empty?
227 // 166 empty?
228 // 167 empty?
229 // 168 empty?
230 // 169 empty?
231 // 170 empty?
232 // 171 empty?
233 // 172 empty?
234 // 173 empty?
235 // 174 empty?
236 // 175 empty?
237 // 176 empty?
238 // 177 empty?
239 // 178 empty?
240 // 179 empty?
241 // 180 empty?
242 // 181 empty?
243 // 182 empty?
244 // 183 empty?
245 // 184 empty?
246 // 185 empty?
247 // 186 empty?
248 // 187 empty?
249 // 188 empty?
250 // 189 empty?
251 // 190 empty?
252 // 191 empty?
253 // 192 empty?
254 // 193 empty?
255 // 194 empty?
256 // 195 empty?
257 // 196 empty?
258 // 197 empty?
259 // 198 empty?
260 // 199 empty?
261 // 200 empty?
262 // 201 empty?
263 // 202 empty?
264 // 203 empty?
265 // 204 empty?
266 // 205 empty?
267 // 206 empty?
268 // 207 empty?
269 // 208 empty?
270 // 209 empty?
271 // 210 empty?
272 // 211 empty?
273 // 212 empty?
274 // 213 empty?
275 // 214 empty?
276 // 215 empty?
277 // 216 empty?
278 // 217 empty?
279 // 218 empty?
280 // 219 empty?
281 const int STAT_MOVEVARS_AIRACCEL_QW_STRETCHFACTOR     = 220;
282 const int STAT_MOVEVARS_AIRCONTROL_PENALTY            = 221;
283 const int STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW           = 222;
284 const int STAT_MOVEVARS_AIRSTRAFEACCEL_QW             = 223;
285 const int STAT_MOVEVARS_AIRCONTROL_POWER              = 224;
286 const int STAT_MOVEFLAGS                              = 225;
287 const int STAT_MOVEVARS_WARSOWBUNNY_AIRFORWARDACCEL   = 226;
288 const int STAT_MOVEVARS_WARSOWBUNNY_ACCEL             = 227;
289 const int STAT_MOVEVARS_WARSOWBUNNY_TOPSPEED          = 228;
290 const int STAT_MOVEVARS_WARSOWBUNNY_TURNACCEL         = 229;
291 const int STAT_MOVEVARS_WARSOWBUNNY_BACKTOSIDERATIO   = 230;
292 const int STAT_MOVEVARS_AIRSTOPACCELERATE             = 231;
293 const int STAT_MOVEVARS_AIRSTRAFEACCELERATE           = 232;
294 const int STAT_MOVEVARS_MAXAIRSTRAFESPEED             = 233;
295 const int STAT_MOVEVARS_AIRCONTROL                    = 234;
296 const int STAT_FRAGLIMIT                              = 235;
297 const int STAT_TIMELIMIT                              = 236;
298 const int STAT_MOVEVARS_WALLFRICTION                  = 237;
299 const int STAT_MOVEVARS_FRICTION                      = 238;
300 const int STAT_MOVEVARS_WATERFRICTION                 = 239;
301 const int STAT_MOVEVARS_TICRATE                       = 240;
302 const int STAT_MOVEVARS_TIMESCALE                     = 241;
303 const int STAT_MOVEVARS_GRAVITY                       = 242;
304 const int STAT_MOVEVARS_STOPSPEED                     = 243;
305 const int STAT_MOVEVARS_MAXSPEED                      = 244;
306 const int STAT_MOVEVARS_SPECTATORMAXSPEED             = 245;
307 const int STAT_MOVEVARS_ACCELERATE                    = 246;
308 const int STAT_MOVEVARS_AIRACCELERATE                 = 247;
309 const int STAT_MOVEVARS_WATERACCELERATE               = 248;
310 const int STAT_MOVEVARS_ENTGRAVITY                    = 249;
311 const int STAT_MOVEVARS_JUMPVELOCITY                  = 250;
312 const int STAT_MOVEVARS_EDGEFRICTION                  = 251;
313 const int STAT_MOVEVARS_MAXAIRSPEED                   = 252;
314 const int STAT_MOVEVARS_STEPHEIGHT                    = 253;
315 const int STAT_MOVEVARS_AIRACCEL_QW                   = 254;
316 const int STAT_MOVEVARS_AIRACCEL_SIDEWAYS_FRICTION    = 255;
317 #endif