how would you do this w/ utility based AI + influence maps ?
the desired behavior:
for some reason, i must flee - i'm half dead and its time to retreat, i'm taking missile fire from an unknown origin, or maybe there's just a really tough badguy nearby i shouldn't mess with.
but the badguys have me cornered by terrain.
so instead i should turn and attack the badguys who have me cornered.
right now i'm using rule based systems, but it could all be done with a utility system and influence maps. but offhand, i'm not sure how this behavior would be handled.
influence maps would almost / never let you get cornered in the first place?