Page 1 of 1

Several bot/AI questions

Posted: Mon Jan 10, 2011 10:35 am
by coffeenet
I used to fiddle with Source SDK in the past. And, there used to be a function callled NPCThink() that was responsible for AI operations in the entities (including bots).
1-I would like to find the main function responsible for the AI/bot in the Quake 3 Arena code.

Also, in Source SDK, there was a grand for loop that used to loop through the existing NPCs, and trigger their AI functions. That grand loop was called with every frame.
2- Is there a function responsible for looping (or going through) through the bots and calling on their AI functions?

Re: Several bot/AI questions

Posted: Mon Jan 10, 2011 1:47 pm
by ^misantropia^
You are probably looking for BotAIStartFrame() in game/ai_main.c.

Re: Several bot/AI questions

Posted: Fri Jan 28, 2011 3:46 am
by coffeenet
That was it! Thanks!