From 4d8a1c1d27a94faf3f59f0260d0244bb24cccd4f Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sun, 26 Feb 2023 19:00:27 -0700 Subject: [PATCH] Desperation spindash unique sound, no longer blows up at 2x speed --- src/k_kart.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/k_kart.c b/src/k_kart.c index efbe1bc17..e0f1466c7 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -9728,6 +9728,7 @@ static void K_KartSpindash(player_t *player) player->spindash = 0; S_ReducedVFXSound(player->mo, sfx_s23c, player); + S_StopSoundByID(player->mo, sfx_kc38); } @@ -9779,11 +9780,15 @@ static void K_KartSpindash(player_t *player) UINT8 ringdropframes = 2 + (player->kartspeed + player->kartweight); boolean spawnOldEffect = true; - if (player->rings <= 0) // Use the damn spindash - player->spindash++; // I am no longer asking - INT16 chargetime = MAXCHARGETIME - ++player->spindash; + if (player->rings <= 0 && chargetime >= 0) // Desperation spindash + { + player->spindash++; + if (!S_SoundPlaying(player->mo, sfx_kc38)) + S_StartSound(player->mo, sfx_kc38); + } + if (player->spindash >= SPINDASHTHRUSTTIME) { K_KartSpindashDust(player->mo);