mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-26 12:01:47 +00:00
K_DoPogoSpring: Don't set Trick state if Player is in pain
This commit is contained in:
parent
e06d961574
commit
2ecfe2f50f
1 changed files with 43 additions and 40 deletions
|
|
@ -6337,6 +6337,8 @@ void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound)
|
||||||
thrust = vertispeed * P_MobjFlip(mo);
|
thrust = vertispeed * P_MobjFlip(mo);
|
||||||
|
|
||||||
if (mo->player)
|
if (mo->player)
|
||||||
|
{
|
||||||
|
if (!P_PlayerInPain(mo->player))
|
||||||
{
|
{
|
||||||
mo->player->trickpanel = 1;
|
mo->player->trickpanel = 1;
|
||||||
mo->player->pflags |= PF_TRICKDELAY;
|
mo->player->pflags |= PF_TRICKDELAY;
|
||||||
|
|
@ -6385,6 +6387,7 @@ void K_DoPogoSpring(mobj_t *mo, fixed_t vertispeed, UINT8 sound)
|
||||||
P_SetMobjState(trickIndicator->tracer, S_TRICKINDICATOR_OVERLAY);
|
P_SetMobjState(trickIndicator->tracer, S_TRICKINDICATOR_OVERLAY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (mo->player->sneakertimer)
|
if (mo->player->sneakertimer)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue