742mph
My work is never done yet
I need a way to check using Lua if an object is teetering on a ledge or sudden drop in sector floor height. I considered using a variant of RedEnchilada's method of checking for blocking walls, but P_TryMove only supports horizontal movement, so it can't be used to check if the space slightly in front of and below an object is free. I also thought about replicating the teetering code used for the player character in p_user.c, but it looks much more complicated than necessary for something so simple. Any suggestions, resident coding geniuses?