]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/mutators/mutator/hook/cl_hook.qc
Merge branch 'master' into terencehill/welcome_dialog_translatable
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / hook / cl_hook.qc
1 #include "cl_hook.qh"
2
3 #ifdef CSQC
4 REGISTER_MUTATOR(cl_hook, true);
5
6 MUTATOR_HOOKFUNCTION(cl_hook, BuildGameplayTipsString)
7 {
8         if (mut_is_active(MUT_GRAPPLING_HOOK))
9         {
10                 string key = getcommandkey(_("off-hand hook"), "+hook");
11                 M_ARGV(0, string) = strcat(M_ARGV(0, string),
12                         "\n\n", sprintf(_("^3grappling hook^8 is enabled, press ^3%s^8 to use it"), key), "\n");
13         }
14 }
15
16 #endif