Add sfx_endwrp

Dummy sound to be implemented later for the end of a skipstats warp, but the thok actually sounds kind of fun.
Requires skipstats (and nextmapoverride, for cleanliness) to be unset in P_PostLoadLevel instead of P_LoadLevel.
This commit is contained in:
toaster 2023-06-03 20:55:00 +01:00
parent deca3cb911
commit a682c4a9ad
4 changed files with 9 additions and 3 deletions

View file

@ -146,6 +146,10 @@ void K_TimerInit(void)
P_InstaThrust(player->mo, player->mo->angle, K_GetKartSpeed(player, false, false));
}
}
else if (skipstats != 0)
{
S_StartSound(NULL, sfx_endwrp);
}
if ((gametyperules & (GTR_CATCHER|GTR_CIRCUIT)) == (GTR_CATCHER|GTR_CIRCUIT))
{

View file

@ -8308,9 +8308,6 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
if (precache || dedicated)
R_PrecacheLevel();
nextmapoverride = 0;
skipstats = 0;
if (!demo.playback)
{
mapheaderinfo[gamemap-1]->records.mapvisited |= MV_VISITED;
@ -8387,6 +8384,9 @@ void P_PostLoadLevel(void)
{
K_TimerInit();
nextmapoverride = 0;
skipstats = 0;
P_RunCachedActions();
if (marathonmode & MA_INGAME)

View file

@ -1102,6 +1102,7 @@ sfxinfo_t S_sfx[NUMSFX] =
{"typri2", false, 64, 16, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // SA2 final boss-type typewriting
{"eggspr", false, 64, 16, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Sonic Unleashed Trap Spring
{"achiev", false, 204, 0, -1, NULL, 0, -1, -1, LUMPERROR, "Achievement"},
{"endwrp", false, 64, 0, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // End of a "Tutorial Teleport"
// SRB2Kart - Drop target sounds
{"kdtrg1", false, 64, 16, -1, NULL, 0, -1, -1, LUMPERROR, ""}, // Low energy, SF_X8AWAYSOUND

View file

@ -1169,6 +1169,7 @@ typedef enum
sfx_typri2,
sfx_eggspr,
sfx_achiev,
sfx_endwrp,
// SRB2Kart - Drop target sounds
sfx_kdtrg1,