]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/default/bot.qc
When bot_vs_human is enabled ignore team assignment in the bot config file
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / default / bot.qc
index 40afed17990b7e93c40e41e194b5893054c54911..1ab7e9737c0529d4c8b714f0e49ea5d222b3b594 100644 (file)
@@ -211,7 +211,10 @@ void bot_setnameandstuff(entity this)
        if(argv(4) != "" && stof(argv(4)) >= 0) bot_pants = argv(4);
        else bot_pants = ftos(floor(random() * 15));
 
-       this.bot_forced_team = stof(argv(5));
+       if (teamplay && autocvar_bot_vs_human && AvailableTeams() == 2)
+               this.bot_forced_team = 0;
+       else
+               this.bot_forced_team = stof(argv(5));
 
        prio = 6;