mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-18 15:22:47 +03:00
fix: MvM bomb carrier voice line playing during normal CTF with bots
ref: ValveSoftware/Source-1-Games#715
This commit is contained in:
parent
e42867ad64
commit
756ba6ae45
@ -243,7 +243,7 @@ ActionResult< CTFBot > CTFBotDeliverFlag::Update( CTFBot *me, float interval )
|
|||||||
|
|
||||||
m_flTotalTravelDistance = NavAreaTravelDistance( me->GetLastKnownArea(), TheNavMesh->GetNavArea( zone->WorldSpaceCenter() ), cost );
|
m_flTotalTravelDistance = NavAreaTravelDistance( me->GetLastKnownArea(), TheNavMesh->GetNavArea( zone->WorldSpaceCenter() ), cost );
|
||||||
|
|
||||||
if ( flOldTravelDistance != -1.0f && m_flTotalTravelDistance - flOldTravelDistance > 2000.0f )
|
if ( TFGameRules()->IsMannVsMachineMode() && flOldTravelDistance != -1.0f && m_flTotalTravelDistance - flOldTravelDistance > 2000.0f )
|
||||||
{
|
{
|
||||||
TFGameRules()->BroadcastSound( 255, "Announcer.MVM_Bomb_Reset" );
|
TFGameRules()->BroadcastSound( 255, "Announcer.MVM_Bomb_Reset" );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user