The old version was using compute.wdl because the speed wasn't very big. This has lead to disadvantages: you couldn't detect if a door was open or closed because the algorithm was running only once, at game start.

The code from aum64 works better. If you have trouble using that ai code in a shooter game, don't worry: I plan to improve the code even more and release a new version of my ai code in the near future.