Sting clarity

This commit is contained in:
AJ Martinez 2024-03-05 15:00:22 -07:00
parent 01bab662c5
commit 99e4975023
4 changed files with 24 additions and 1 deletions

View file

@ -2957,7 +2957,19 @@ static void K_drawRingCounter(boolean gametypeinfoshown)
rn[0] = ((abs(stplyr->hudrings) / 10) % 10);
rn[1] = (abs(stplyr->hudrings) % 10);
if (stplyr->hudrings <= 0 && (leveltime/5 & 1)) // In debt
if (stplyr->hudrings <= 0 && stplyr->ringvisualwarning > 1)
{
colorring = true;
if ((leveltime/2 & 1))
{
ringmap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_CRIMSON, GTC_CACHE);
}
else
{
ringmap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_WHITE, GTC_CACHE);
}
}
else if (stplyr->hudrings <= 0 && (leveltime/5 & 1)) // In debt
{
ringmap = R_GetTranslationColormap(TC_RAINBOW, SKINCOLOR_CRIMSON, GTC_CACHE);
colorring = true;

View file

@ -4819,6 +4819,11 @@ void K_DebtStingPlayer(player_t *player, mobj_t *source)
player->spinouttimer = length;
player->wipeoutslow = min(length-1, wipeoutslowtime+1);
player->ringvisualwarning = TICRATE*2;
if (P_IsDisplayPlayer(player))
S_StartSoundAtVolume(NULL, sfx_sting0, 170);
P_SetPlayerMobjState(player->mo, S_KART_SPINOUT);
}

View file

@ -1520,6 +1520,9 @@ sfxinfo_t S_sfx[NUMSFX] =
{"tmxbdn", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Button down
{"tmxbup", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Button up
// SMS
{"sting0", false, 64, 2, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Ring loss
// SRB2kart - Skin sounds
{"kwin", false, 64, 96, -1, NULL, 0, SKSKWIN, -1, LUMPERROR, ""},
{"klose", false, 64, 96, -1, NULL, 0, SKSKLOSE, -1, LUMPERROR, ""},

View file

@ -1596,6 +1596,9 @@ typedef enum
sfx_tmxbdn,
sfx_tmxbup,
// SMS
sfx_sting0,
// And LASTLY, Kart's skin sounds.
sfx_kwin,
sfx_klose,