]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/offhand_blaster/cl_offhand_blaster.qc
Display client binds in gameplay tips
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / offhand_blaster / cl_offhand_blaster.qc
index 39e6ad8d419c38df03ebb2e1b44d436d4b43e132..ebf44d000db02a4b9b3e61e24abcd6967e0af27b 100644 (file)
@@ -4,6 +4,7 @@ REGISTER_MUTATOR(cl_offhand_blaster, true);
 
 MUTATOR_HOOKFUNCTION(cl_offhand_blaster, BuildGameplayTipsString)
 {
+       string key = getcommandkey(_("off-hand hook"), "+hook");
        M_ARGV(0, string) = strcat(M_ARGV(0, string),
-               "\n\n", _("^3offhand blaster^8 is enabled, press 'e' (+hook) to use it"), "\n");
+               "\n\n", sprintf(_("^3offhand blaster^8 is enabled, press ^3%s^8 to use it"), key), "\n");
 }