Desperation spindash unique sound, no longer blows up at 2x speed

This commit is contained in:
AJ Martinez 2023-02-26 19:00:27 -07:00
parent a6d0edc5a0
commit 4d8a1c1d27

View file

@ -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);