From 1a49edbf24df3ec3c1c5717991c8ab4e947ca1ee Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 17 Oct 2020 21:50:26 -0700 Subject: [PATCH] Make it easier to go up a slope if using a sneaker --- src/p_user.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/p_user.c b/src/p_user.c index 9d268a8f0..3bc6471e6 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1855,6 +1855,11 @@ static void P_3dMovement(player_t *player) totalthrust.x = totalthrust.y = 0; // I forget if this is needed totalthrust.z = FRACUNIT*P_MobjFlip(player->mo)/3; // A bit of extra push-back on slopes + if (player->kartstuff[k_sneakertimer] > 0) + { + totalthrust.z = -(totalthrust.z); + } + // Get the old momentum; this will be needed at the end of the function! -SH oldMagnitude = R_PointToDist2(player->mo->momx - player->cmomx, player->mo->momy - player->cmomy, 0, 0);