Attenuate fastfall bounce underwater (resolves #329)

Probably not worth a branch all by itself, and this branch is already pretty wet
This commit is contained in:
toaster 2022-11-19 22:41:30 +00:00
parent f83b14e16e
commit 2e0365e399

View file

@ -10371,6 +10371,9 @@ boolean K_FastFallBounce(player_t *player)
}
}
if (player->mo->eflags & MFE_UNDERWATER)
bounce = (117 * bounce) / 200;
S_StartSound(player->mo, sfx_ffbonc);
player->mo->momz = bounce * P_MobjFlip(player->mo);