In another post I posed a selection of AI behaviours for Civilians.
I put together an initial flowchart draft of this for a civilian behavior.
I figure most people can follow a flowchart even if they can't follow code.
I already have in mind about a half-dozen ways to simplify this, keep in mind this is just a first draft.
http://members.toast.net/philroi/ufoai/AI.jpgrelies on determining which of 4 behaviors to perform.
Herd: stick close to other humans, or alternately under dire threat phalanx soldiers
Hysteria: run around aimlessly
Hide: get low and stay out of sight, from phalanx and aliens depending on threats
Hero: On the off-hand chance we decide to arm the humans, under dire threat they just might make a token attempt to fight back. don't think they will do much since i can't see us giving them more then tiny pistols or knives to carry. and if we never arm them it'll straight to hysteria.
[attachment deleted by admin]