742mph
My work is never done yet
Whenever I send the player into a spin on the ground using Lua, they look like they're spinning normally, but they can't roll through narrow crevices. It's as if the game doesn't really recognize that they're spinning and sets their height to what it would be if they were standing/running. Even when I try to force the player's height to what it should be with something like:
the game sets it right back to normal the next tic, often crushing the player while they're in the crevice. I've looked at the code in p_user that handles spinning and spindashing, and even tried mimicking it almost exactly, but to no avail. Does anyone know how to fix this?
Code:
player.mo.height = P_GetPlayerSpinHeight(player)