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