Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

Rewrite bots from scratch. #31

Open Raptor007 opened 7 years ago

Raptor007 commented 7 years ago

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.

Raptor007 commented 4 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.