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