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?
Several bot/AI questions
-
- Posts: 4022
- Joined: Sat Mar 12, 2005 6:24 pm
Re: Several bot/AI questions
You are probably looking for BotAIStartFrame() in game/ai_main.c.
Re: Several bot/AI questions
That was it! Thanks!