Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
events.qh
Go to the documentation of this file.
1#pragma once
2
4
5// Register all possible hooks here
6
7// To use a hook, first register your mutator using REGISTER_MUTATOR,
8// then create your function using MUTATOR_HOOKFUNCTION
9
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 /**/
42#undef params
43
45MUTATOR_HOOKABLE(UpdateCrosshair, EV_NO_ARGS);
46
48#define params(i, o) \
49 i(entity, 0) /* entity id */ \
50 /**/
51MUTATOR_HOOKABLE(Ent_Projectile, params);
52#undef params
53
55#define params(i, o) \
56 i(entity, 0) /* entity id */ \
57 /**/
58MUTATOR_HOOKABLE(EditProjectile, params);
59#undef params
60
62MUTATOR_HOOKABLE(PrecacheProjectiles, EV_NO_ARGS);
63
65#define params(i, o) \
66 i(entity, 0) /* entity id */ \
67 /**/
68MUTATOR_HOOKABLE(TagIndex_Update, params);
69#undef params
70
72#define params(i, o) \
73 i(entity, 0) /* entity id */ \
74 /**/
75MUTATOR_HOOKABLE(TagIndex_Apply, params);
76#undef params
77
79#define params(i, o) \
80 i(entity, 0) /* entity id */ \
81 /**/
82MUTATOR_HOOKABLE(Skeleton_CheckBones, params);
83#undef params
84
86#define params(i, o) \
87 i(entity, 0) /* entity id */ \
88 /**/
89MUTATOR_HOOKABLE(Skeleton_CheckModel, params);
90#undef params
91
93MUTATOR_HOOKABLE(ClearModelParams, EV_NO_ARGS);
94
96#define params(i, o) \
97 i(string, 0) /* input */ \
98 i(string, 1) /* command */ \
99 /**/
100MUTATOR_HOOKABLE(GetModelParams, params);
101#undef params
102
104#define params(i, o) \
105 i(entity, 0) /* entity id */ \
106 /**/
108#undef params
109
111#define params(i, o) \
112 i(entity, 0) /* entity id */ \
113 o(vector, 0) /* current_view_origin_override */ \
114 o(vector, 1) /* view_offset_override */ \
115 o(float, 2) /* chase_distance_override */ \
116 /**/
117MUTATOR_HOOKABLE(CustomizeEventchase, params);
118#undef params
119
120#define params(i, o) \
121 i(string, 0) /* announcer string */ \
122 o(string, 0) /* announcer string */ \
123 /**/
125#undef params
126
128
129#define params(i, o) \
130 o(vector, 0) \
131 o(float, 1) \
132 /**/
133MUTATOR_HOOKABLE(HUD_Draw_overlay, params);
134#undef params
135
137MUTATOR_HOOKABLE(HUD_Damage_show, EV_NO_ARGS);
138
139MUTATOR_HOOKABLE(HUD_Powerups_add, EV_NO_ARGS);
140
142MUTATOR_HOOKABLE(HUD_Physics_showoptional, EV_NO_ARGS);
143
145MUTATOR_HOOKABLE(HUD_StrafeHUD_showoptional, EV_NO_ARGS);
146
149
151#define params(i, o) \
152 i(vector, 0) /* beam shot origin */ \
153 i(vector, 1) /* beam end position */ \
154 /**/
155MUTATOR_HOOKABLE(Particles_VortexBeam, params);
156#undef params
157
159#define params(i, o) \
160 i(entity, 0) /* weapon */ \
161 i(entity, 1) /* damage entity */ \
162 /**/
163MUTATOR_HOOKABLE(Weapon_ImpactEffect, params);
164#undef params
165
167#define params(i, o) \
168 i(int, 0) /* argc (also, argv() can be used) */ \
169 /**/
171#undef params
172
174#define params(i, o) \
175 i(entity, 0) /* hook */ \
176 i(string, 1) /* texture */ \
177 o(string, 1) \
178 i(vector, 2) /* color */ \
179 o(vector, 2) \
180 i(float, 3) /* team */ \
181 /**/
182MUTATOR_HOOKABLE(DrawGrapplingHook, params);
183#undef params
184
186#define params(i, o) \
187 i(entity, 0) /* entity id */ \
188 i(bool, 1) /* is new to client */ \
189 /**/
191#undef params
192
195
198
200MUTATOR_HOOKABLE(DrawScoreboard_Force, EV_NO_ARGS);
201
203MUTATOR_HOOKABLE(DrawDeathScoreboard, EV_NO_ARGS);
204
206MUTATOR_HOOKABLE(DrawScoreboardAccuracy, EV_NO_ARGS);
207
209MUTATOR_HOOKABLE(DrawScoreboardItemStats, EV_NO_ARGS);
210
212#define params(i, o) \
213 i(vector, 0) /* pos */ \
214 o(vector, 0) \
215 i(vector, 1) /* mySize */ \
216 i(int, 2) /* img_curr_group */ \
217 o(int, 2) \
218 /**/
219MUTATOR_HOOKABLE(DrawInfoMessages, params);
220#undef params
221
223#define params(i, o) \
224 i(entity, 0) /* entity id */ \
225 /**/
226MUTATOR_HOOKABLE(DrawViewModel, params);
227#undef params
228
231
233#define params(i, o) \
234 i(entity, 0) /* entity id */ \
235 i(bool, 1) /* is local */ \
236 /**/
237MUTATOR_HOOKABLE(ForcePlayermodels_Skip, params);
238#undef params
239
241#define params(i, o) \
242 i(entity, 0) /* entity id */ \
243 i(bool, 1) /* is local */ \
244 /**/
245MUTATOR_HOOKABLE(ForcePlayercolors_Skip, params);
246#undef params
247
249#define params(i, o) \
250 i(entity, 0) /* entity id */ \
251 i(int, 1) /* death type */ \
252 i(vector, 2) /* hit origin */ \
253 /**/
255#undef params
256
259
261#define params(i, o) \
262 i(bool, 0) /* deathscoreboard */ \
263 o(string, 1) /* rankings title */ \
264 /**/
266#undef params
267
269#define params(i, o) \
270 i(entity, 0) /* entity id */ \
271 i(float, 1) /* alpha */ \
272 o(float, 1) \
273 /**/
274MUTATOR_HOOKABLE(ShowNames_Draw, params);
275#undef params
276
279
string AnnouncerOption()
Definition announcer.qc:14
#define EV_NO_ARGS(i, o)
Definition base.qh:163
#define MUTATOR_HOOKABLE(name, params)
Definition base.qh:168
#define params(i, o)
Called when a client command is parsed NOTE: hooks MUST start with if (MUTATOR_RETURNVALUE) return fa...
Definition events.qh:36
void DrawReticle(entity this)
Definition crosshair.qc:648
#define CSQC_ConsoleCommand
Definition _all.inc:314
void HUD_Contents()
Definition view.qc:1167
int WantEventchase(entity this, bool want_vehiclechase)
Definition view.qc:730