projects
/
xonotic
/
xonotic-data.pk3dir.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/qcsrc/common/gamemodes/gamemode/race/cl_race.qc
b/qcsrc/common/gamemodes/gamemode/race/cl_race.qc
index
ee90914
..
cb5e647
100644
(file)
--- a/
qcsrc/common/gamemodes/gamemode/race/cl_race.qc
+++ b/
qcsrc/common/gamemodes/gamemode/race/cl_race.qc
@@
-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
+}