+
+/** Called when clearing the global parameters for a model */
+MUTATOR_HOOKABLE(ClearModelParams, EV_NO_ARGS);
+
+/** Called when getting the global parameters for a model */
+#define EV_GetModelParams(i, o) \
+ /** entity id */ i(string, checkmodel_input) \
+ /** entity id */ i(string, checkmodel_command) \
+ /**/
+string checkmodel_input, checkmodel_command;
+MUTATOR_HOOKABLE(GetModelParams, EV_GetModelParams);
+
+/** called when a bullet has hit a target */
+#define EV_FireBullet_Hit(i, o) \
+ /**/ i(entity, __self) \
+ /**/ i(entity, bullet_hit) \
+ /**/ i(vector, bullet_startpos) \
+ /**/ i(vector, bullet_endpos) \
+ /**/ i(float, frag_damage) \
+ /**/ o(float, frag_damage) \
+ /**/
+entity bullet_hit;
+//vector bullet_hitloc; // the end pos matches the hit location, apparently
+vector bullet_startpos;
+vector bullet_endpos;
+//float frag_damage;
+MUTATOR_HOOKABLE(FireBullet_Hit, EV_FireBullet_Hit);
+
+#define EV_FixPlayermodel(i, o) \
+ /**/ i(string, ret_string) \
+ /**/ o(string, ret_string) \
+ /**/ i(int, ret_int) \
+ /**/ o(int, ret_int) \
+ /**/
+int ret_int;
+MUTATOR_HOOKABLE(FixPlayermodel, EV_FixPlayermodel);
+
+/** Return error to play frag remaining announcements */
+MUTATOR_HOOKABLE(Scores_CountFragsRemaining, EV_NO_ARGS);
+
+#define EV_GrappleHookThink(i, o) \
+ /**/ i(entity, __self) \
+ /**/ i(int, hook_tarzan) \
+ /**/ o(int, hook_tarzan) \
+ /**/ i(entity, hook_pullentity) \
+ /**/ o(entity, hook_pullentity) \
+ /**/ i(float, hook_velmultiplier) \
+ /**/ o(float, hook_velmultiplier) \
+ /**/
+int hook_tarzan;
+entity hook_pullentity;
+float hook_velmultiplier;
+MUTATOR_HOOKABLE(GrappleHookThink, EV_GrappleHookThink);
+
+#define EV_BuffModel_Customize(i, o) \
+ /**/ i(entity, __self) \
+ /**/ i(entity, buff_player) \
+ /**/
+entity buff_player;
+MUTATOR_HOOKABLE(BuffModel_Customize, EV_BuffModel_Customize);
+
+/** called at when a buff is touched. Called early, can edit buff properties. */
+#define EV_BuffTouch(i, o) \
+ /** item */ i(entity, __self) \
+ /** player */ i(entity, other) \
+ /**/
+MUTATOR_HOOKABLE(BuffTouch, EV_BuffTouch);
+
+#define EV_GetRecords(i, o) \
+ /**/ i(int, record_page) \
+ /**/ i(string, ret_string) \
+ /**/ o(string, ret_string) \
+ /**/
+int record_page;
+MUTATOR_HOOKABLE(GetRecords, EV_GetRecords);
+
+#define EV_Race_FinalCheckpoint(i, o) \
+ /**/ i(entity, race_player) \
+ /**/
+entity race_player;
+MUTATOR_HOOKABLE(Race_FinalCheckpoint, EV_Race_FinalCheckpoint);
+
+/** called when player triggered kill (or is changing teams), return error to not do anything */
+#define EV_ClientKill(i, o) \
+ /** player */ i(entity, __self) \
+ /* kill delay */ i(float, ret_float) \
+ /* kill delay */ o(float, ret_float) \
+ /**/
+MUTATOR_HOOKABLE(ClientKill, EV_ClientKill);
+
+#define EV_FixClientCvars(i, o) \
+ /**/ i(entity, fix_client) \
+ /**/
+entity fix_client;
+MUTATOR_HOOKABLE(FixClientCvars, EV_FixClientCvars);
+
+#define EV_SpectateSet(i, o) \
+ /**/ i(entity, __self) \
+ /**/ i(entity, spec_player) \
+ /**/
+entity spec_player;
+MUTATOR_HOOKABLE(SpectateSet, EV_SpectateSet);
+
+#define EV_SpectateNext(i, o) \
+ /**/ i(entity, __self) \
+ /**/ i(entity, spec_player) \
+ /**/
+MUTATOR_HOOKABLE(SpectateNext, EV_SpectateNext);
+
+#define EV_SpectatePrev(i, o) \
+ /**/ i(entity, __self) \
+ /**/ i(entity, spec_player) \
+ /**/ i(entity, spec_first) \
+ /**/
+entity spec_first;
+MUTATOR_HOOKABLE(SpectatePrev, EV_SpectatePrev);
+
+enum {
+ MUT_SPECPREV_CONTINUE, // return this flag to make the function continue as normal
+ MUT_SPECPREV_RETURN, // return this flag to make the function return (handled entirely by mutator)
+ MUT_SPECPREV_FOUND // return this flag to make the function continue without default functions (handled mostly by mutator)
+};
+
+/** called when player triggered kill (or is changing teams), return error to not do anything */
+#define EV_Bot_FixCount(i, o) \
+ /**/ i(int, bot_activerealplayers) \
+ /**/ o(int, bot_activerealplayers) \
+ /**/ i(int, bot_realplayers) \
+ /**/ o(int, bot_realplayers) \
+ /**/
+int bot_activerealplayers;
+int bot_realplayers;
+MUTATOR_HOOKABLE(Bot_FixCount, EV_Bot_FixCount);
+
+#define EV_ClientCommand_Spectate(i, o) \
+ /**/ i(entity, __self) \
+ /**/
+MUTATOR_HOOKABLE(ClientCommand_Spectate, EV_ClientCommand_Spectate);
+
+enum {
+ MUT_SPECCMD_CONTINUE, // return this flag to make the function continue as normal
+ MUT_SPECCMD_RETURN, // return this flag to make the function return (don't spectate)
+ MUT_SPECCMD_FORCE // return this flag to force the player to spectate, even if they're not a player
+};
+
+#define EV_CheckRules_World(i, o) \
+ /* status */ i(float, ret_float) \
+ /* status */ o(float, ret_float) \
+ /* time limit */ i(float, checkrules_timelimit) \
+ /* frag limit */ i(int, checkrules_fraglimit) \
+ /**/
+float checkrules_timelimit;
+int checkrules_fraglimit;
+MUTATOR_HOOKABLE(CheckRules_World, EV_CheckRules_World);
+
+#define EV_WantWeapon(i, o) \
+ /**/ i(entity, want_weaponinfo) \
+ /**/ i(float, ret_float) \
+ /**/ o(float, ret_float) \
+ /**/ i(bool, want_allguns) \
+ /**/ o(bool, want_allguns) \
+ /**/ i(bool, want_mutatorblocked) \
+ /**/ o(bool, want_mutatorblocked) \
+ /**/
+entity want_weaponinfo;
+bool want_allguns;
+bool want_mutatorblocked;
+MUTATOR_HOOKABLE(WantWeapon, EV_WantWeapon);