From: Mario Date: Mon, 4 Jun 2018 05:05:28 +0000 (+1000) Subject: Lower threshold for invisible alpha checks in bot code X-Git-Tag: xonotic-v0.8.5~2114 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=79e0524a0c070eee59a169043129e0454902d1da;p=xonotic%2Fxonotic-data.pk3dir.git Lower threshold for invisible alpha checks in bot code --- diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index 5d74a8f06..383ead194 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -143,7 +143,7 @@ bool bot_shouldattack(entity this, entity targ) return false; if(targ.flags & FL_NOTARGET) return false; - if(targ.alpha <= 0.25 && targ.alpha != 0) + if(targ.alpha <= 0.1 && targ.alpha != 0) return false; // invisible via alpha if(MUTATOR_CALLHOOK(BotShouldAttack, this, targ))