Give it some arguments
authorMario <mario@smbclan.net>
Wed, 14 Dec 2016 20:29:39 +0000 (06:29 +1000)
committerMario <mario@smbclan.net>
Wed, 14 Dec 2016 20:29:39 +0000 (06:29 +1000)
qcsrc/client/hud/panel/infomessages.qc
qcsrc/client/mutators/events.qh

index ad2886d..2d6c952 100644 (file)
@@ -114,7 +114,7 @@ void HUD_InfoMessages()
                                InfoMessage(s);
                        }
 
-                       MUTATOR_CALLHOOK(DrawInfoMessages);
+                       MUTATOR_CALLHOOK(DrawInfoMessages, pos, mySize);
 
                        if(!warmup_stage && gametype == MAPINFO_TYPE_LMS)
                        {
index 12f04fd..edd1781 100644 (file)
@@ -159,4 +159,8 @@ MUTATOR_HOOKABLE(DrawCrosshair, EV_NO_ARGS);
 MUTATOR_HOOKABLE(DrawScoreboard, EV_NO_ARGS);
 
 /** Called when drawing info messages, allows adding new info messages */
-MUTATOR_HOOKABLE(DrawInfoMessages, EV_NO_ARGS);
+#define EV_DrawInfoMessages(i, o) \
+       /** pos */                          i(vector, MUTATOR_ARGV_0_vector) \
+       /** mySize */                   i(vector, MUTATOR_ARGV_1_vector) \
+       /**/
+MUTATOR_HOOKABLE(DrawInfoMessages, EV_DrawInfoMessages);