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();
/** return true to show the physics HUD panel when optional mode is enabled */
MUTATOR_HOOKABLE(HUD_Physics_showoptional, EV_NO_ARGS);
+/** return true to hide the score HUD panel */
+MUTATOR_HOOKABLE(HUD_Score_show, EV_NO_ARGS);
+
/** Return true to not draw any vortex beam */
#define EV_Particles_VortexBeam(i, o) \
/** beam shot origin */ i(vector, MUTATOR_ARGV_0_vector) \
{
return ISGAMETYPE(CTS); // show the optional physics panel
}
+
+MUTATOR_HOOKFUNCTION(cl_cts, HUD_Score_show)
+{
+ return spectatee_status == -1 && ISGAMETYPE(CTS); // hide the score panel while observing
+}
{
return ISGAMETYPE(RACE); // show the optional physics panel
}
+
+MUTATOR_HOOKFUNCTION(cl_race, HUD_Score_show)
+{
+ return spectatee_status == -1 && ISGAMETYPE(RACE); // hide the score panel while observing
+}