Talk:Monsters stuck in doortracks, walls or hanging off lifts

I'm not sure this description is right, or the article at least needs some deeper discussion. This is the comment on the bug from p_enemy.c in Boom:

/* if the special is not a door that can be opened, return false *      * killough 8/9/98: this is what caused monsters to get stuck in       * doortracks, because it thought that the monster freed itself * by opening a door, even if it was moving towards the doortrack, * and not the door itself. *      * killough 9/9/98: If a line blocking the monster is activated, * return true 90% of the time. If a line blocking the monster is      * not activated, but some other line is, return false 90% of the * time. A bit of randomness is needed to ensure it's free from * lockups, but for most cases, it returns the correct result. *      * Do NOT simply return false 1/4th of the time (causes monsters to       * back out when they shouldn't, and creates secondary stickiness). */

Fraggle 23:57, 7 Jul 2005 (UTC)

I marked this article as a stub because it doesn't address the doortrack bit &mdash; I have seen that bug, and exploited it, many times while playing, but I have no idea how often it occurs or why. Heck, I've even seen barons (COMPBAS2.WAD) and spiderdemons (1SQUARES.WAD) suddenly get stuck on perfectly ordinary walls; what's going on there, do you suppose? Ryan W 05:49, 28 Sep 2005 (UTC)