Fix Spy bots using human voice lines in MvM

Spy bots should use Spy.MVM_TeaseVictim instead of Spy.TeaseVictim.

The soundscript Spy.MVM_TeaseVictim will also need to be corrected as
some of the sound paths are incorrect.

Fixes: https://github.com/ValveSoftware/Source-1-Games/issues/4794
This commit is contained in:
John Kvalevog 2025-02-27 16:44:01 -08:00 committed by EricS-Valve
parent a62efecf62
commit 6956e9680e
2 changed files with 9 additions and 1 deletions

View File

@ -70,7 +70,14 @@ ActionResult< CTFBot > CTFBotSpyHide::Update( CTFBot *me, float interval )
if ( m_talkTimer.IsElapsed() )
{
m_talkTimer.Start( RandomFloat( 5.0f, 10.0f ) );
me->EmitSound( "Spy.TeaseVictim" );
if ( TFGameRules()->IsMannVsMachineMode() && me->GetTeamNumber() == TF_TEAM_PVE_INVADERS )
{
me->EmitSound( "Spy.MVM_TeaseVictim" );
}
else
{
me->EmitSound( "Spy.TeaseVictim" );
}
}
if ( m_isAtGoal )

View File

@ -2802,6 +2802,7 @@ void CTFPlayer::PrecacheMvM()
PrecacheScriptSound( "MVM.DeployBombGiant" );
PrecacheScriptSound( "Weapon_Upgrade.ExplosiveHeadshot" );
PrecacheScriptSound( "Spy.MVM_Chuckle" );
PrecacheScriptSound( "Spy.MVM_TeaseVictim" );
PrecacheScriptSound( "MVM.Robot_Engineer_Spawn" );
PrecacheScriptSound( "MVM.Robot_Teleporter_Deliver" );
PrecacheScriptSound( "MVM.MoneyPickup" );