mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 05:00:46 +00:00
Treat the loss of the mushroom as a weapon-ring-spilling event in Mario-themed ringslinger, based on comments MI made on IRC about how different mariomode ringslinger would be.
This commit is contained in:
parent
5e92ca1a4a
commit
2903180dee
1 changed files with 5 additions and 3 deletions
|
@ -2677,10 +2677,7 @@ static void P_KillPlayer(player_t *player, mobj_t *source, INT32 damage)
|
||||||
|
|
||||||
// Burst weapons and emeralds in Match/CTF only
|
// Burst weapons and emeralds in Match/CTF only
|
||||||
if (source && (gametype == GT_MATCH || gametype == GT_TEAMMATCH || gametype == GT_CTF))
|
if (source && (gametype == GT_MATCH || gametype == GT_TEAMMATCH || gametype == GT_CTF))
|
||||||
{
|
|
||||||
P_PlayerRingBurst(player, player->health - 1);
|
P_PlayerRingBurst(player, player->health - 1);
|
||||||
P_PlayerEmeraldBurst(player, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!mariomode) // Get rid of shield
|
if (!mariomode) // Get rid of shield
|
||||||
{
|
{
|
||||||
|
@ -2818,7 +2815,12 @@ static void P_ShieldDamage(player_t *player, mobj_t *inflictor, mobj_t *source,
|
||||||
P_ForceFeed(player, 40, 10, TICRATE, 40 + min(damage, 100)*2);
|
P_ForceFeed(player, 40, 10, TICRATE, 40 + min(damage, 100)*2);
|
||||||
|
|
||||||
if (mariomode)
|
if (mariomode)
|
||||||
|
{
|
||||||
S_StartSound(player->mo, sfx_mario8);
|
S_StartSound(player->mo, sfx_mario8);
|
||||||
|
// Burst weapons and emeralds in Match/CTF only
|
||||||
|
if (!player->powers[pw_shield] && (gametype == GT_MATCH || gametype == GT_TEAMMATCH || gametype == GT_CTF))
|
||||||
|
P_PlayerRingBurst(player, 0);
|
||||||
|
}
|
||||||
else if (source && (source->type == MT_SPIKE || (source->type == MT_NULL && source->threshold == 43))) // spikes
|
else if (source && (source->type == MT_SPIKE || (source->type == MT_NULL && source->threshold == 43))) // spikes
|
||||||
S_StartSound(player->mo, sfx_spkdth);
|
S_StartSound(player->mo, sfx_spkdth);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue