Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
cl_hook.qc File Reference
#include "cl_hook.qh"
Include dependency graph for cl_hook.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 MUTATOR_HOOKFUNCTION (cl_hook, BuildGameplayTipsString)
 REGISTER_MUTATOR (cl_hook, true)

Function Documentation

◆ MUTATOR_HOOKFUNCTION()

MUTATOR_HOOKFUNCTION ( cl_hook ,
BuildGameplayTipsString  )

Definition at line 6 of file cl_hook.qc.

7{
8 if (mut_is_active(MUT_GRAPPLING_HOOK))
9 {
10 string key = getcommandkey(_("offhand hook"), "+hook");
11 M_ARGV(0, string) = strcat(M_ARGV(0, string),
12 "\n", sprintf(_("^3grappling hook^8 is enabled, press ^3%s^8 to use it"), key), "\n");
13 }
14}
#define getcommandkey(cmd_name, command)
Definition main.qh:137
#define M_ARGV(x, type)
Definition events.qh:17
strcat(_("^F4Countdown stopped!"), "\n^BG", _("Teams are too unbalanced."))

References getcommandkey, M_ARGV, and strcat().

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( cl_hook ,
true  )