We need to add support for teamplay.
As far as I understand, this is not difficult to do, since there is already an implementation for NS and similar team games.
Enable the option for valve if the value mp_teamplay is set to 1.
We need to parse the mp_teamlist "Barnie;Zombie;Robo" value and add bots to each team in a balanced manner.
As an example, you can see that a person was able to achieve this, he uses HPB Bot
https://steamcommunity.com/sharedfiles/filedetails/?id=2857601979
If you need help, I can try to delve into the code.