From d2062ae680629f899a5d83847a0c91c8c51f08cc Mon Sep 17 00:00:00 2001 From: minenice55 Date: Tue, 27 Jan 2026 02:21:05 -0500 Subject: [PATCH] make ssmt boost ignore offroad, charging ssmt resist offroad --- src/k_kart.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/k_kart.c b/src/k_kart.c index f65770105..96e9201f2 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -1050,6 +1050,11 @@ static void K_UpdateOffroad(player_t *player) offroadstrength *= 2; } } + else if (player->pflags & PF_CHARGINGSSMT) + { + offroad = offroad/2; + offroadstrength = offroadstrength/2; + } player->offroad += offroad; } @@ -2167,7 +2172,9 @@ boolean K_ApplyOffroad(const player_t *player) if (modeattacking != ATTACKING_NONE) sneakertimer = player->sneakertimer > 0; - if (player->hyudorotimer || sneakertimer || (cv_kartbubble_boost_offroadignore.value && player->bubbleboost)) + if (player->hyudorotimer || sneakertimer || + (cv_kartbubble_boost_offroadignore.value && player->bubbleboost) || + player->ssmtboost) return false; return true; }