My idea...
The problem with AI in urban combat it that it dose not understand enviroment (its becouse lack of functions which could give you infromation how close it is to the nearest wall etc. - this information could be very, very useful for skilled scripter).
The solution for it can be found - but its quite ... "simple" and a bit "physic".
We have function to create objects. createCamera (or whatever)
We have function to set postion of a object
We have function to get a pice of information of objects current (very importent in my idea) position
And moust importent : we have funtions to set some objects velocity (if im wrong - tell me - but I think yes)
1. We create a object which dose not fall on ground when dropped (zero mass or in other words error in programming
)
2. We set position of it very, very near our soldier.
3. We setVelocity of this object in any wanted direction
4. In short periods of time we check position of our "thrown" object.
5. When this object stops (its position dose not change so fast as some time ago) (I hope it stop... dont know ... It should be ... you know) it means - we have an obsticle ... we have its location... we can do with this information whatever we want...
what do you think?