mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-18 22:12:31 +00:00
add sprung flag to steam
# Conflicts: # src/p_map.c
This commit is contained in:
parent
19a4ef23c2
commit
3c83508646
1 changed files with 6 additions and 4 deletions
10
src/p_map.c
10
src/p_map.c
|
|
@ -493,12 +493,11 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
|
||||||
break;
|
break;
|
||||||
if (spring->state != &states[S_STEAM1]) // Only when it bursts
|
if (spring->state != &states[S_STEAM1]) // Only when it bursts
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (spring->spawnpoint && spring->spawnpoint->options & MTF_OBJECTSPECIAL)
|
|
||||||
{
|
|
||||||
if (object->eflags & MFE_SPRUNG)
|
if (object->eflags & MFE_SPRUNG)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (spring->spawnpoint && spring->spawnpoint->options & MTF_OBJECTSPECIAL)
|
||||||
|
{
|
||||||
if (object->player)
|
if (object->player)
|
||||||
{
|
{
|
||||||
object->player->trickpanel = 1;
|
object->player->trickpanel = 1;
|
||||||
|
|
@ -506,10 +505,13 @@ static void P_DoFanAndGasJet(mobj_t *spring, mobj_t *object)
|
||||||
}
|
}
|
||||||
|
|
||||||
K_DoPogoSpring(object, 32<<FRACBITS, 0);
|
K_DoPogoSpring(object, 32<<FRACBITS, 0);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
object->momz = flipval*FixedMul(speed, FixedSqrt(FixedMul(spring->scale, object->scale))); // scale the speed with both objects' scales, just like with springs!
|
object->momz = flipval*FixedMul(speed, FixedSqrt(FixedMul(spring->scale, object->scale))); // scale the speed with both objects' scales, just like with springs!
|
||||||
|
}
|
||||||
|
|
||||||
|
object->eflags |= MFE_SPRUNG;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue