From 5db2c65ebcca7ca4b9378d1d423f9c2a8da1c052 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 12 Jan 2012 14:50:52 +0100 Subject: [PATCH] send superweapons_finished as a stat --- qcsrc/common/constants.qh | 1 + qcsrc/server/g_world.qc | 1 + 2 files changed, 2 insertions(+) diff --git a/qcsrc/common/constants.qh b/qcsrc/common/constants.qh index 7532b3f50..afd2677a6 100644 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@ -161,6 +161,7 @@ const float STAT_TYPEHIT_TIME = 55; const float STAT_LAYED_MINES = 56; const float STAT_HAGAR_LOAD = 57; const float STAT_SWITCHINGWEAPON = 58; +const float STAT_SUPERWEAPONS_FINISHED = 59; // see DP source, quakedef.h const float STAT_MOVEVARS_AIRSPEEDLIMIT_NONQW = 222; diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 93cea80ff..f699ababc 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -772,6 +772,7 @@ void spawnfunc_worldspawn (void) addstat(STAT_STRENGTH_FINISHED, AS_FLOAT, strength_finished); addstat(STAT_INVINCIBLE_FINISHED, AS_FLOAT, invincible_finished); + addstat(STAT_SUPERWEAPONS_FINISHED, AS_FLOAT, superweapons_finished); addstat(STAT_PRESSED_KEYS, AS_FLOAT, pressedkeys); addstat(STAT_FUEL, AS_INT, ammo_fuel); addstat(STAT_SHOTORG, AS_INT, stat_shotorg); -- 2.39.2