mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-17 19:11:30 +00:00
Desperation spindash unique sound, no longer blows up at 2x speed
This commit is contained in:
parent
a6d0edc5a0
commit
4d8a1c1d27
1 changed files with 8 additions and 3 deletions
11
src/k_kart.c
11
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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue