laurirasanen / groundfix

A Sourcemod plugin for preventing various movement bugs related to hitting the ground.
The Unlicense
11 stars 4 forks source link

Checking predicted player velocity to grant great powers of sliding #4

Closed jsza closed 6 years ago

jsza commented 6 years ago

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