mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-01 12:43:33 +00:00
Less volatile bumper inflate
This commit is contained in:
parent
b97a94a2a9
commit
a514a36128
2 changed files with 4 additions and 2 deletions
|
|
@ -8783,8 +8783,9 @@ void K_KartPlayerThink(player_t *player, ticcmd_t *cmd)
|
|||
|
||||
if (player->bumperinflate && player->mo->health > 1 && player->mo->hitlag == 0)
|
||||
{
|
||||
P_Thrust(player->mo, K_MomentumAngle(player->mo), BUMPER_THRUST);
|
||||
if (player->tumbleBounces)
|
||||
if (player->speed < K_GetKartSpeed(player, false, false)/2)
|
||||
P_Thrust(player->mo, K_MomentumAngle(player->mo), BUMPER_THRUST);
|
||||
if (player->tumbleBounces && player->tumbleBounces <= TUMBLEBOUNCES)
|
||||
player->mo->momz += BUMPER_FLOAT;
|
||||
player->bumperinflate--;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4181,6 +4181,7 @@ static void P_BouncePlayerMove(mobj_t *mo, TryMoveResult_t *result)
|
|||
if (mo->player && P_PlayerInPain(mo->player) && gametyperules & GTR_BUMPERS && mo->health > 1)
|
||||
{
|
||||
P_DamageMobj(mo, NULL, NULL, 1, DMG_STUMBLE);
|
||||
mo->player->tumbleBounces = TUMBLEBOUNCES;
|
||||
}
|
||||
|
||||
mo->momx = tmxmove;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue