Merge branch 'limit-tumble-height' into 'master'

Limit added tumble height

Closes #1130

See merge request KartKrew/Kart!2060
This commit is contained in:
Oni 2024-03-09 19:56:09 +00:00
commit abe8963295

View file

@ -4120,6 +4120,7 @@ void K_TumblePlayer(player_t *player, mobj_t *inflictor, mobj_t *source)
{
const fixed_t addHeight = FixedHypot(FixedHypot(inflictor->momx, inflictor->momy) / 2, FixedHypot(player->mo->momx, player->mo->momy) / 2);
player->tumbleHeight += (addHeight / player->mo->scale);
player->tumbleHeight = min(200, player->tumbleHeight);
}
S_StartSound(player->mo, sfx_s3k9b);