]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/mutators/events.qh
Add a mutator hook to shownames to allow hiding it per-player, also don't load accura...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / mutators / events.qh
index e7677dfd6d80f851d386a9a694c32cda45acb545..232a9a4123555b4a0e079c7e08b80883b5ee4eea 100644 (file)
@@ -217,3 +217,11 @@ MUTATOR_HOOKABLE(DrawReticle, EV_NO_ARGS);
        /** rankings title */   o(string, MUTATOR_ARGV_0_string) \
        /**/
 MUTATOR_HOOKABLE(ShowRankings, EV_ShowRankings);
+
+/** Called when drawing a player's nameplate, return true to hide it */
+#define EV_ShowNames_Draw(i, o) \
+       /** entity id */ i(entity, MUTATOR_ARGV_0_entity) \
+       /** alpha */     i(float, MUTATOR_ARGV_1_float) \
+       /***/            o(float, MUTATOR_ARGV_1_float) \
+       /**/
+MUTATOR_HOOKABLE(ShowNames_Draw, EV_ShowNames_Draw);