FYI, it looks like the core cause of the slope bug is the engine setting the ground entity if the player is <= 2 units above the ground on the frame prior to the movement check, kind of the same as trigger bounces and the like. This lines up with how it's possible to reproduce the bug with saved origin / velocity and have it happen or not by subsequently crouching.
Additionally, we can probably adapt this to implement this bunnyhop slope fix if needed.
FYI, it looks like the core cause of the slope bug is the engine setting the ground entity if the player is <= 2 units above the ground on the frame prior to the movement check, kind of the same as trigger bounces and the like. This lines up with how it's possible to reproduce the bug with saved origin / velocity and have it happen or not by subsequently crouching.
Additionally, we can probably adapt this to implement this bunnyhop slope fix if needed.
edit: Also see https://github.com/momentum-mod/game/blob/bugfix_and_qol/mp/src/game/shared/momentum/mom_gamemovement.cpp#L1096