]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Add ring stats
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 15:26:14 +0000 (18:26 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 3 May 2011 15:26:14 +0000 (18:26 +0300)
data/qcsrc/common/constants.qh
data/qcsrc/server/defs.qh
data/qcsrc/server/g_world.qc

index a01cafdaa92cefc08936ad42e4ed86d4bbeec819..250052d324a5e28d05f3fdff8a7fe29a57205ea8 100644 (file)
@@ -285,11 +285,15 @@ const float STAT_VORE_DIGESTING = 53;
 const float STAT_VORE_EATEN = 54;\r
 const float STAT_VORE_CANLEAVE = 55;\r
 const float STAT_VORE_CANSWALLOW = 56;\r
+const float STAT_SBRING1_TYPE = 57;\r
+const float STAT_SBRING1_CLIP = 58;\r
+const float STAT_SBRING2_TYPE = 59;\r
+const float STAT_SBRING2_CLIP = 60;\r
 const float CTF_STATE_ATTACK = 1;\r
 const float CTF_STATE_DEFEND = 2;\r
 const float CTF_STATE_COMMANDER = 3;\r
 \r
-const float STAT_HUD = 57;\r
+const float STAT_HUD = 61;\r
 const float HUD_NORMAL = 0;\r
 \r
 // moved that here so the client knows the max.\r
index a927ba957bfa97a2ebe75ea9c12bec84617e319b..14c87aed56b2ea9e2cb5d2b965d5598877b9c836 100644 (file)
@@ -607,6 +607,8 @@ string matchid;
 FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_hit);\r
 FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_fired);\r
 \r
+.float stat_sbring1_type, stat_sbring1_clip, stat_sbring2_type, stat_sbring2_clip;\r
+\r
 .float stat_leadlimit;\r
 \r
 float radar_showennemies;\r
index c6776437bf42820ee8083e83a8bfd683e744f271..ababcf9357ba377b5b54941352a20596caea085f 100644 (file)
@@ -663,7 +663,10 @@ void spawnfunc_worldspawn (void)
        addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting);\r
        addstat(STAT_VORE_EATEN, AS_INT, stat_eaten);\r
        addstat(STAT_VORE_CANLEAVE, AS_INT, stat_canleave);\r
-\r
+       addstat(STAT_SBRING1_TYPE, AS_INT, stat_sbring1_type);\r
+       addstat(STAT_SBRING1_CLIP, AS_FLOAT, stat_sbring1_clip);\r
+       addstat(STAT_SBRING2_TYPE, AS_INT, stat_sbring2_type);\r
+       addstat(STAT_SBRING2_CLIP, AS_FLOAT, stat_sbring2_clip);\r
        next_pingtime = time + 5;\r
        InitializeEntity(self, cvar_changes_init, INITPRIO_CVARS);\r
 \r