]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/race/cl_race.qc
Add a mutator hook to hide the score HUD panel
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / race / cl_race.qc
index cb5e647b27a9383bb353a7f92e6e660d9f963ca8..92d75dc4d6a7eef8ffc34c67585704680bc7adb8 100644 (file)
@@ -152,3 +152,8 @@ MUTATOR_HOOKFUNCTION(cl_race, HUD_Physics_showoptional)
 {
        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
+}