mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +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);
|
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 += (addHeight / player->mo->scale);
|
||||||
|
player->tumbleHeight = min(200, player->tumbleHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
S_StartSound(player->mo, sfx_s3k9b);
|
S_StartSound(player->mo, sfx_s3k9b);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue