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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 client 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, CSQC_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 (AnnouncerOption, params)
 MUTATOR_HOOKABLE (ClearModelParams, EV_NO_ARGS)
 Called when clearing the global parameters for a model.
 MUTATOR_HOOKABLE (CSQC_ConsoleCommand, params)
 MUTATOR_HOOKABLE (CustomizeEventchase, params)
 MUTATOR_HOOKABLE (DamageInfo, params)
 MUTATOR_HOOKABLE (DrawCrosshair, EV_NO_ARGS)
 Return true to not draw crosshair.
 MUTATOR_HOOKABLE (DrawDeathScoreboard, EV_NO_ARGS)
 Return true to not draw scoreboard while dead.
 MUTATOR_HOOKABLE (DrawGrapplingHook, params)
 MUTATOR_HOOKABLE (DrawInfoMessages, params)
 MUTATOR_HOOKABLE (DrawReticle, EV_NO_ARGS)
 Return true to not draw zoom reticle.
 MUTATOR_HOOKABLE (DrawScoreboard, EV_NO_ARGS)
 Return true to not draw scoreboard.
 MUTATOR_HOOKABLE (DrawScoreboard_Force, EV_NO_ARGS)
 Return true to force showing of the scoreboard.
 MUTATOR_HOOKABLE (DrawScoreboardAccuracy, EV_NO_ARGS)
 Return true to not show accuracy stats in the scoreboard.
 MUTATOR_HOOKABLE (DrawScoreboardItemStats, EV_NO_ARGS)
 Return true to not show item pickup stats in the scoreboard.
 MUTATOR_HOOKABLE (DrawViewModel, params)
 MUTATOR_HOOKABLE (EditProjectile, params)
 MUTATOR_HOOKABLE (Ent_Init, EV_NO_ARGS)
 MUTATOR_HOOKABLE (Ent_Projectile, params)
 MUTATOR_HOOKABLE (Ent_Update, params)
 MUTATOR_HOOKABLE (ForcePlayercolors_Skip, params)
 MUTATOR_HOOKABLE (ForcePlayermodels_Skip, params)
 MUTATOR_HOOKABLE (GetModelParams, params)
 MUTATOR_HOOKABLE (HUD_Command, params)
 MUTATOR_HOOKABLE (HUD_Contents, EV_NO_ARGS)
 Called when updating the view's liquid contents, return true to disable the standard checks and apply your own.
 MUTATOR_HOOKABLE (HUD_Damage_show, EV_NO_ARGS)
 Return true to hide the damage HUD overlay.
 MUTATOR_HOOKABLE (HUD_Draw_overlay, params)
 MUTATOR_HOOKABLE (HUD_Physics_showoptional, EV_NO_ARGS)
 Return true to show the physics HUD panel when optional mode is enabled.
 MUTATOR_HOOKABLE (HUD_Powerups_add, EV_NO_ARGS)
 MUTATOR_HOOKABLE (HUD_Score_show, EV_NO_ARGS)
 Return true to hide the score HUD panel.
 MUTATOR_HOOKABLE (HUD_StrafeHUD_showoptional, EV_NO_ARGS)
 Return true to show the strafehud when optional mode is enabled.
 MUTATOR_HOOKABLE (Particles_VortexBeam, params)
 MUTATOR_HOOKABLE (PrecacheProjectiles, EV_NO_ARGS)
 Called when projectiles are precached.
 MUTATOR_HOOKABLE (ShowNames_Draw, params)
 MUTATOR_HOOKABLE (ShowRaceTimer, EV_NO_ARGS)
 Return true to display the race timer HUD panel.
 MUTATOR_HOOKABLE (ShowRankings, params)
 MUTATOR_HOOKABLE (Skeleton_CheckBones, params)
 MUTATOR_HOOKABLE (Skeleton_CheckModel, params)
 MUTATOR_HOOKABLE (TagIndex_Apply, params)
 MUTATOR_HOOKABLE (TagIndex_Update, params)
 MUTATOR_HOOKABLE (TeamRadar_Draw, EV_NO_ARGS)
 Return true to force team radar to display entities regardless of their team.
 MUTATOR_HOOKABLE (UpdateCrosshair, EV_NO_ARGS)
 Called when the crosshair is being updated.
 MUTATOR_HOOKABLE (WantEventchase, params)
 MUTATOR_HOOKABLE (Weapon_ImpactEffect, params)

Macro Definition Documentation

