]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Lower threshold for invisible alpha checks in bot code
authorMario <mario@smbclan.net>
Mon, 4 Jun 2018 05:05:28 +0000 (15:05 +1000)
committerMario <mario@smbclan.net>
Mon, 4 Jun 2018 05:05:28 +0000 (15:05 +1000)
qcsrc/server/bot/default/aim.qc

index 5d74a8f062e026c1e038b5c7b6fe82bc22e4e527..383ead19431caf409d052165203f23a8da05b26a 100644 (file)
@@ -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))