From 0b10a0b8f69f1f8b81f962a383ebcf4c5348c0f6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 21 Nov 2010 10:55:11 +0100 Subject: [PATCH] Display an example of rankings in hud_configure mode --- qcsrc/client/hud.qc | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc index 3f22c83f5..dd6b9c829 100644 --- a/qcsrc/client/hud.qc +++ b/qcsrc/client/hud.qc @@ -3617,7 +3617,7 @@ void HUD_Score(void) drawstring_aspect(pos, timer, eX * 0.75 * mySize_x + eY * mySize_y, '1 1 1', panel_fg_alpha, DRAWFLAG_NORMAL); drawfont = hud_font; } else if (!teamplay) { // non-teamgames - if (spectatee_status == -1 || cvar("hud_panel_score_rankings")) + if ((spectatee_status == -1 && !autocvar__hud_configure) || cvar("hud_panel_score_rankings")) { #define SCOREPANEL_MAX_ENTRIES 6 #define SCOREPANEL_ASPECTRATIO 2 @@ -3629,11 +3629,41 @@ void HUD_Score(void) vector rgb; rgb = '1 1 1'; + float name_size = mySize_x*0.75; + float i, me_printed; + string s; + if (autocvar__hud_configure) + { + score = 10 + SCOREPANEL_MAX_ENTRIES * 3; + for (i=0; i