Merge branch 's-rank-sound' into 'master'

Podium S Rank sound

See merge request KartKrew/Kart!2024
This commit is contained in:
Oni 2024-03-06 22:18:28 +00:00
commit 1874c8a51e
3 changed files with 8 additions and 0 deletions

View file

@ -378,6 +378,8 @@ void podiumData_s::Tick(void)
case PODIUM_ST_GRADE_APPEAR:
{
S_StartSound(nullptr, sfx_rank);
if (K_CalculateGPGrade(&rank) >= GRADE_S)
S_StartSoundAtVolume(nullptr, sfx_srank, 200);
state = PODIUM_ST_GRADE_VOICE;
delay = TICRATE/2;
break;

View file

@ -1505,6 +1505,9 @@ sfxinfo_t S_sfx[NUMSFX] =
{"cftbl0", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""},
{"cftbl1", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""},
{"cftbl2", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""},
// S-erotonin
{"srank", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""},
// Generic menu SFX
{"tmxatt", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Attention

View file

@ -1581,6 +1581,9 @@ typedef enum
sfx_cftbl0,
sfx_cftbl1,
sfx_cftbl2,
// S-erotonin
sfx_srank,
// Generic menu SFX
sfx_tmxatt,