mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Set fuse for Battle items
This commit is contained in:
parent
71004d4b46
commit
8a92f03f7b
3 changed files with 7 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#define BATTLE_SPAWN_INTERVAL (4*TICRATE)
|
||||
#define BATTLE_DESPAWN_TIME (15*TICRATE)
|
||||
|
||||
extern struct battleovertime
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue