Podium S Rank sound

This commit is contained in:
AJ Martinez 2024-03-05 18:41:39 -07:00
parent 7864b6e024
commit a14080cb40
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,