From: terencehill Date: Thu, 21 Jun 2018 13:16:45 +0000 (+0200) Subject: Bot AI: allow bots to directly chase other players in flooded floors and if frozen... X-Git-Tag: xonotic-v0.8.5~1923^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c25939493b53d6dd8e010f2aa75f81e80ee83347;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: allow bots to directly chase other players in flooded floors and if frozen underwater too; it fixes bots not being able to revive frozen teammates in flooded floors --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 2bf1fda72..d69da71a5 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1217,8 +1217,11 @@ void navigation_routerating(entity this, entity e, float f, float rangebias) if (IS_PLAYER(e)) { bool rate_wps = false; - if((e.flags & FL_INWATER) || (e.flags & FL_PARTIALGROUND)) + if (e.watertype < CONTENT_WATER || (e.waterlevel > WATERLEVEL_WETFEET && !STAT(FROZEN, e)) + || (e.flags & FL_PARTIALGROUND)) + { rate_wps = true; + } if(!IS_ONGROUND(e)) {