mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-10 19:40:23 +03:00
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:
parent
a62efecf62
commit
6956e9680e
@ -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 )
|
||||
|
@ -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" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user