]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: ignore frozen players too when deciding to leave an item to human players
authorterencehill <piuntn@gmail.com>
Wed, 18 Apr 2018 17:47:02 +0000 (19:47 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 18 Apr 2018 17:47:02 +0000 (19:47 +0200)
qcsrc/server/bot/default/havocbot/roles.qc

index 3909f5900c5f5c899b6545e710acf074ef9d38c3..42106588c34eae28642aaeb57561571597afc1b7 100644 (file)
@@ -72,7 +72,7 @@ bool havocbot_goalrating_item_pickable_check_players(entity this, vector org, en
        float enemy_distance = FLOAT_MAX;
        float dist;
 
-       FOREACH_CLIENT(IS_PLAYER(it) && it != this && !IS_DEAD(it),
+       FOREACH_CLIENT(IS_PLAYER(it) && it != this && !(IS_DEAD(it) || STAT(FROZEN, it)),
        {
                if (it.team == this.team)
                {