]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mutators/events.qh
Give the DamageInfo hook a couple of useful parameters
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mutators / events.qh
index f6f8441f32215b41e106435dc4f8ac05417fa01d..24d634ce8213e05759f7afed13f2f0b011be5146 100644 (file)
@@ -190,5 +190,7 @@ 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) \
+       /** death type */               i(int, MUTATOR_ARGV_1_int) \
+       /** hit origin */               i(vector, MUTATOR_ARGV_2_vector) \
        /**/
 MUTATOR_HOOKABLE(DamageInfo, EV_DamageInfo);