{
if(!autocvar_hud_panel_physics) return;
if(spectatee_status == -1 && (autocvar_hud_panel_physics == 1 || autocvar_hud_panel_physics == 3)) return;
- if(autocvar_hud_panel_physics == 3 && !(ISGAMETYPE(RACE) || ISGAMETYPE(CTS))) return;
+ if(autocvar_hud_panel_physics == 3 && !MUTATOR_CALLHOOK(HUD_Physics_showoptional)) return;
}
HUD_Panel_LoadCvars();
MUTATOR_HOOKABLE(HUD_Powerups_add, EV_NO_ARGS);
+/** return true to show the physics HUD panel when optional mode is enabled */
+MUTATOR_HOOKABLE(HUD_Physics_showoptional, EV_NO_ARGS);
+
/** Return true to not draw any vortex beam */
#define EV_Particles_VortexBeam(i, o) \
/** beam shot origin */ i(vector, MUTATOR_ARGV_0_vector) \
// generated file; do not modify
#include <common/gamemodes/gamemode/cts/cts.qc>
+#ifdef CSQC
+ #include <common/gamemodes/gamemode/cts/cl_cts.qc>
+#endif
#ifdef SVQC
#include <common/gamemodes/gamemode/cts/sv_cts.qc>
#endif
// generated file; do not modify
#include <common/gamemodes/gamemode/cts/cts.qh>
+#ifdef CSQC
+ #include <common/gamemodes/gamemode/cts/cl_cts.qh>
+#endif
#ifdef SVQC
#include <common/gamemodes/gamemode/cts/sv_cts.qh>
#endif
--- /dev/null
+#include "cl_cts.qh"
+
+REGISTER_MUTATOR(cl_cts, true);
+
+MUTATOR_HOOKFUNCTION(cl_cts, HUD_Physics_showoptional)
+{
+ return ISGAMETYPE(CTS); // show the optional physics panel
+}
--- /dev/null
+#pragma once
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
+}