X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fmutators%2Fevents.qh;h=e7677dfd6d80f851d386a9a694c32cda45acb545;hb=32205c47c046b78ecfad958f855a3786fa18b1e5;hp=24d634ce8213e05759f7afed13f2f0b011be5146;hpb=fdbfb6f9364d8aeae67e108400a6bd1dd37dc0b7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/mutators/events.qh b/qcsrc/client/mutators/events.qh index 24d634ce8..e7677dfd6 100644 --- a/qcsrc/client/mutators/events.qh +++ b/qcsrc/client/mutators/events.qh @@ -2,6 +2,11 @@ #include +// register all possible hooks here + +// to use a hook, first register your mutator using REGISTER_MUTATOR +// then create your function using MUTATOR_HOOKFUNCTION + /** * Called when a client command is parsed * NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; @@ -113,6 +118,12 @@ 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 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) \ @@ -158,19 +169,22 @@ 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 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); + +/** 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); -/** Called when drawing info messages, allows adding new info messages */ -#define EV_HUD_WriteCvars(i, o) \ - /** file */ i(float, MUTATOR_ARGV_0_float) \ - /**/ -MUTATOR_HOOKABLE(HUD_WriteCvars, EV_HUD_WriteCvars); - /** Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired) */ #define EV_DrawViewModel(i, o) \ /** entity id */ i(entity, MUTATOR_ARGV_0_entity) \ @@ -194,3 +208,12 @@ MUTATOR_HOOKABLE(ForcePlayermodels_Skip, EV_ForcePlayermodels_Skip); /** hit origin */ i(vector, MUTATOR_ARGV_2_vector) \ /**/ 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);