]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/hook/cl_hook.qc
Display client binds in gameplay tips
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / hook / cl_hook.qc
index b600701a291db668c1549b557d8983880d1e8623..4c8b2621a44b05da3a8c502448464054e5d5547a 100644 (file)
@@ -5,8 +5,9 @@ REGISTER_MUTATOR(cl_hook, true);
 
 MUTATOR_HOOKFUNCTION(cl_hook, BuildGameplayTipsString)
 {
+       string key = getcommandkey(_("off-hand hook"), "+hook");
        M_ARGV(0, string) = strcat(M_ARGV(0, string),
-               "\n\n", _("^3grappling hook^8 is enabled, press 'e' (+hook) to use it"), "\n");
+               "\n\n", sprintf(_("^3grappling hook^8 is enabled, press ^3%s^8 to use it"), key), "\n");
 }
 
 #endif