mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Respawn Random Items in all modes
This commit is contained in:
parent
1a9841272b
commit
5b415de3fe
1 changed files with 2 additions and 21 deletions
|
|
@ -1144,28 +1144,9 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
|
||||||
{
|
{
|
||||||
target->fuse = 2;
|
target->fuse = 2;
|
||||||
}
|
}
|
||||||
else if (inDuel == false)
|
else
|
||||||
{
|
{
|
||||||
UINT8 i;
|
target->fuse = 2*TICRATE + 2;
|
||||||
|
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
|
||||||
{
|
|
||||||
if (&players[i] == source->player)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playeringame[i] && !players[i].spectator && players[i].lives != 0)
|
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i < MAXPLAYERS)
|
|
||||||
{
|
|
||||||
// Respawn items in multiplayer, don't respawn them when alone
|
|
||||||
target->fuse = 2*TICRATE + 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue