X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmutators%2Fevents.qh;h=6f6f34399f18e19a476771b9b7d41bc0bf237daa;hb=8a98fd57fc6c4a2cb0aea6a73c12ad9fc25e7e1f;hp=0629c2a9f0dd17a7897c73f6ff68dc818748c4ac;hpb=5adc9ca82afe8f5bb4bd1346a0cf9934622818ba;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/mutators/events.qh b/qcsrc/client/mutators/events.qh index 0629c2a9f..6f6f34399 100644 --- a/qcsrc/client/mutators/events.qh +++ b/qcsrc/client/mutators/events.qh @@ -118,6 +118,15 @@ MUTATOR_HOOKABLE(HUD_Draw_overlay, EV_HUD_Draw_overlay); 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 show the strafehud when optional mode is enabled */ +MUTATOR_HOOKABLE(HUD_StrafeHUD_showoptional, EV_NO_ARGS); + +/** return true to hide the score HUD panel */ +MUTATOR_HOOKABLE(HUD_Score_show, 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) \ @@ -163,10 +172,25 @@ MUTATOR_HOOKABLE(DrawCrosshair, EV_NO_ARGS); /** Return true to not draw scoreboard */ MUTATOR_HOOKABLE(DrawScoreboard, EV_NO_ARGS); -/** Called when drawing info messages, allows adding new info messages */ +/** Return true to force showing of the scoreboard */ +MUTATOR_HOOKABLE(DrawScoreboard_Force, EV_NO_ARGS); + +/** Return true to not draw scoreboard while dead */ +MUTATOR_HOOKABLE(DrawDeathScoreboard, EV_NO_ARGS); + +/** Return true to not show accuracy stats in the scoreboard */ +MUTATOR_HOOKABLE(DrawScoreboardAccuracy, EV_NO_ARGS); + +/** Return true to not show item pickup stats in the scoreboard */ +MUTATOR_HOOKABLE(DrawScoreboardItemStats, EV_NO_ARGS); + +/** Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message */ #define EV_DrawInfoMessages(i, o) \ /** pos */ i(vector, MUTATOR_ARGV_0_vector) \ + /***/ o(vector, MUTATOR_ARGV_0_vector) \ /** mySize */ i(vector, MUTATOR_ARGV_1_vector) \ + /** img_curr_group */ i(int, MUTATOR_ARGV_2_int) \ + /***/ o(int, MUTATOR_ARGV_2_int) \ /**/ MUTATOR_HOOKABLE(DrawInfoMessages, EV_DrawInfoMessages); @@ -179,13 +203,20 @@ MUTATOR_HOOKABLE(DrawViewModel, EV_DrawViewModel); /** Called when updating the view's liquid contents, return true to disable the standard checks and apply your own */ MUTATOR_HOOKABLE(HUD_Contents, EV_NO_ARGS); -/** Return true to disable player model/color forcing */ +/** Return true to disable player model forcing */ #define EV_ForcePlayermodels_Skip(i, o) \ /** entity id */ i(entity, MUTATOR_ARGV_0_entity) \ /** is local */ i(bool, MUTATOR_ARGV_1_bool) \ /**/ MUTATOR_HOOKABLE(ForcePlayermodels_Skip, EV_ForcePlayermodels_Skip); +/** Return true to disable player color forcing */ +#define EV_ForcePlayercolors_Skip(i, o) \ + /** entity id */ i(entity, MUTATOR_ARGV_0_entity) \ + /** is local */ i(bool, MUTATOR_ARGV_1_bool) \ + /**/ +MUTATOR_HOOKABLE(ForcePlayercolors_Skip, EV_ForcePlayercolors_Skip); + /** Called when damage info is received on the client, useful for playing explosion effects */ #define EV_DamageInfo(i, o) \ /** entity id */ i(entity, MUTATOR_ARGV_0_entity) \ @@ -196,3 +227,23 @@ MUTATOR_HOOKABLE(DamageInfo, EV_DamageInfo); /** Return true to not draw zoom reticle */ MUTATOR_HOOKABLE(DrawReticle, EV_NO_ARGS); + +/** Return true to show leaderboard rankings, needs title argument set */ +#define EV_ShowRankings(i, o) \ + /** rankings title */ o(string, MUTATOR_ARGV_0_string) \ + /**/ +MUTATOR_HOOKABLE(ShowRankings, EV_ShowRankings); + +/** Called when drawing a player's nameplate, return true to hide it */ +#define EV_ShowNames_Draw(i, o) \ + /** entity id */ i(entity, MUTATOR_ARGV_0_entity) \ + /** alpha */ i(float, MUTATOR_ARGV_1_float) \ + /***/ o(float, MUTATOR_ARGV_1_float) \ + /**/ +MUTATOR_HOOKABLE(ShowNames_Draw, EV_ShowNames_Draw); + +/** Return true to display the race timer HUD panel */ +MUTATOR_HOOKABLE(ShowRaceTimer, EV_NO_ARGS); + +/** Return true to force team radar to display entities regardless of their team */ +MUTATOR_HOOKABLE(TeamRadar_Draw, EV_NO_ARGS);