X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fevents.qh;h=05f567d761c136079415f1decdaf2f0cf87e6557;hb=de98b80015b25011f5ff98a62cf8756f514330f1;hp=82898237c53f38e6a212b62ff4f7089ff348bc5b;hpb=c741e6b3f012aa525f23e1df30d1d933b383fbc5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/events.qh b/qcsrc/common/mutators/events.qh index 82898237c..05f567d76 100644 --- a/qcsrc/common/mutators/events.qh +++ b/qcsrc/common/mutators/events.qh @@ -61,4 +61,21 @@ MUTATOR_HOOKABLE(IsFlying, EV_IsFlying); /**/ MUTATOR_HOOKABLE(WP_Format, EV_WP_Format); +/** + * called before any player physics, may adjust variables for movement, + * is run AFTER bot code and idle checking on the server + */ +MUTATOR_HOOKABLE(PlayerPhysics, EV_NO_ARGS); + +/** called when a player presses the jump key */ +#define EV_PlayerJump(i, o) \ + /**/ i(float, player_multijump) \ + /**/ i(float, player_jumpheight) \ + /**/ o(float, player_multijump) \ + /**/ o(float, player_jumpheight) \ + /**/ +float player_multijump; +float player_jumpheight; +MUTATOR_HOOKABLE(PlayerJump, EV_PlayerJump); + #endif