]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/gamemodes/gamemode/race/cl_race.qc
Add a mutator hook to indicate whether the physics HUD panel should be shown when...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / gamemodes / gamemode / race / cl_race.qc
index ee90914a3d7e124dfbfc89037ffe84a043cd9b0e..cb5e647b27a9383bb353a7f92e6e660d9f963ca8 100644 (file)
@@ -145,3 +145,10 @@ void HUD_Mod_Race(vector pos, vector mySize)
                strfree(race_status_name_prev);
        }
 }
+
+REGISTER_MUTATOR(cl_race, true);
+
+MUTATOR_HOOKFUNCTION(cl_race, HUD_Physics_showoptional)
+{
+       return ISGAMETYPE(RACE); // show the optional physics panel
+}