* Make 100 rings give everyone a oneup in New Coop.

* Make oneup boxes only give everyone a oneup in New Coop.
This commit is contained in:
toasterbabe 2017-05-28 17:07:20 +01:00
parent c508695c5a
commit 965e1f6b45
2 changed files with 35 additions and 12 deletions

View file

@ -3285,6 +3285,11 @@ void A_ExtraLife(mobj_t *actor)
P_PlayLivesJingle(player); P_PlayLivesJingle(player);
} }
else else
{
if (!((netgame || multiplayer) && gametype == GT_COOP))
P_GivePlayerLives(player, 1);
P_PlayLivesJingle(player);
else
{ {
INT32 i; INT32 i;
for (i = 0; i < MAXPLAYERS; i++) for (i = 0; i < MAXPLAYERS; i++)
@ -3302,6 +3307,7 @@ void A_ExtraLife(mobj_t *actor)
P_PlayLivesJingle(&players[i]); P_PlayLivesJingle(&players[i]);
} }
} }
}
} }
// Function: A_BombShield // Function: A_BombShield

View file

@ -933,8 +933,25 @@ void P_GivePlayerRings(player_t *player, INT32 num_rings)
if (gainlives) if (gainlives)
{ {
INT32 i;
if (!((netgame || multiplayer) && gametype == GT_COOP))
P_GivePlayerLives(player, gainlives); P_GivePlayerLives(player, gainlives);
P_PlayLivesJingle(player); P_PlayLivesJingle(player);
else
for (i = 0; i < MAXPLAYERS; i++)
{
if (!playeringame[i])
continue;
if ((netgame || multiplayer) && players[i].spectator) // Ignore spectators
continue;
if (players[i].bot)
continue;
P_GivePlayerLives(&players[i], gainlives);
P_PlayLivesJingle(&players[i]);
}
} }
} }
} }