]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/aim.qc
Start of uncrusticracy script, and kill trailing whitespace in all sources.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / aim.qc
index c381893b7870b3a9ce2d39a45518c084c143f996..3467e2b395d61c7c1f28357fe0460b0a97011394 100644 (file)
@@ -111,9 +111,8 @@ float bot_shouldattack(entity e)
                        return FALSE;
        }
 
-       if(g_freezetag)
-               if(e.freezetag_frozen)
-                       return FALSE;
+       if(e.freezetag_frozen)
+               return FALSE;
 
        // If neither player has ball then don't attack unless the ball is on the
        // ground.
@@ -136,11 +135,13 @@ float bot_shouldattack(entity e)
                return FALSE;
        if (e.BUTTON_CHAT)
                return FALSE;
-       if(g_minstagib)
-       if(e.items & IT_STRENGTH)
-               return FALSE;
        if(e.flags & FL_NOTARGET)
                return FALSE;
+
+       checkentity = e;
+       if(MUTATOR_CALLHOOK(BotShouldAttack))
+               return FALSE;
+
        return TRUE;
 }