mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-09 18:31:53 +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
|
#endif
|
||||||
|
|
||||||
#define BATTLE_SPAWN_INTERVAL (4*TICRATE)
|
#define BATTLE_SPAWN_INTERVAL (4*TICRATE)
|
||||||
|
#define BATTLE_DESPAWN_TIME (15*TICRATE)
|
||||||
|
|
||||||
extern struct battleovertime
|
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);
|
P_SetTarget(&backdrop->tracer, drop);
|
||||||
backdrop->flags2 |= MF2_LINKDRAW;
|
backdrop->flags2 |= MF2_LINKDRAW;
|
||||||
|
|
||||||
|
if (gametyperules & GTR_BUMPERS)
|
||||||
|
{
|
||||||
|
drop->fuse = BATTLE_DESPAWN_TIME;
|
||||||
|
}
|
||||||
|
|
||||||
return drop;
|
return drop;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9522,6 +9522,7 @@ static boolean P_CanFlickerFuse(mobj_t *mobj)
|
||||||
case MT_RANDOMITEM:
|
case MT_RANDOMITEM:
|
||||||
case MT_EGGMANITEM:
|
case MT_EGGMANITEM:
|
||||||
case MT_FALLINGROCK:
|
case MT_FALLINGROCK:
|
||||||
|
case MT_FLOATINGITEM:
|
||||||
if (mobj->fuse <= TICRATE)
|
if (mobj->fuse <= TICRATE)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue