Several bot/AI questions

Locked
coffeenet
Posts: 29
Joined: Mon Jan 10, 2011 6:05 am

Several bot/AI questions

Post 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?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Several bot/AI questions

Post by ^misantropia^ »

You are probably looking for BotAIStartFrame() in game/ai_main.c.
coffeenet
Posts: 29
Joined: Mon Jan 10, 2011 6:05 am

Re: Several bot/AI questions

Post by coffeenet »

That was it! Thanks!
Locked