From 2e0365e399effba8cd24e6433a1f4fec9e1aca8e Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 19 Nov 2022 22:41:30 +0000 Subject: [PATCH] Attenuate fastfall bounce underwater (resolves #329) Probably not worth a branch all by itself, and this branch is already pretty wet --- src/k_kart.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/k_kart.c b/src/k_kart.c index f435ae9e4..6bb2be28e 100644 --- a/src/k_kart.c +++ b/src/k_kart.c @@ -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);