mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Lower volume of non fully charged wavedash drain
This commit is contained in:
parent
4a2e5d368a
commit
e7b71661db
1 changed files with 7 additions and 1 deletions
|
|
@ -10803,7 +10803,13 @@ static void K_KartDrift(player_t *player, boolean onground)
|
|||
if (!extendedSliptide && K_IsLosingWavedash(player) && player->wavedash > 0)
|
||||
{
|
||||
if (player->wavedash > HIDEWAVEDASHCHARGE && !S_SoundPlaying(player->mo, sfx_waved2))
|
||||
S_StartSoundAtVolume(player->mo, sfx_waved2, 255); // Losing combo time, going to boost
|
||||
S_StartSoundAtVolume(player->mo, sfx_waved2,
|
||||
Easing_InSine(
|
||||
min(FRACUNIT, FRACUNIT * player->wavedash / MIN_WAVEDASH_CHARGE),
|
||||
120,
|
||||
255
|
||||
)
|
||||
); // Losing combo time, going to boost
|
||||
S_StopSoundByID(player->mo, sfx_waved1);
|
||||
S_StopSoundByID(player->mo, sfx_waved4);
|
||||
player->wavedashdelay++;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue