The monster AI in Doom causes attacking enemies to reverse direction and feint when the direct route to their target is obstructed. This normally adds to the realism and difficulty of combat (the cyberdemon on E2M8: Tower of Babel, for instance, could otherwise be killed through a sniper hole), but not always.
A demon attacking the player inside a passage 64 units wide can be turned back by damaging (pushing) it into a wall. This behaviour can be experimented in Doom 1 E3M1: Hell Keep and is a way to escape at the start of E3M3: Pandemonium, most notably under -fast setting or Nightmare! skill level.
Any mobile monster at all, having repeatedly crashed into a wall or other monsters in its attempts to reach the player, eventually turns around and runs away from the player, sometimes reaching the opposite wall of the room before deciding to re-engage.
The teleportation trap on MAP24: The Chasm exploits the fleeing behavior as a feature, by putting the room's only exit behind the monsters.
Though not related to pursuit AI, but to engine physics, when a cacodemon or pain elemental takes damage, it often drifts backward a considerable distance before regaining its "bearings" (see also Lost soul charging backwards).
- MonsterFlee.WAD (file info) illustrates an extreme instance of this phenomenon; without it, 100% kills would be almost unattainable. The demon in the first room is actually three demons at the same location, one for each difficulty class. As long as the player does not move too far north or south before awakening the demon, he will run eastward (away from the player) as soon as he is aroused.