]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/race/cl_race.qc
Clean up, copied from z411/bai-server, fixes and deleted added gamemodes/mutators...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / race / cl_race.qc
index c2346a4f2c84af163e5e38a5f241d5b54e2843db..4311ce777aa813560420fa6cb2bc3fb0df62696f 100644 (file)
@@ -1,5 +1,8 @@
 #include "cl_race.qh"
 
+#include <client/draw.qh>
+#include <common/mutators/base.qh>
+
 // Race/CTS HUD mod icons
 float crecordtime_prev; // last remembered crecordtime
 float crecordtime_change_time; // time when crecordtime last changed
@@ -153,11 +156,21 @@ MUTATOR_HOOKFUNCTION(cl_race, HUD_Physics_showoptional)
        return ISGAMETYPE(RACE); // show the optional physics panel
 }
 
+MUTATOR_HOOKFUNCTION(cl_race, HUD_StrafeHUD_showoptional)
+{
+       return ISGAMETYPE(RACE); // show the optional strafehud
+}
+
 MUTATOR_HOOKFUNCTION(cl_race, HUD_Score_show)
 {
        return spectatee_status == -1 && ISGAMETYPE(RACE); // hide the score panel while observing
 }
 
+MUTATOR_HOOKFUNCTION(cl_race, DrawScoreboardItemStats)
+{
+       return ISGAMETYPE(RACE); // hide the item stats panel
+}
+
 MUTATOR_HOOKFUNCTION(cl_race, ShowRankings)
 {
        if(ISGAMETYPE(RACE))