Eggbox transfer fixups

This commit is contained in:
AJ Martinez 2024-03-27 14:50:05 -07:00
parent a5e659c8f4
commit e1b35eeb32

View file

@ -9484,6 +9484,20 @@ void K_KartResetPlayerColor(player_t *player)
} }
} }
if (player->eggmanTransferDelay)
{
player->mo->colorized = true;
if (player->eggmanTransferDelay % 2)
{
player->mo->color = SKINCOLOR_BLACK;
}
else
{
player->mo->color = SKINCOLOR_CRIMSON;
}
goto finalise;
}
if (player->ringboost && (leveltime & 1)) // ring boosting if (player->ringboost && (leveltime & 1)) // ring boosting
{ {
player->mo->colorized = true; player->mo->colorized = true;
@ -13801,10 +13815,12 @@ void K_EggmanTransfer(player_t *source, player_t *victim)
{ {
if (victim->eggmanTransferDelay) if (victim->eggmanTransferDelay)
return; return;
if (source->eggmanTransferDelay)
return;
if (victim->eggmanexplode) if (victim->eggmanexplode)
return; return;
K_AddHitLag(victim->mo, 2, true); K_AddHitLag(victim->mo, 5, false);
K_DropItems(victim); K_DropItems(victim);
victim->eggmanexplode = 6*TICRATE; victim->eggmanexplode = 6*TICRATE;
victim->eggmanblame = (source - players); victim->eggmanblame = (source - players);
@ -13813,11 +13829,13 @@ void K_EggmanTransfer(player_t *source, player_t *victim)
if (P_IsDisplayPlayer(victim)) if (P_IsDisplayPlayer(victim))
S_StartSound(NULL, sfx_itrole); S_StartSound(NULL, sfx_itrole);
K_AddHitLag(source->mo, 2, true); K_AddHitLag(source->mo, 5, false);
source->eggmanexplode = 0; source->eggmanexplode = 0;
source->eggmanblame = -1; source->eggmanblame = -1;
K_StopRoulette(&source->itemRoulette); K_StopRoulette(&source->itemRoulette);
source->eggmanTransferDelay = 10; source->eggmanTransferDelay = 10;
victim->eggmanTransferDelay = 10;
S_StopSoundByID(source->mo, sfx_s3k53); S_StopSoundByID(source->mo, sfx_s3k53);
S_StopSoundByID(source->mo, sfx_kc51); S_StopSoundByID(source->mo, sfx_kc51);