From 8c21ca585eb7fd9c614f81440c962d41234b4cf8 Mon Sep 17 00:00:00 2001 From: sigsegv Date: Fri, 2 Oct 2015 19:17:33 -0700 Subject: [PATCH] Enable precache for overrides in scripts/mvm_level_sounds.txt Based on commented-out lines in TF2's game_sounds_manifest.txt, it's clear that mvm_level_sounds.txt was originally intended to be precached; when the file was changed to be loaded as a level-specific sound script override, the precache flag was apparently forgotten. This patch fixes several sounds which have never worked in MvM mode: - SV_StartSound: player/spy_shield_break.wav not precached (0) - SV_StartSound: player/medic_charged_death.wav not precached (0) - SV_StartSound: )player/flame_out.wav not precached (0) - SV_StartSound: physics/concrete/concrete_impact_flare1.wav not precached (0) --- mp/src/game/shared/SoundEmitterSystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mp/src/game/shared/SoundEmitterSystem.cpp b/mp/src/game/shared/SoundEmitterSystem.cpp index 39aca8589..a2fdaa7eb 100644 --- a/mp/src/game/shared/SoundEmitterSystem.cpp +++ b/mp/src/game/shared/SoundEmitterSystem.cpp @@ -278,7 +278,7 @@ public: V_strncpy( scriptfile, "scripts/mvm_level_sounds.txt", sizeof( scriptfile ) ); if ( filesystem->FileExists( "scripts/mvm_level_sounds.txt", "GAME" ) ) { - soundemitterbase->AddSoundOverrides( "scripts/mvm_level_sounds.txt" ); + soundemitterbase->AddSoundOverrides( "scripts/mvm_level_sounds.txt", true ); } if ( filesystem->FileExists( "scripts/mvm_level_sound_tweaks.txt", "GAME" ) ) {