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