From a14080cb400d24f264aa2494e54a294e380c46e2 Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Tue, 5 Mar 2024 18:41:39 -0700 Subject: [PATCH] Podium S Rank sound --- src/k_podium.cpp | 2 ++ src/sounds.c | 3 +++ src/sounds.h | 3 +++ 3 files changed, 8 insertions(+) diff --git a/src/k_podium.cpp b/src/k_podium.cpp index 30e863298..272704a33 100644 --- a/src/k_podium.cpp +++ b/src/k_podium.cpp @@ -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; diff --git a/src/sounds.c b/src/sounds.c index 14ccca9cb..024d27df7 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -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 diff --git a/src/sounds.h b/src/sounds.h index 532c844be..4e576fc34 100644 --- a/src/sounds.h +++ b/src/sounds.h @@ -1581,6 +1581,9 @@ typedef enum sfx_cftbl0, sfx_cftbl1, sfx_cftbl2, + + // S-erotonin + sfx_srank, // Generic menu SFX sfx_tmxatt,