X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fmutators%2Fevents.qh;h=cf858487058de2bbeac734fff836481bae3e4504;hb=797bf448a96c0c13d783c7c919bb2caf6fa16707;hp=6b16371a2cfa739a97325ad4a8f8c69a04c61657;hpb=bf094df0de66898cb15780dbf136bf93b0761857;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/events.qh b/qcsrc/common/mutators/events.qh index 6b16371a2..cf8584870 100644 --- a/qcsrc/common/mutators/events.qh +++ b/qcsrc/common/mutators/events.qh @@ -65,6 +65,7 @@ MUTATOR_HOOKABLE(IsFlying, EV_IsFlying); /**/ i(string, MUTATOR_ARGV_1_string) \ /**/ o(vector, MUTATOR_ARGV_2_vector) \ /**/ o(string, MUTATOR_ARGV_3_string) \ + /**/ o(string, MUTATOR_ARGV_4_string) \ /**/ MUTATOR_HOOKABLE(WP_Format, EV_WP_Format); @@ -96,6 +97,14 @@ MUTATOR_HOOKABLE(PlayerJump, EV_PlayerJump); /**/ MUTATOR_HOOKABLE(PM_Physics, EV_PM_Physics); +/** called when a weapon sound is about to be played, allows custom paths etc. */ +#define EV_WeaponSound(i, o) \ + /** sound */ i(string, MUTATOR_ARGV_0_string) \ + /** output */ i(string, MUTATOR_ARGV_1_string) \ + /**/ o(string, MUTATOR_ARGV_1_string) \ + /**/ +MUTATOR_HOOKABLE(WeaponSound, EV_WeaponSound); + /** called when a weapon model is about to be set, allows custom paths etc. */ #define EV_WeaponModel(i, o) \ /** model */ i(string, MUTATOR_ARGV_0_string) \