mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'limit-tumble-height' into 'master'
Limit added tumble height Closes #1130 See merge request KartKrew/Kart!2060
This commit is contained in:
commit
abe8963295
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