◆ params [1/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \
i(float, 1) /* alpha */ \
o(float, 1) \
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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/24]

#define params ( i,
o )
Value:
i(bool, 0) /* deathscoreboard */ \
o(string, 1) /* rankings title */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [3/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \
i(int, 1) /* death type */ \
i(vector, 2) /* hit origin */ \
vector
Definition self.qh:96

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [4/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \
i(bool, 1) /* is local */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [5/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \
i(bool, 1) /* is local */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [6/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [7/24]

#define params ( i,
o )
Value:
i(vector, 0) /* pos */ \
o(vector, 0) \
i(vector, 1) /* mySize */ \
i(int, 2) /* img_curr_group */ \
o(int, 2) \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [8/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \
i(bool, 1) /* is new to client */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [9/24]

#define params ( i,
o )
Value:
i(entity, 0) /* hook */ \
i(string, 1) /* texture */ \
o(string, 1) \
i(vector, 2) /* color */ \
o(vector, 2) \
i(float, 3) /* team */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [10/24]

#define params ( i,
o )
Value:
i(int, 0) /* argc (also, argv() can be used) */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [11/24]

#define params ( i,
o )
Value:
i(entity, 0) /* weapon */ \
i(entity, 1) /* damage entity */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [12/24]

#define params ( i,
o )
Value:
i(vector, 0) /* beam shot origin */ \
i(vector, 1) /* beam end position */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [13/24]

#define params ( i,
o )
Value:
o(vector, 0) \
o(float, 1) \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [14/24]

