]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/gamemodes/gamemode/cts/cl_cts.qc
3f0c26fde53b8ba52f0cb2dbb5a36275d7a8ee2f
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / cts / cl_cts.qc
1 #include "cl_cts.qh"
2
3 REGISTER_MUTATOR(cl_cts, true);
4
5 MUTATOR_HOOKFUNCTION(cl_cts, HUD_Physics_showoptional)
6 {
7         return ISGAMETYPE(CTS); // show the optional physics panel
8 }
9
10 MUTATOR_HOOKFUNCTION(cl_cts, HUD_Score_show)
11 {
12         return spectatee_status == -1 && ISGAMETYPE(CTS); // hide the score panel while observing
13 }