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)
This commit is contained in:
sigsegv 2015-10-02 19:17:33 -07:00
parent 0d8dceea43
commit 8c21ca585e

View file

@ -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" ) )
{