X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fbase.qh;h=b2f9b29fda64b36d1df56e15536b2b3ad45168d2;hb=2bb2db9c0f8016645a23381d7493588d748ecacf;hp=d3d91232cf94c30fdacb9003eddea5167a816da4;hpb=6ec0f2147065145e9310fc5af6e16243ef805a0f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/base.qh b/qcsrc/server/mutators/base.qh index d3d91232c..b2f9b29fd 100644 --- a/qcsrc/server/mutators/base.qh +++ b/qcsrc/server/mutators/base.qh @@ -109,6 +109,11 @@ MUTATOR_HOOKABLE(BuildMutatorsPrettyString); // appends ", Mutator name" to ret_string for display // INPUT, OUTPUT: string ret_string; + +MUTATOR_HOOKABLE(CustomizeWaypoint); + // called every frame + // customizes the waypoint for spectators + // INPUT: self = waypoint, other = player, other.enemy = spectator MUTATOR_HOOKABLE(FilterItem); // checks if the current item may be spawned (self.items and self.weapons may be read and written to, as well as the ammo_ fields) @@ -155,7 +160,7 @@ MUTATOR_HOOKABLE(PlayerDamage_SplitHealthArmor); float damage_save; MUTATOR_HOOKABLE(PlayerDamage_Calculate); - // called to adjust damage and force values which are applied to the player, used for e.g. strength damage/force multiplier or runematch runes + // called to adjust damage and force values which are applied to the player, used for e.g. strength damage/force multiplier // i'm not sure if I should change this around slightly (Naming of the entities, and also how they're done in g_damage). // INPUT: entity frag_attacker; @@ -163,6 +168,7 @@ MUTATOR_HOOKABLE(PlayerDamage_Calculate); float frag_deathtype; // INPUT, OUTPUT: float frag_damage; + float frag_mirrordamage; vector frag_force; MUTATOR_HOOKABLE(PlayerPowerups); @@ -233,6 +239,17 @@ MUTATOR_HOOKABLE(SetWeaponreplace); entity other; // weapon info // IN+OUT string ret_string; + +MUTATOR_HOOKABLE(Item_RespawnCountdown); + // called when an item is about to respawn + // INPUT+OUTPUT: + string item_name; + vector item_color; + +MUTATOR_HOOKABLE(BotShouldAttack); + // called when a bot checks a target to attack + // INPUT + entity checkentity; MUTATOR_HOOKABLE(PortalTeleport); // called whenever a player goes through a portal gun teleport @@ -248,6 +265,10 @@ MUTATOR_HOOKABLE(HelpMePing); // INPUT entity self; // the player who pressed impulse 33 +MUTATOR_HOOKABLE(VehicleSpawn); + // called when a vehicle initializes + // return TRUE to remove the vehicle + MUTATOR_HOOKABLE(VehicleEnter); // called when a player enters a vehicle // allows mutators to set special settings in this event