X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fbase.qh;h=f9a23e5f8d2214f26ce75453b039e172822cc5d4;hb=174b4f831768c0d516b25aee11904337f3e27b90;hp=09e27038987b2f915b425de5bdcfed20bce694a6;hpb=95f11d6f6db015fe421b64f1c769aa0badc41fe5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/base.qh b/qcsrc/server/mutators/base.qh index 09e270389..f9a23e5f8 100644 --- a/qcsrc/server/mutators/base.qh +++ b/qcsrc/server/mutators/base.qh @@ -206,9 +206,51 @@ MUTATOR_HOOKABLE(SetModname); // OUT string modname; // name of the mutator/mod if it warrants showing as such in the server browser -MUTATOR_HOOKABLE(SetDefaultWeaponreplace); +MUTATOR_HOOKABLE(SetWeaponreplace); // IN entity self; // map entity entity other; // weapon info // IN+OUT string ret_string; + +MUTATOR_HOOKABLE(PortalTeleport); + // called whenever a player goes through a portal gun teleport + // allows you to strip a player of an item if they go through the teleporter to help prevent cheating + // INPUT + entity self; + +MUTATOR_HOOKABLE(HelpMePing); + // called whenever a player uses impulse 33 (help me) in cl_impulse.qc + // normally help me ping uses self.waypointsprite_attachedforcarrier, + // but if your mutator uses something different then you can handle it + // in a special manner using this hook + // INPUT + entity self; // the player who pressed impulse 33 + +MUTATOR_HOOKABLE(VehicleEnter); + // called when a player enters a vehicle + // allows mutators to set special settings in this event + // INPUT + entity vh_player; // player + entity vh_vehicle; // vehicle + +MUTATOR_HOOKABLE(VehicleExit); + // called when a player exits a vehicle + // allows mutators to set special settings in this event + // INPUT + entity vh_player; // player + entity vh_vehicle; // vehicle + +MUTATOR_HOOKABLE(AbortSpeedrun); + // called when a speedrun is aborted and the player is teleported back to start position + // INPUT + entity self; // player + +MUTATOR_HOOKABLE(ItemTouch); + // called at when a item is touched. Called early, can edit item properties. + entity self; // item + entity other; // player + +MUTATOR_HOOKABLE(ClientConnect); + // called at when a player connect + entity self; // player