]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
send superweapons_finished as a stat
authorRudolf Polzer <divverent@alientrap.org>
Thu, 12 Jan 2012 13:50:52 +0000 (14:50 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 12 Jan 2012 13:50:52 +0000 (14:50 +0100)
qcsrc/common/constants.qh
qcsrc/server/g_world.qc

index 7532b3f50b0a85a25dab66ae98a40ccc79dff39c..afd2677a66230adbdb9cb41aa297501a20d7c7c2 100644 (file)
@@ -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;
index 93cea80ffd078aaac431bb5a5dbf4b4bcd699178..f699ababc19af8f4e8bd324574a7b386b6b2c769 100644 (file)
@@ -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);