Set fuse for Battle items

This commit is contained in:
James R 2022-12-27 22:57:01 -08:00
parent 71004d4b46
commit 8a92f03f7b
3 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,7 @@ extern "C" {
#endif
#define BATTLE_SPAWN_INTERVAL (4*TICRATE)
#define BATTLE_DESPAWN_TIME (15*TICRATE)
extern struct battleovertime
{

View file

@ -6273,6 +6273,11 @@ mobj_t *K_CreatePaperItem(fixed_t x, fixed_t y, fixed_t z, angle_t angle, SINT8
P_SetTarget(&backdrop->tracer, drop);
backdrop->flags2 |= MF2_LINKDRAW;
if (gametyperules & GTR_BUMPERS)
{
drop->fuse = BATTLE_DESPAWN_TIME;
}
return drop;
}

View file

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