|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/mutators/base.qh>Go to the source code of this file.
Macros | |
| #define | EV_AnnouncerOption(i, o) |
| #define | EV_CSQC_ConsoleCommand(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); 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 | EV_CustomizeEventchase(i, o) |
| allow customizing 3rd person mode effect | |
| #define | EV_DamageInfo(i, o) |
| Called when damage info is received on the client, useful for playing explosion effects. | |
| #define | EV_DrawGrapplingHook(i, o) |
| Draw the grapple hook, allows changing hook texture and colour. | |
| #define | EV_DrawInfoMessages(i, o) |
| Called when drawing info messages, allows adding new info messages. | |
| #define | EV_DrawViewModel(i, o) |
| Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired) | |
| #define | EV_EditProjectile(i, o) |
| Called when a projectile's properties are being modified. | |
| #define | EV_Ent_Projectile(i, o) |
| Called when a projectile is linked with CSQC. | |
| #define | EV_Ent_Update(i, o) |
| Called when an entity is updated (either by SVQC networking or PVS) | |
| #define | EV_ForcePlayercolors_Skip(i, o) |
| Return true to disable player color forcing. | |
| #define | EV_ForcePlayermodels_Skip(i, o) |
| Return true to disable player model forcing. | |
| #define | EV_GetModelParams(i, o) |
| Called when getting the global parameters for a model. | |
| #define | EV_HUD_Command(i, o) |
| #define | EV_HUD_Draw_overlay(i, o) |
| #define | EV_Particles_VortexBeam(i, o) |
| Return true to not draw any vortex beam. | |
| #define | EV_ShowNames_Draw(i, o) |
| Called when drawing a player's nameplate, return true to hide it. | |
| #define | EV_ShowRankings(i, o) |
| Return true to show leaderboard rankings, needs title argument set. | |
| #define | EV_Skeleton_CheckBones(i, o) |
| Called when setting up skeleton bones. | |
| #define | EV_Skeleton_CheckModel(i, o) |
| Called when setting up bones from the loaded model. | |
| #define | EV_TagIndex_Apply(i, o) |
| Called when setting the attached tags. | |
| #define | EV_TagIndex_Update(i, o) |
| Called when updating the attached tags index. | |
| #define | EV_WantEventchase(i, o) |
| Called checking if 3rd person mode should be forced on. | |
| #define | EV_Weapon_ImpactEffect(i, o) |
| Return true to not draw any impact effect. | |
Functions | |
| MUTATOR_HOOKABLE (AnnouncerOption, EV_AnnouncerOption) | |
| MUTATOR_HOOKABLE (ClearModelParams, EV_NO_ARGS) | |
| Called when clearing the global parameters for a model. | |
| MUTATOR_HOOKABLE (CSQC_ConsoleCommand, EV_CSQC_ConsoleCommand) | |
| MUTATOR_HOOKABLE (CustomizeEventchase, EV_CustomizeEventchase) | |
| MUTATOR_HOOKABLE (DamageInfo, EV_DamageInfo) | |
| 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, EV_DrawGrapplingHook) | |
| MUTATOR_HOOKABLE (DrawInfoMessages, EV_DrawInfoMessages) | |
| 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, EV_DrawViewModel) | |
| MUTATOR_HOOKABLE (EditProjectile, EV_EditProjectile) | |
| MUTATOR_HOOKABLE (Ent_Init, EV_NO_ARGS) | |
| MUTATOR_HOOKABLE (Ent_Projectile, EV_Ent_Projectile) | |
| MUTATOR_HOOKABLE (Ent_Update, EV_Ent_Update) | |
| MUTATOR_HOOKABLE (ForcePlayercolors_Skip, EV_ForcePlayercolors_Skip) | |
| MUTATOR_HOOKABLE (ForcePlayermodels_Skip, EV_ForcePlayermodels_Skip) | |
| MUTATOR_HOOKABLE (GetModelParams, EV_GetModelParams) | |
| MUTATOR_HOOKABLE (HUD_Command, EV_HUD_Command) | |
| 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, EV_HUD_Draw_overlay) | |
| 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, EV_Particles_VortexBeam) | |
| MUTATOR_HOOKABLE (PrecacheProjectiles, EV_NO_ARGS) | |
| MUTATOR_HOOKABLE (ShowNames_Draw, EV_ShowNames_Draw) | |
| MUTATOR_HOOKABLE (ShowRaceTimer, EV_NO_ARGS) | |
| Return true to display the race timer HUD panel. | |
| MUTATOR_HOOKABLE (ShowRankings, EV_ShowRankings) | |
| MUTATOR_HOOKABLE (Skeleton_CheckBones, EV_Skeleton_CheckBones) | |
| MUTATOR_HOOKABLE (Skeleton_CheckModel, EV_Skeleton_CheckModel) | |
| MUTATOR_HOOKABLE (TagIndex_Apply, EV_TagIndex_Apply) | |
| MUTATOR_HOOKABLE (TagIndex_Update, EV_TagIndex_Update) | |
| 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) | |
| MUTATOR_HOOKABLE (WantEventchase, EV_WantEventchase) | |
| MUTATOR_HOOKABLE (Weapon_ImpactEffect, EV_Weapon_ImpactEffect) | |
| #define EV_AnnouncerOption | ( | i, | |
| o ) |
Definition at line 105 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_CSQC_ConsoleCommand | ( | 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); 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 31 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_CustomizeEventchase | ( | i, | |
| o ) |
allow customizing 3rd person mode effect
Definition at line 97 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_DamageInfo | ( | i, | |
| o ) |
Called when damage info is received on the client, useful for playing explosion effects.
Definition at line 224 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_DrawGrapplingHook | ( | i, | |
| o ) |
Draw the grapple hook, allows changing hook texture and colour.
Definition at line 155 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_DrawInfoMessages | ( | i, | |
| o ) |
Called when drawing info messages, allows adding new info messages.
Return true to hide the standard join message
Definition at line 191 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_DrawViewModel | ( | i, | |
| o ) |
Called when the view model is being animated (setorigin is called after the hook, so you only need to modify origin here if desired)
Definition at line 201 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_EditProjectile | ( | i, | |
| o ) |
Called when a projectile's properties are being modified.
Definition at line 48 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Ent_Projectile | ( | i, | |
| o ) |
Called when a projectile is linked with CSQC.
Definition at line 42 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Ent_Update | ( | i, | |
| o ) |
Called when an entity is updated (either by SVQC networking or PVS)
Definition at line 166 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForcePlayercolors_Skip | ( | i, | |
| o ) |
Return true to disable player color forcing.
Definition at line 217 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ForcePlayermodels_Skip | ( | i, | |
| o ) |
Return true to disable player model forcing.
Definition at line 210 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_GetModelParams | ( | i, | |
| o ) |
Called when getting the global parameters for a model.
Definition at line 84 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_HUD_Command | ( | i, | |
| o ) |
Definition at line 149 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_HUD_Draw_overlay | ( | i, | |
| o ) |
Definition at line 113 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Particles_VortexBeam | ( | i, | |
| o ) |
Return true to not draw any vortex beam.
Definition at line 134 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ShowNames_Draw | ( | i, | |
| o ) |
Called when drawing a player's nameplate, return true to hide it.
Definition at line 241 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_ShowRankings | ( | i, | |
| o ) |
Return true to show leaderboard rankings, needs title argument set.
Definition at line 235 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Skeleton_CheckBones | ( | i, | |
| o ) |
Called when setting up skeleton bones.
Definition at line 69 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Skeleton_CheckModel | ( | i, | |
| o ) |
Called when setting up bones from the loaded model.
Definition at line 75 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TagIndex_Apply | ( | i, | |
| o ) |
Called when setting the attached tags.
Definition at line 63 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_TagIndex_Update | ( | i, | |
| o ) |
Called when updating the attached tags index.
Definition at line 57 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_WantEventchase | ( | i, | |
| o ) |
Called checking if 3rd person mode should be forced on.
Definition at line 91 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| #define EV_Weapon_ImpactEffect | ( | i, | |
| o ) |
Return true to not draw any impact effect.
Definition at line 141 of file events.qh.
Referenced by MUTATOR_HOOKABLE().
| MUTATOR_HOOKABLE | ( | AnnouncerOption | , |
| EV_AnnouncerOption | ) |
References AnnouncerOption(), and EV_AnnouncerOption.
| MUTATOR_HOOKABLE | ( | ClearModelParams | , |
| EV_NO_ARGS | ) |
Called when clearing the global parameters for a model.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | CSQC_ConsoleCommand | , |
| EV_CSQC_ConsoleCommand | ) |
References CSQC_ConsoleCommand, and EV_CSQC_ConsoleCommand.
| MUTATOR_HOOKABLE | ( | CustomizeEventchase | , |
| EV_CustomizeEventchase | ) |
References EV_CustomizeEventchase.
| MUTATOR_HOOKABLE | ( | DamageInfo | , |
| EV_DamageInfo | ) |
References EV_DamageInfo.
| MUTATOR_HOOKABLE | ( | DrawCrosshair | , |
| EV_NO_ARGS | ) |
Return true to not draw crosshair.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawDeathScoreboard | , |
| EV_NO_ARGS | ) |
Return true to not draw scoreboard while dead.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawGrapplingHook | , |
| EV_DrawGrapplingHook | ) |
References EV_DrawGrapplingHook.
| MUTATOR_HOOKABLE | ( | DrawInfoMessages | , |
| EV_DrawInfoMessages | ) |
References EV_DrawInfoMessages.
| MUTATOR_HOOKABLE | ( | DrawReticle | , |
| EV_NO_ARGS | ) |
Return true to not draw zoom reticle.
References DrawReticle(), and EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawScoreboard | , |
| EV_NO_ARGS | ) |
Return true to not draw scoreboard.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawScoreboard_Force | , |
| EV_NO_ARGS | ) |
Return true to force showing of the scoreboard.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawScoreboardAccuracy | , |
| EV_NO_ARGS | ) |
Return true to not show accuracy stats in the scoreboard.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawScoreboardItemStats | , |
| EV_NO_ARGS | ) |
Return true to not show item pickup stats in the scoreboard.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | DrawViewModel | , |
| EV_DrawViewModel | ) |
References EV_DrawViewModel.
| MUTATOR_HOOKABLE | ( | EditProjectile | , |
| EV_EditProjectile | ) |
References EV_EditProjectile.
| MUTATOR_HOOKABLE | ( | Ent_Init | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | Ent_Projectile | , |
| EV_Ent_Projectile | ) |
References EV_Ent_Projectile.
| MUTATOR_HOOKABLE | ( | Ent_Update | , |
| EV_Ent_Update | ) |
References EV_Ent_Update.
| MUTATOR_HOOKABLE | ( | ForcePlayercolors_Skip | , |
| EV_ForcePlayercolors_Skip | ) |
References EV_ForcePlayercolors_Skip.
| MUTATOR_HOOKABLE | ( | ForcePlayermodels_Skip | , |
| EV_ForcePlayermodels_Skip | ) |
References EV_ForcePlayermodels_Skip.
| MUTATOR_HOOKABLE | ( | GetModelParams | , |
| EV_GetModelParams | ) |
References EV_GetModelParams.
| MUTATOR_HOOKABLE | ( | HUD_Command | , |
| EV_HUD_Command | ) |
References EV_HUD_Command.
| 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 | ( | HUD_Damage_show | , |
| EV_NO_ARGS | ) |
return true to hide the damage HUD overlay
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | HUD_Draw_overlay | , |
| EV_HUD_Draw_overlay | ) |
References EV_HUD_Draw_overlay.
| 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 | ( | HUD_Powerups_add | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | HUD_Score_show | , |
| EV_NO_ARGS | ) |
return true to hide the score HUD panel
References EV_NO_ARGS.
| 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 | ( | Particles_VortexBeam | , |
| EV_Particles_VortexBeam | ) |
References EV_Particles_VortexBeam.
| MUTATOR_HOOKABLE | ( | PrecacheProjectiles | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | ShowNames_Draw | , |
| EV_ShowNames_Draw | ) |
References EV_ShowNames_Draw.
| MUTATOR_HOOKABLE | ( | ShowRaceTimer | , |
| EV_NO_ARGS | ) |
Return true to display the race timer HUD panel.
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | ShowRankings | , |
| EV_ShowRankings | ) |
References EV_ShowRankings.
| MUTATOR_HOOKABLE | ( | Skeleton_CheckBones | , |
| EV_Skeleton_CheckBones | ) |
References EV_Skeleton_CheckBones.
| MUTATOR_HOOKABLE | ( | Skeleton_CheckModel | , |
| EV_Skeleton_CheckModel | ) |
References EV_Skeleton_CheckModel.
| MUTATOR_HOOKABLE | ( | TagIndex_Apply | , |
| EV_TagIndex_Apply | ) |
References EV_TagIndex_Apply.
| MUTATOR_HOOKABLE | ( | TagIndex_Update | , |
| EV_TagIndex_Update | ) |
References EV_TagIndex_Update.
| 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 | ( | UpdateCrosshair | , |
| EV_NO_ARGS | ) |
References EV_NO_ARGS.
| MUTATOR_HOOKABLE | ( | WantEventchase | , |
| EV_WantEventchase | ) |
References EV_WantEventchase, and WantEventchase().
| MUTATOR_HOOKABLE | ( | Weapon_ImpactEffect | , |
| EV_Weapon_ImpactEffect | ) |
References EV_Weapon_ImpactEffect.