bool have_weapon_stats;
bool Scoreboard_AccuracyStats_WouldDraw(float ypos)
{
- if (ISGAMETYPE(CTS) || ISGAMETYPE(RACE) || ISGAMETYPE(NEXBALL))
+ if (MUTATOR_CALLHOOK(DrawScoreboardAccuracy))
return false;
if (!autocvar_hud_panel_scoreboard_accuracy || warmup_stage || ypos > 0.91 * vid_conheight)
return false;
/** Return true to not draw scoreboard while dead */
MUTATOR_HOOKABLE(DrawDeathScoreboard, EV_NO_ARGS);
+/** Return true to not show accuracy stats in the scoreboard */
+MUTATOR_HOOKABLE(DrawScoreboardAccuracy, EV_NO_ARGS);
+
/** Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message */
#define EV_DrawInfoMessages(i, o) \
/** pos */ i(vector, MUTATOR_ARGV_0_vector) \
return ISGAMETYPE(CTS); // no scoreboard shown while dead
}
+MUTATOR_HOOKFUNCTION(cl_cts, DrawScoreboardAccuracy)
+{
+ return ISGAMETYPE(CTS); // accuracy is not a factor in this gamemode
+}
+
MUTATOR_HOOKFUNCTION(cl_cts, ShowRankings)
{
if(ISGAMETYPE(CTS))
return true;
return false;
}
+
+MUTATOR_HOOKFUNCTION(cl_nb, DrawScoreboardAccuracy)
+{
+ return ISGAMETYPE(NEXBALL); // accuracy is not a factor in this gamemode
+}
return true;
}
}
+
+MUTATOR_HOOKFUNCTION(cl_race, DrawScoreboardAccuracy)
+{
+ return ISGAMETYPE(RACE); // accuracy is not a factor in this gamemode
+}