From fdb77175c56255dc9f014cdeef719b87f5507a38 Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 17 Oct 2020 21:47:04 -0700 Subject: [PATCH 1/2] More buttered slope speed --- src/p_slopes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_slopes.c b/src/p_slopes.c index 24333dbf8..d903afb71 100644 --- a/src/p_slopes.c +++ b/src/p_slopes.c @@ -953,7 +953,7 @@ void P_ButteredSlope(mobj_t *mo) return; // Allow the player to stand still on slopes below a certain steepness } - thrust = FINESINE(mo->standingslope->zangle>>ANGLETOFINESHIFT) * 4 / 5 * (mo->eflags & MFE_VERTICALFLIP ? 1 : -1); + thrust = FINESINE(mo->standingslope->zangle>>ANGLETOFINESHIFT) * 5 / 4 * (mo->eflags & MFE_VERTICALFLIP ? 1 : -1); if (mo->player) { fixed_t mult = FRACUNIT; @@ -963,7 +963,7 @@ void P_ButteredSlope(mobj_t *mo) if (P_MobjFlip(mo) * mo->standingslope->zdelta < 0) angle ^= ANGLE_180; - mult = FRACUNIT + (FRACUNIT + FINECOSINE(angle>>ANGLETOFINESHIFT))*3/2; + mult = FRACUNIT + (FRACUNIT + FINECOSINE(angle>>ANGLETOFINESHIFT))*4/3; } thrust = FixedMul(thrust, mult); From 1a49edbf24df3ec3c1c5717991c8ab4e947ca1ee Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 17 Oct 2020 21:50:26 -0700 Subject: [PATCH 2/2] 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);