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)