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

Go to the source code of this file.

Macros

#define params(i, o)
 Called when a menu command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; NOTE: return true if you handled the command, return false to continue handling NOTE: THESE HOOKS MUST NEVER EVER CALL tokenize() // example: MUTATOR_HOOKFUNCTION(foo, Menu_ConsoleCommand) { if (MUTATOR_RETURNVALUE) return false; // command was already handled string cmd_name = M_ARGV(0, string); int cmd_argc = M_ARGV(1, int); string cmd_string = M_ARGV(2, string); if (cmd_name == "echocvar" && cmd_argc >= 2) { print(cvar_string(argv(1)), "\n"); return true; } if (cmd_name == "echostring" && cmd_argc >= 2) { print(substring(cmd_string, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)), "\n"); return true; } return false; }.
#define params(i, o)
 Called when a menu command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; NOTE: return true if you handled the command, return false to continue handling NOTE: THESE HOOKS MUST NEVER EVER CALL tokenize() // example: MUTATOR_HOOKFUNCTION(foo, Menu_ConsoleCommand) { if (MUTATOR_RETURNVALUE) return false; // command was already handled string cmd_name = M_ARGV(0, string); int cmd_argc = M_ARGV(1, int); string cmd_string = M_ARGV(2, string); if (cmd_name == "echocvar" && cmd_argc >= 2) { print(cvar_string(argv(1)), "\n"); return true; } if (cmd_name == "echostring" && cmd_argc >= 2) { print(substring(cmd_string, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)), "\n"); return true; } return false; }.

Functions

 MUTATOR_HOOKABLE (ConfigureDialogs, params)
 MUTATOR_HOOKABLE (Menu_ConsoleCommand, params)

Macro Definition Documentation

◆ params [1/2]

#define params ( i,
o )
Value:
i(entity, 0) /* main window entity */ \
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback

Called when a menu command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; NOTE: return true if you handled the command, return false to continue handling NOTE: THESE HOOKS MUST NEVER EVER CALL tokenize() // example: MUTATOR_HOOKFUNCTION(foo, Menu_ConsoleCommand) { if (MUTATOR_RETURNVALUE) return false; // command was already handled string cmd_name = M_ARGV(0, string); int cmd_argc = M_ARGV(1, int); string cmd_string = M_ARGV(2, string); if (cmd_name == "echocvar" && cmd_argc >= 2) { print(cvar_string(argv(1)), "\n"); return true; } if (cmd_name == "echostring" && cmd_argc >= 2) { print(substring(cmd_string, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)), "\n"); return true; } return false; }.

Definition at line 36 of file events.qh.

36#define params(i, o) \
37 i(string, 0) /* command name */ \
38 i(int, 1) /* argc (also, argv() can be used) */ \
39 i(string, 2) /* whole command, use only if you really have to */ \
40 /**/

◆ params [2/2]

#define params ( i,
o )
Value:
i(string, 0) /* command name */ \
i(int, 1) /* argc (also, argv() can be used) */ \
i(string, 2) /* whole command, use only if you really have to */ \

Called when a menu command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false; NOTE: return true if you handled the command, return false to continue handling NOTE: THESE HOOKS MUST NEVER EVER CALL tokenize() // example: MUTATOR_HOOKFUNCTION(foo, Menu_ConsoleCommand) { if (MUTATOR_RETURNVALUE) return false; // command was already handled string cmd_name = M_ARGV(0, string); int cmd_argc = M_ARGV(1, int); string cmd_string = M_ARGV(2, string); if (cmd_name == "echocvar" && cmd_argc >= 2) { print(cvar_string(argv(1)), "\n"); return true; } if (cmd_name == "echostring" && cmd_argc >= 2) { print(substring(cmd_string, argv_start_index(1), argv_end_index(-1) - argv_start_index(1)), "\n"); return true; } return false; }.

Definition at line 36 of file events.qh.

36#define params(i, o) \
37 i(string, 0) /* command name */ \
38 i(int, 1) /* argc (also, argv() can be used) */ \
39 i(string, 2) /* whole command, use only if you really have to */ \
40 /**/

Function Documentation

◆ MUTATOR_HOOKABLE() [1/2]

MUTATOR_HOOKABLE ( ConfigureDialogs ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [2/2]

MUTATOR_HOOKABLE ( Menu_ConsoleCommand ,
params  )

References params.