mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +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 (!extendedSliptide && K_IsLosingWavedash(player) && player->wavedash > 0)
|
||||||
{
|
{
|
||||||
if (player->wavedash > HIDEWAVEDASHCHARGE && !S_SoundPlaying(player->mo, sfx_waved2))
|
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_waved1);
|
||||||
S_StopSoundByID(player->mo, sfx_waved4);
|
S_StopSoundByID(player->mo, sfx_waved4);
|
||||||
player->wavedashdelay++;
|
player->wavedashdelay++;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue