mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Make it easier to go up a slope if using a sneaker
This commit is contained in:
parent
fdb77175c5
commit
1a49edbf24
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue