mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
Add player z momentum to the clip if going upward
This commit is contained in:
parent
ec07d27170
commit
262c84f6cc
1 changed files with 3 additions and 0 deletions
|
|
@ -1685,6 +1685,9 @@ void K_SpawnDriftBoostClip(player_t *player)
|
||||||
clip->fuse = 105;
|
clip->fuse = 105;
|
||||||
clip->momz = 7 * P_MobjFlip(clip) * clip->scale;
|
clip->momz = 7 * P_MobjFlip(clip) * clip->scale;
|
||||||
|
|
||||||
|
if (player->mo->momz > 0)
|
||||||
|
clip->momz += player->mo->momz;
|
||||||
|
|
||||||
P_InstaThrust(clip, player->mo->angle +
|
P_InstaThrust(clip, player->mo->angle +
|
||||||
K_RandomFlip(P_RandomRange(FRACUNIT/2, FRACUNIT)),
|
K_RandomFlip(P_RandomRange(FRACUNIT/2, FRACUNIT)),
|
||||||
FixedMul(scale, player->speed));
|
FixedMul(scale, player->speed));
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue