Open Raptor007 opened 7 years ago
Current bots fill entities backwards from maxclients
, which can conflict with real players if there are lots of bots and players. Ideally, new bot code would use a range of entities that does not overlap with real players.
AQ2 makes a lot of assumptions about the first block of entities matching up with clients. To avoid having to overhaul loops and other code all over the place, hopefully this small tweak could be done in g_main.c:
game.maxclients = (int)maxclients->value + MAXBOTS;
The bots would begin at entity and client (int)( maxclients->value + 1 )
and work forwards.
Eventually I want to rewrite the bots from scratch to avoid the licensing grey area we're in with the ACE/LTK bots. I think I can make them work significantly better than they currently do.