Lazy is right, it is best to have the bots array sorted the same way the players are allocated their entities. In my bot I have ENTINDEX (pBotEdict) - 1 == pBot->pEdict (well, I don't use "pBot->pEdict" anymore but you see the idea)
And yeah thanks Rick for fixing my mistake, I meant bot_t *pBot = &bots[i]; rather than &bots[i].pEdict. Go back to school PMB
