mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +00:00
Sting clarity
This commit is contained in:
parent
01bab662c5
commit
99e4975023
4 changed files with 24 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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, ""},
|
||||
|
|
|
|||
|
|
@ -1596,6 +1596,9 @@ typedef enum
|
|||
sfx_tmxbdn,
|
||||
sfx_tmxbup,
|
||||
|
||||
// SMS
|
||||
sfx_sting0,
|
||||
|
||||
// And LASTLY, Kart's skin sounds.
|
||||
sfx_kwin,
|
||||
sfx_klose,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue