mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-27 00:46:19 +00:00
Limit added tumble height
This commit is contained in:
parent
f9b88432eb
commit
e41b6fcd2f
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue