Finally got bots to capture the flag in Opposing Force CTF: turns out my code was all fine but the map I was testing on (op4ctf_hairball) has the slippery ice in the middle and the slipperyness doesn't get reset once you get off the ice (see
https://github.com/ValveSoftware/halflife/issues/1542). This meant that even though the bots could navigate to the flag they would almost always slip off the thin pathways.
You can see some screenshots at
https://github.com/tschumann/sandbot...nshots/22-7-17
edit: still not ready to ship yet - once bots have captured a flag and get it back to their own base they don't realise they no longer have the flag.