From: terencehill Date: Wed, 11 Oct 2017 18:02:25 +0000 (+0200) Subject: Bot AI: also leave powerup to teammates closer to it X-Git-Tag: xonotic-v0.8.5~2378^2~45 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5edef2cedae96abc3add54403a45d91aa52bd97e;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: also leave powerup to teammates closer to it --- diff --git a/qcsrc/server/bot/default/havocbot/roles.qc b/qcsrc/server/bot/default/havocbot/roles.qc index de1bb9249..6de84898f 100644 --- a/qcsrc/server/bot/default/havocbot/roles.qc +++ b/qcsrc/server/bot/default/havocbot/roles.qc @@ -54,6 +54,7 @@ bool havocbot_goalrating_item_can_be_left_to_teammate(entity this, entity player if (item.ammo_rockets && player.ammo_rockets <= this.ammo_rockets) {return true;} if (item.ammo_cells && player.ammo_cells <= this.ammo_cells) {return true;} if (item.ammo_plasma && player.ammo_plasma <= this.ammo_plasma) {return true;} + if (item.itemdef.instanceOfPowerup) {return true;} return false; };