#include <client/draw.qh>
#include <client/hud/panel/centerprint.qh>
+#include <client/hud/panel/scoreboard.qh>
#include <client/mutators/_mod.qh>
#include <common/notifications/all.qh>
#include <common/stats.qh>
string prev_pl2_name;
void Announcer_Duel()
{
+ Scoreboard_UpdatePlayerTeams();
+
entity pl1 = players.sort_next;
entity pl2 = pl1.sort_next;
string pl1_name = (pl1 && pl1.team != NUM_SPECTATOR ? entcs_GetName(pl1.sv_entnum) : "???");
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
//float lastpnum;
void Scoreboard_UpdatePlayerTeams()
{
+ static float update_time;
+ if (time <= update_time)
+ return;
+ update_time = time;
+
entity pl, tmp;
//int num = 0;
for(pl = players.sort_next; pl; pl = pl.sort_next)