Does anyone know source example source codes and tutorials to start writing an intelligent bot for Open Arena?
-
4\$\begingroup\$ It's good practice with this site to do your own search first, and include what you may have already found. \$\endgroup\$Amplify91– Amplify912012-05-21 16:17:14 +00:00Commented May 21, 2012 at 16:17
-
2\$\begingroup\$ An artificial bot?! \$\endgroup\$Engineer– Engineer2012-06-24 14:19:52 +00:00Commented Jun 24, 2012 at 14:19
2 Answers
Actual tutorials on the specific subject are sparse, but I did find a paper on a specific bot: http://www.scribd.com/doc/20585341/The-Quake-III-Arena-Bot
As well as a list of commands for a quake 3 bot: http://www.quake3world.com/q3guide/bots.html
The basic AI could be very simple, just a Finite State Machine with states for:
- hunting other bots or players
- Fighting target
- running from other bots or players when low on resources
- looking for resources when low and not engaged
Writing the logic for each state, and the entrances and exits to each is where it can go from simple "fire gun at target" to complex "aim at target at rate X while moving to cover at position Y and fire once reticule is within Z of target".