
http://www.mediafire.com/file/yqwd453t5 ... Player.pk3
Example map provided.
This tries to fix two issues:
1) player's movement is directly connected to velocity and as such the player will slide passively while not moving.
2) player's hitbox makes the view noticeably jump when walking on steep slopes, thus breaking smooth slope terrain.
Instead, introduced two new issues

1) transition through steep ledges is not smooth anymore.
2) steep ledges are actually broken (see the 40px dropoff on the example map - you can lag while walking on top, or try to run into the wall and your view will be stomped into the floor).
Both are due to the fact that the real hitbox of the player is 2px wide while processing movement. idk, might even fix eventually, still thinking about it. But help is welcome.
The whole code is pretty fucked up. I don't understand how half of it works. 3am programming.