]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mutators/events.qh
Add a hook to DamageInfo, to allow mutators and mods to add their own explosion effec...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mutators / events.qh
index b3c0b0dfbfcf484f292292f8554125c7c154b889..f6f8441f32215b41e106435dc4f8ac05417fa01d 100644 (file)
@@ -186,3 +186,9 @@ MUTATOR_HOOKABLE(HUD_Contents, EV_NO_ARGS);
        /** is local */                 i(bool, MUTATOR_ARGV_1_bool) \
        /**/
 MUTATOR_HOOKABLE(ForcePlayermodels_Skip, EV_ForcePlayermodels_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) \
+       /**/
+MUTATOR_HOOKABLE(DamageInfo, EV_DamageInfo);