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