X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Faim.qc;h=3467e2b395d61c7c1f28357fe0460b0a97011394;hp=cb42aa5c2c4b0b158697b4122a51c27e88543d7d;hb=e0ac5f9f14e169a1e19d0e36b85cab061a74ed93;hpb=f5689f55e2665c871cfabcee9f8534c482e2b79b diff --git a/qcsrc/server/bot/aim.qc b/qcsrc/server/bot/aim.qc index cb42aa5c2..3467e2b39 100644 --- a/qcsrc/server/bot/aim.qc +++ b/qcsrc/server/bot/aim.qc @@ -126,7 +126,7 @@ float bot_shouldattack(entity e) return FALSE; } else if(bot_ignore_bots) - if(clienttype(e) == CLIENTTYPE_BOT) + if(IS_BOT_CLIENT(e)) return FALSE; if (!e.takedamage) @@ -135,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; }