From: MirceaKitsune Date: Tue, 3 May 2011 15:26:14 +0000 (+0300) Subject: Add ring stats X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=1ac0f2ca0a34ee209003526d0d5e19ece5e500e1 Add ring stats --- diff --git a/data/qcsrc/common/constants.qh b/data/qcsrc/common/constants.qh index a01cafda..250052d3 100644 --- a/data/qcsrc/common/constants.qh +++ b/data/qcsrc/common/constants.qh @@ -285,11 +285,15 @@ const float STAT_VORE_DIGESTING = 53; const float STAT_VORE_EATEN = 54; const float STAT_VORE_CANLEAVE = 55; const float STAT_VORE_CANSWALLOW = 56; +const float STAT_SBRING1_TYPE = 57; +const float STAT_SBRING1_CLIP = 58; +const float STAT_SBRING2_TYPE = 59; +const float STAT_SBRING2_CLIP = 60; const float CTF_STATE_ATTACK = 1; const float CTF_STATE_DEFEND = 2; const float CTF_STATE_COMMANDER = 3; -const float STAT_HUD = 57; +const float STAT_HUD = 61; const float HUD_NORMAL = 0; // moved that here so the client knows the max. diff --git a/data/qcsrc/server/defs.qh b/data/qcsrc/server/defs.qh index a927ba95..14c87aed 100644 --- a/data/qcsrc/server/defs.qh +++ b/data/qcsrc/server/defs.qh @@ -607,6 +607,8 @@ string matchid; FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_hit); FTEQCC_YOU_SUCK_THIS_IS_NOT_UNREFERENCED(stats_fired); +.float stat_sbring1_type, stat_sbring1_clip, stat_sbring2_type, stat_sbring2_clip; + .float stat_leadlimit; float radar_showennemies; diff --git a/data/qcsrc/server/g_world.qc b/data/qcsrc/server/g_world.qc index c6776437..ababcf93 100644 --- a/data/qcsrc/server/g_world.qc +++ b/data/qcsrc/server/g_world.qc @@ -663,7 +663,10 @@ void spawnfunc_worldspawn (void) addstat(STAT_VORE_DIGESTING, AS_INT, stat_digesting); addstat(STAT_VORE_EATEN, AS_INT, stat_eaten); addstat(STAT_VORE_CANLEAVE, AS_INT, stat_canleave); - + addstat(STAT_SBRING1_TYPE, AS_INT, stat_sbring1_type); + addstat(STAT_SBRING1_CLIP, AS_FLOAT, stat_sbring1_clip); + addstat(STAT_SBRING2_TYPE, AS_INT, stat_sbring2_type); + addstat(STAT_SBRING2_CLIP, AS_FLOAT, stat_sbring2_clip); next_pingtime = time + 5; InitializeEntity(self, cvar_changes_init, INITPRIO_CVARS);