3 #include <common/mutators/base.qh>
5 REGISTER_MUTATOR(cl_cts, true);
7 MUTATOR_HOOKFUNCTION(cl_cts, HUD_Physics_showoptional)
9 return ISGAMETYPE(CTS); // show the optional physics panel
12 MUTATOR_HOOKFUNCTION(cl_cts, HUD_StrafeHUD_showoptional)
14 return ISGAMETYPE(CTS); // show the optional strafehud
17 MUTATOR_HOOKFUNCTION(cl_cts, HUD_Score_show)
19 return spectatee_status == -1 && ISGAMETYPE(CTS); // hide the score panel while observing
22 MUTATOR_HOOKFUNCTION(cl_cts, DrawDeathScoreboard)
24 return ISGAMETYPE(CTS); // no scoreboard shown while dead
27 MUTATOR_HOOKFUNCTION(cl_cts, DrawScoreboardAccuracy)
29 return ISGAMETYPE(CTS); // accuracy is not a factor in this gamemode
32 MUTATOR_HOOKFUNCTION(cl_cts, ShowRankings)
36 M_ARGV(0, string) = _("Rankings");
41 MUTATOR_HOOKFUNCTION(cl_cts, ShowNames_Draw)
43 return (ISGAMETYPE(CTS) && M_ARGV(1, float) < ALPHA_MIN_VISIBLE);
46 MUTATOR_HOOKFUNCTION(cl_cts, ShowRaceTimer)
48 return ISGAMETYPE(CTS); // show the race timer panel