]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/gamemodes/gamemode/cts/cl_cts.qc
Add a mutator hook to hide the accuracy panel in the scoreboard
[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 }
14
15 MUTATOR_HOOKFUNCTION(cl_cts, DrawDeathScoreboard)
16 {
17         return ISGAMETYPE(CTS); // no scoreboard shown while dead
18 }
19
20 MUTATOR_HOOKFUNCTION(cl_cts, DrawScoreboardAccuracy)
21 {
22         return ISGAMETYPE(CTS); // accuracy is not a factor in this gamemode
23 }
24
25 MUTATOR_HOOKFUNCTION(cl_cts, ShowRankings)
26 {
27         if(ISGAMETYPE(CTS))
28         {
29                 M_ARGV(0, string) = _("Rankings");
30                 return true;
31         }
32 }