]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mutators/events.qh
Add a mutator hook to indicate whether rankings should be shown
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mutators / events.qh
index 7ecf2798cccce95e034bd8630cd798e2d4ae500e..e8c374ee40e87e030c49f24623eb913f21aa966f 100644 (file)
@@ -208,3 +208,9 @@ MUTATOR_HOOKABLE(DamageInfo, EV_DamageInfo);
 
 /** Return true to not draw zoom reticle */
 MUTATOR_HOOKABLE(DrawReticle, EV_NO_ARGS);
+
+/** Return true to show leaderboard rankings, needs title argument set */
+#define EV_ShowRankings(i, o) \
+       /** rankings title */   o(string, MUTATOR_ARGV_0_string) \
+       /**/
+MUTATOR_HOOKABLE(ShowRankings, EV_ShowRankings);