give friction to brakes
This commit is contained in:
parent
2fb4dd73fc
commit
d4d794ceac
|
@ -5778,8 +5778,8 @@ void K_MoveKartPlayer(player_t *player, boolean onground)
|
||||||
{
|
{
|
||||||
if (player->speed > 0 && cmd->forwardmove == 0 && player->mo->friction == 59392)
|
if (player->speed > 0 && cmd->forwardmove == 0 && player->mo->friction == 59392)
|
||||||
player->mo->friction += 4608;
|
player->mo->friction += 4608;
|
||||||
if (player->speed > 0 && cmd->forwardmove < 0 && player->mo->friction == 59392)
|
if (player->speed > 0 && cmd->forwardmove < 0) // change friction while braking no matter what, otherwise it's not any more effective than just letting go off accel
|
||||||
player->mo->friction += 1608;
|
player->mo->friction -= 2048;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Karma ice physics
|
// Karma ice physics
|
||||||
|
|
Loading…
Reference in a new issue