_AI


Guard AI
Normal -> Caution(short) -> Alert -> Search -> Caution(long) -> Normal

NORMAL:
  • Guard is either standing still, wandering, or on a fixed patrol.
  • If a guard hears or glimpses you in normal mode he will enter caution mode

CAUTION(short):
  • Guard has increased search skill and resistance to sneak attacks, and may wander around the spot he's cautious about.
  • There is a few-turn "reaction time" delay. If you are not re-hidden or don't stop making noise before this ends then the guard will enter ALERT mode. Otherwise guard will stay in caution for a short period of time (during which any sound or sight will trigger ALERT mode) before returning back to NORMAL mode.
    • "Did I just hear something?" - enter caution(short) quote
    • "...must have been rats" - exit caution(short) quote
ALERT:
  • Guard will now attack you. Penumbra shadow no longer obscures you and guard will hear all sounds in radius. Guard can see one space farther than normal in darkness.
  • If you break LOS of the guard, he will enter Search(chase) or Search(stalk) mode depending on the type of guard.

SEARCH(chase):
  • Guard will run after where he last saw you. Any time he reaches a fork in his path, he will choose the fastest path to run through (ignoring closed doors, floor hatches, etc if an open path is available). If he reaches a dead end, he'll backtrack to the nearest fork, then choose the next-fastest path. This goes on until the Search timer runs out, then guard returns to his guard post and enters CAUTION(long).
SEARCH(stalk):
  • Same as above, but guard will instead choose the path with the soonest dead-end first (paths with similar lengths will be selected at random to prevent total predictability). This means he won't chase you as quickly but he will be more likely to find you if you're hiding in a nook.
  • If a guard notices you in either SEARCH mode he will re-enter ALERT mode.

CAUTION(long):
  • Guard will now return to his NORMAL position (still, wander, or patrol) but will remain in heightened awareness CAUTION mode for a while. The timer on this is considerably longer than the initial caution mode since he knows there's an intruder.
    • "Damn, I lost him!" - enter caution(long) quote
    • "...he's probably long gone by now" - exit caution(long) quote