]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/mutator_midair.qc
Merge branch 'TimePath/cleanup'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / mutator_midair.qc
index 686df9a567ad123316f2200c08e1e9d0c1efc4a9..33ae58f4dd0fefb485d01b03f6bd9208c93af2c8 100644 (file)
@@ -1,11 +1,10 @@
-#include "../_all.qh"
 
 #include "mutator.qh"
 
 .float midair_shieldtime;
 
 MUTATOR_HOOKFUNCTION(midair_PlayerDamage)
-{
+{SELFPARAM();
        if(IS_PLAYER(frag_attacker))
        if(IS_PLAYER(frag_target))
        if(time < self.midair_shieldtime)
@@ -15,7 +14,7 @@ MUTATOR_HOOKFUNCTION(midair_PlayerDamage)
 }
 
 MUTATOR_HOOKFUNCTION(midair_PlayerPowerups)
-{
+{SELFPARAM();
        if(time >= game_starttime)
        if(self.flags & FL_ONGROUND)
        {
@@ -27,7 +26,7 @@ MUTATOR_HOOKFUNCTION(midair_PlayerPowerups)
 }
 
 MUTATOR_HOOKFUNCTION(midair_PlayerSpawn)
-{
+{SELFPARAM();
        if(IS_BOT_CLIENT(self))
                self.bot_moveskill = 0; // disable bunnyhopping