Add fuse to Pogo Spring

15 seconds, flickers for the last second.
This commit is contained in:
James R 2023-02-18 16:09:05 -08:00
parent 69f567d09d
commit 5cce81f4cd
2 changed files with 6 additions and 0 deletions

View file

@ -465,6 +465,11 @@ boolean P_DoSpring(mobj_t *spring, mobj_t *object)
object->momz = 3 * object->momz / 2;
}
if (!spring->fuse)
{
spring->fuse = 15*TICRATE;
}
spring->reactiontime++;
}
}

View file

@ -9632,6 +9632,7 @@ static boolean P_CanFlickerFuse(mobj_t *mobj)
case MT_EGGMANITEM:
case MT_FALLINGROCK:
case MT_FLOATINGITEM:
case MT_POGOSPRING:
if (mobj->fuse <= TICRATE)
{
return true;