#include "score.qh"
-#include <client/autocvars.qh>
-#include <client/defs.qh>
-#include <client/miscfunctions.qh>
-#include "scoreboard.qh"
+#include <client/draw.qh>
+#include <client/hud/panel/scoreboard.qh>
#include <common/ent_cs.qh>
-#include <common/mapinfo.qh>
#include <common/scores.qh>
// Score (#7)
+void HUD_Score_Export(int fh)
+{
+ // allow saving cvars that aesthetically change the panel into hud skin files
+ HUD_Write_Cvar("hud_panel_score_rankings");
+}
+
void HUD_Score_Rankings(vector pos, vector mySize, entity me)
{
float score;
return;
}
- if (!scoreboard_fade_alpha) // the scoreboard too calls Scoreboard_UpdatePlayerTeams
- Scoreboard_UpdatePlayerTeams();
+ Scoreboard_UpdatePlayerTeams();
if (team_count)
{
// show team scores in the first line
if(!autocvar__hud_configure)
{
if(!autocvar_hud_panel_score) return;
- if(spectatee_status == -1 && (ISGAMETYPE(RACE) || ISGAMETYPE(CTS))) return;
+ if(MUTATOR_CALLHOOK(HUD_Score_show)) return;
}
HUD_Panel_LoadCvars();
pl = NULL;
score = me.(scores(ps_primary));
- timer = TIME_ENCODED_TOSTRING(score);
+ timer = TIME_ENCODED_TOSTRING(score, false);
draw_beginBoldFont();
if (pl && ((!(scores_flags(ps_primary) & SFL_ZERO_IS_WORST)) || score)) {