From efeee381f8d5c00b84bf2df9a6d917dee531fa83 Mon Sep 17 00:00:00 2001 From: Antonio Martinez Date: Fri, 18 Jul 2025 04:32:01 -0400 Subject: [PATCH] Slightly reduce high strength boosts in G1 race --- src/k_kart.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index 2d9c8cffc..f35071fb2 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -3558,10 +3558,14 @@ static void K_GetKartBoostPower(player_t *player) // Light weights have stronger boost stacking -- aka, better metabolism than heavies XD const fixed_t maxmetabolismincrease = FRACUNIT/2; fixed_t metabolism = FRACUNIT - ((9-player->kartweight) * maxmetabolismincrease / 8); + fixed_t softboostcap = 0; + fixed_t boostcapfactor = 3*FRACUNIT/4; if (gamespeed == KARTSPEED_EASY && gametype != GT_TUTORIAL) + { metabolism *= 2; - + softboostcap = FRACUNIT/2; + } fixed_t boostpower = FRACUNIT; fixed_t speedboost = 0, accelboost = 0, handleboost = 0; @@ -3870,6 +3874,13 @@ static void K_GetKartBoostPower(player_t *player) player->boostpower = boostpower; + // G1 race: Reduce high boosts + if (softboostcap && speedboost > softboostcap) + { + fixed_t leftover = speedboost - softboostcap; + speedboost = softboostcap + FixedMul(leftover, boostcapfactor); + } + // value smoothing if (speedboost > player->speedboost) {