I've noticed that I can directly set the player's mobj state in Lua, and animated states work just fine. For instance,
p.mo.state = S_PLAY_ROLL
correctly sends the player into their rolling animation, even if I remove or change some of the frames in the WAD.
I want to make a character crouch...