Well, I'll admit I don't know about that, I just remember someone suggesting to check if the player was on ground while their Z position was more than the ground position of the player, and I'd assume that central point would also be used for slopes in the exact same kind of way, along with slopes using the box-shaped collision for the Z position of objects.Actually I'm pretty sure in that case floorz is for the point on the hitbox the player would be touching the slope. So that, like, landing on ground code can actually work properly. (being <= floorz is considered onground for normal gravity) -
...Well I knew there was some kind of way to check if an object is on the ground, and there was a flag about it in object's userdata somewhere, so I assumed that was it. As you mention it now, I realize it wasn't a flag I remembered, but a function called P_IsObjectOnGround. My bad, I think.Anyway MFE_ONGROUND is a lie, that has nothing to do with actually being onground or not, it's ALWAYS on except if you happen to be above a solid object. I plan to either kill it or totally rework it at some point in the future.
Anyway MFE_ONGROUND is a lie, that has nothing to do with actually being onground or not, it's ALWAYS on