From 87706ea7271772bd30ed4279731815075b6ac3ec Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 29 Apr 2018 05:33:46 +1000 Subject: [PATCH] Don't allow bots to target entities with lower than 25% alpha visibility --- qcsrc/server/bot/default/aim.qc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index fde4c0154..5d74a8f06 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -143,6 +143,8 @@ bool bot_shouldattack(entity this, entity targ) return false; if(targ.flags & FL_NOTARGET) return false; + if(targ.alpha <= 0.25 && targ.alpha != 0) + return false; // invisible via alpha if(MUTATOR_CALLHOOK(BotShouldAttack, this, targ)) return false; -- 2.39.2