mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Higher bubble bounce
This commit is contained in:
parent
f3f0ce7351
commit
cfa20179b0
1 changed files with 4 additions and 3 deletions
|
|
@ -10605,19 +10605,20 @@ boolean K_FastFallBounce(player_t *player)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (player->mo->eflags & MFE_UNDERWATER)
|
|
||||||
bounce = (117 * bounce) / 200;
|
|
||||||
|
|
||||||
if (player->curshield == KSHIELD_BUBBLE)
|
if (player->curshield == KSHIELD_BUBBLE)
|
||||||
{
|
{
|
||||||
S_StartSound(player->mo, sfx_s3k44);
|
S_StartSound(player->mo, sfx_s3k44);
|
||||||
P_InstaThrust(player->mo, player->mo->angle, max(player->speed, abs(player->fastfall)));
|
P_InstaThrust(player->mo, player->mo->angle, max(player->speed, abs(player->fastfall)));
|
||||||
|
bounce += 3 * player->mo->scale;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
S_StartSound(player->mo, sfx_ffbonc);
|
S_StartSound(player->mo, sfx_ffbonc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (player->mo->eflags & MFE_UNDERWATER)
|
||||||
|
bounce = (117 * bounce) / 200;
|
||||||
|
|
||||||
player->mo->momz = bounce * P_MobjFlip(player->mo);
|
player->mo->momz = bounce * P_MobjFlip(player->mo);
|
||||||
|
|
||||||
player->fastfall = 0;
|
player->fastfall = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue