Apologies for not replying sooner. I just got back from a week long hiking trip and it's really taken it out of me. <img src="smileys/smiley17.gif" border="0" align="middle" />
I actually have a thoroughly commented CAP version of it that I was going to post as a tutorial but I noticed a few bugs just before I posted it that make it a bit too unstable. It would be great if an experienced person could go through it and fix up bits I don't understand, but I guess that's a little demanding.
It should be easy enough to stop them shooting through walls. I didn't implement it, but it should be as simple as checking if the AI has LOS to the wall object. And I kind of just chucked the mouse movement in at the last second, so it's kind of crap. <img src="smileys/smiley1.gif" border="0" align="middle" />