Move Overdrive boost power into standard OD

This commit is contained in:
Antonio Martinez 2025-05-22 10:59:04 -04:00
parent 5f95ad933f
commit c3005b2a6a

View file

@ -3564,7 +3564,7 @@ static void K_GetKartBoostPower(player_t *player)
Easing_InCubic( Easing_InCubic(
player->overdrivepower, player->overdrivepower,
0, 0,
5*FRACUNIT/10 65*FRACUNIT/100
), ),
Easing_InSine( Easing_InSine(
player->overdrivepower, player->overdrivepower,
@ -3640,7 +3640,7 @@ static void K_GetKartBoostPower(player_t *player)
{ {
fixed_t ringboost_base = FRACUNIT/4; fixed_t ringboost_base = FRACUNIT/4;
if (player->overdrive) if (player->overdrive)
ringboost_base += FRACUNIT/2; ringboost_base += FRACUNIT/4;
// This one's a little special: we add extra top speed per tic of ringboost stored up, to allow for Ring Box to really rocket away. // This one's a little special: we add extra top speed per tic of ringboost stored up, to allow for Ring Box to really rocket away.
// (We compensate when decrementing ringboost to avoid runaway exponential scaling hell.) // (We compensate when decrementing ringboost to avoid runaway exponential scaling hell.)
fixed_t rb = FixedDiv(player->ringboost * FRACUNIT, max(FRACUNIT, K_RingDurationBoost(player))); fixed_t rb = FixedDiv(player->ringboost * FRACUNIT, max(FRACUNIT, K_RingDurationBoost(player)));