#define params ( i,
o )
Value:
i(string, 0) /* announcer string */ \
o(string, 0) /* announcer string */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [15/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \
o(vector, 0) /* current_view_origin_override */ \
o(vector, 1) /* view_offset_override */ \
o(float, 2) /* chase_distance_override */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [16/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [17/24]

#define params ( i,
o )
Value:
i(string, 0) /* input */ \
i(string, 1) /* command */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [18/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [19/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [20/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [21/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [22/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [23/24]

#define params ( i,
o )
Value:
i(entity, 0) /* entity id */ \

Called when a client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 [24/24]

#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 client 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, CSQC_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; }.

Called when drawing a player's nameplate, return true to hide it.

Return true to show leaderboard rankings, needs title argument set.

Called when damage info is received on the client, useful for playing explosion effects.

Return true to disable player color forcing.

Return true to disable player model forcing.

Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired).

Called when drawing info messages, allows adding new info messages. Return true to hide the standard join message.

Called when an entity is updated (either by SVQC networking or PVS).

Draw the grapple hook, allows changing hook texture and color.

NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return false;.

Return true to not draw any impact effect.

Return true to not draw any Vortex beam.

Allow customizing 3rd person mode effect.

Called checking if 3rd person mode should be forced on.

Called when getting the global parameters for a model.

Called when setting up bones from the loaded model.

Called when setting up skeleton bones.

Called when setting the attached tags.

Called when updating the attached tags index.

Called when a projectile's properties are being modified.

Called when a projectile is linked with CSQC.

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 /**/

Referenced by MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), MUTATOR_HOOKABLE(), and waypoint_loadall().

Function Documentation

◆ MUTATOR_HOOKABLE() [1/43]

MUTATOR_HOOKABLE ( AnnouncerOption ,
params  )

References AnnouncerOption(), and params.

◆ MUTATOR_HOOKABLE() [2/43]

MUTATOR_HOOKABLE ( ClearModelParams ,
EV_NO_ARGS  )

Called when clearing the global parameters for a model.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [3/43]

MUTATOR_HOOKABLE ( CSQC_ConsoleCommand ,
params  )

References CSQC_ConsoleCommand, and params.

◆ MUTATOR_HOOKABLE() [4/43]

MUTATOR_HOOKABLE ( CustomizeEventchase ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [5/43]

MUTATOR_HOOKABLE ( DamageInfo ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [6/43]

MUTATOR_HOOKABLE ( DrawCrosshair ,
EV_NO_ARGS  )

Return true to not draw crosshair.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [7/43]

MUTATOR_HOOKABLE ( DrawDeathScoreboard ,
EV_NO_ARGS  )

Return true to not draw scoreboard while dead.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [8/43]

MUTATOR_HOOKABLE ( DrawGrapplingHook ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [9/43]

MUTATOR_HOOKABLE ( DrawInfoMessages ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [10/43]

MUTATOR_HOOKABLE ( DrawReticle ,
EV_NO_ARGS  )

Return true to not draw zoom reticle.

References DrawReticle(), and EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [11/43]

MUTATOR_HOOKABLE ( DrawScoreboard ,
EV_NO_ARGS  )

Return true to not draw scoreboard.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [12/43]

MUTATOR_HOOKABLE ( DrawScoreboard_Force ,
EV_NO_ARGS  )

Return true to force showing of the scoreboard.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [13/43]

MUTATOR_HOOKABLE ( DrawScoreboardAccuracy ,
EV_NO_ARGS  )

Return true to not show accuracy stats in the scoreboard.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [14/43]

MUTATOR_HOOKABLE ( DrawScoreboardItemStats ,
EV_NO_ARGS  )

Return true to not show item pickup stats in the scoreboard.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [15/43]

MUTATOR_HOOKABLE ( DrawViewModel ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [16/43]

MUTATOR_HOOKABLE ( EditProjectile ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [17/43]

MUTATOR_HOOKABLE ( Ent_Init ,
EV_NO_ARGS  )

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [18/43]

MUTATOR_HOOKABLE ( Ent_Projectile ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [19/43]

MUTATOR_HOOKABLE ( Ent_Update ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [20/43]

MUTATOR_HOOKABLE ( ForcePlayercolors_Skip ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [21/43]

MUTATOR_HOOKABLE ( ForcePlayermodels_Skip ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [22/43]

MUTATOR_HOOKABLE ( GetModelParams ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [23/43]

MUTATOR_HOOKABLE ( HUD_Command ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [24/43]

MUTATOR_HOOKABLE ( HUD_Contents ,
EV_NO_ARGS  )

Called when updating the view's liquid contents, return true to disable the standard checks and apply your own.

References EV_NO_ARGS, and HUD_Contents().

◆ MUTATOR_HOOKABLE() [25/43]

MUTATOR_HOOKABLE ( HUD_Damage_show ,
EV_NO_ARGS  )

Return true to hide the damage HUD overlay.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [26/43]

MUTATOR_HOOKABLE ( HUD_Draw_overlay ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [27/43]

MUTATOR_HOOKABLE ( HUD_Physics_showoptional ,
EV_NO_ARGS  )

Return true to show the physics HUD panel when optional mode is enabled.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [28/43]

MUTATOR_HOOKABLE ( HUD_Powerups_add ,
EV_NO_ARGS  )

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [29/43]

MUTATOR_HOOKABLE ( HUD_Score_show ,
EV_NO_ARGS  )

Return true to hide the score HUD panel.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [30/43]

MUTATOR_HOOKABLE ( HUD_StrafeHUD_showoptional ,
EV_NO_ARGS  )

Return true to show the strafehud when optional mode is enabled.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [31/43]

MUTATOR_HOOKABLE ( Particles_VortexBeam ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [32/43]

MUTATOR_HOOKABLE ( PrecacheProjectiles ,
EV_NO_ARGS  )

Called when projectiles are precached.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [33/43]

MUTATOR_HOOKABLE ( ShowNames_Draw ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [34/43]

MUTATOR_HOOKABLE ( ShowRaceTimer ,
EV_NO_ARGS  )

Return true to display the race timer HUD panel.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [35/43]

MUTATOR_HOOKABLE ( ShowRankings ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [36/43]

MUTATOR_HOOKABLE ( Skeleton_CheckBones ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [37/43]

MUTATOR_HOOKABLE ( Skeleton_CheckModel ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [38/43]

MUTATOR_HOOKABLE ( TagIndex_Apply ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [39/43]

MUTATOR_HOOKABLE ( TagIndex_Update ,
params  )

References params.

◆ MUTATOR_HOOKABLE() [40/43]

MUTATOR_HOOKABLE ( TeamRadar_Draw ,
EV_NO_ARGS  )

Return true to force team radar to display entities regardless of their team.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [41/43]

MUTATOR_HOOKABLE ( UpdateCrosshair ,
EV_NO_ARGS  )

Called when the crosshair is being updated.

References EV_NO_ARGS.

◆ MUTATOR_HOOKABLE() [42/43]

MUTATOR_HOOKABLE ( WantEventchase ,
params  )

References params, and WantEventchase().

◆ MUTATOR_HOOKABLE() [43/43]

MUTATOR_HOOKABLE ( Weapon_ImpactEffect ,
params  )

References params.