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
MUTATOR_HOOKFUNCTION(cl_nades, BuildGameplayTipsString)
{
+ string key = getcommandkey(_("drop weapon / throw nade"), "dropweapon");
M_ARGV(0, string) = strcat(M_ARGV(0, string),
- "\n\n", _("^3nades^8 are enabled, press 'g' (dropweapon) to use them"), "\n");
+ "\n\n", sprintf(_("^3nades^8 are enabled, press ^3%s^8 to use them"), key), "\n");
}
bool Projectile_isnade(int p)
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");
}