|
What you're looking for is called AI (artificial intelligence).
There are a bunch of info on the net.
During 2000 people were keen on programming complex things using botman's bots sources for Half-Life... it let you experiment a lot of stuff.
It was cool because you were able to think the things as a group, organize bots to go and complete objectives.
All based on FSM (finite state machines) and simple Waypoints on the first versions, later they started to add flags to all the waypoints, that was how bots knew in CS were the bomb was planted for instance.
And also, the time passed and they start putting "weights" on waypoints to mark hot zones, or interested ones (which was just in some cases a counter that was incrementing or decrementing; it affected decisions).
AI is more than an interesting subject in game programming, you will entertain and learn a lot if you read about neuronal networks for instance... and... it pays in the market REALLY WELL.
|