[nexuiz-commits] r8483 - trunk/data/qcsrc/client

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed Jan 6 09:35:53 EST 2010


Author: fruitiex
Date: 2010-01-06 09:35:53 -0500 (Wed, 06 Jan 2010)
New Revision: 8483

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
hide accuracy stats in race/cts


Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2010-01-06 14:08:26 UTC (rev 8482)
+++ trunk/data/qcsrc/client/sbar.qc	2010-01-06 14:35:53 UTC (rev 8483)
@@ -129,7 +129,7 @@
 	drawstring(pos, ftos(imp), vsize, '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);
 
 	// draw the weapon accuracy on the HUD
-	if(sbar_accuracy_hud)
+	if(sbar_accuracy_hud && !(GAME_RACE || GAME_CTS))
  	{
 		if(weapon_damage)
  			weapon_stats = floor(100 * weapon_hit / weapon_damage);
@@ -2258,6 +2258,15 @@
 		return;
 	}
 
+	else if(GAME_RACE || GAME_CTS)
+	{
+		pos_y += 40;
+		if(mod(time, 1) >= 0.4)
+			drawstringcenter(pos, "Stats are not tracked in Race/CTS", sbar_fontsize, '1 1 0', sbar_alpha_fg, DRAWFLAG_NORMAL);
+
+		return;
+	}
+
 	float top_border_hitscan = SCOREBOARD_OFFSET + 55;  // position where the hitscan row starts: pixels down the screen
 	Sbar_DrawAccuracyStats_Description_Hitscan('1 0 0' * col_margin + '0 1 0' * top_border_hitscan);
 



More information about the nexuiz-commits mailing list