X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fevents.qh;h=107a82030c1f99d76d2aa1140d207c3798a0e150;hb=696e813e264ec0a097c3b3921f36e7a3f7aacd27;hp=75fc8d31e1508a7037037c1db71e1b7db1c77e8a;hpb=eac60648c4017e495060dd3ba9e50ac4bad5000a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/events.qh b/qcsrc/common/mutators/events.qh index 75fc8d31e..107a82030 100644 --- a/qcsrc/common/mutators/events.qh +++ b/qcsrc/common/mutators/events.qh @@ -1,5 +1,4 @@ -#ifndef COMMON_MUTATORS_EVENTS_H -#define COMMON_MUTATORS_EVENTS_H +#pragma once #define EV_NO_ARGS(i, o) @@ -75,6 +74,7 @@ MUTATOR_HOOKABLE(WP_Format, EV_WP_Format); */ #define EV_PlayerPhysics(i, o) \ /** player */ i(entity, MUTATOR_ARGV_0_entity) \ + /** ticrate*/ i(float, MUTATOR_ARGV_1_float) \ /**/ MUTATOR_HOOKABLE(PlayerPhysics, EV_PlayerPhysics); @@ -92,9 +92,18 @@ MUTATOR_HOOKABLE(PlayerJump, EV_PlayerJump); #define EV_PM_Physics(i, o) \ /** player */ i(entity, MUTATOR_ARGV_0_entity) \ /** maxspeed_mod */ i(float, MUTATOR_ARGV_1_float) \ + /** tick rate */ i(float, MUTATOR_ARGV_2_float) \ /**/ 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) \ @@ -102,5 +111,3 @@ MUTATOR_HOOKABLE(PM_Physics, EV_PM_Physics); /**/ o(string, MUTATOR_ARGV_1_string) \ /**/ MUTATOR_HOOKABLE(WeaponModel, EV_WeaponModel); - -#endif