From f920ebc2ff1231cafb5c045d7e224f74881564bf Mon Sep 17 00:00:00 2001 From: CookieCat <81494827+CookieCat45@users.noreply.github.com> Date: Sat, 6 Jun 2026 18:03:34 -0400 Subject: [PATCH 1/2] add teleporter activate sound for mvm --- src/game/server/tf/tf_obj_teleporter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/game/server/tf/tf_obj_teleporter.cpp b/src/game/server/tf/tf_obj_teleporter.cpp index e2a4c6f3a27..dbe617c0295 100644 --- a/src/game/server/tf/tf_obj_teleporter.cpp +++ b/src/game/server/tf/tf_obj_teleporter.cpp @@ -444,6 +444,11 @@ void CObjectTeleporter::OnGoActive( void ) UpdateMaxHealth( pMatch->GetMaxHealth() ); } } + + if ( TFGameRules()->IsMannVsMachineMode() ) + { + EmitSound( "mvm/mvm_tele_activate.wav" ); + } } //----------------------------------------------------------------------------- @@ -482,6 +487,7 @@ void CObjectTeleporter::Precache() PrecacheScriptSound( "Building_Teleporter.SpinLevel1" ); PrecacheScriptSound( "Building_Teleporter.SpinLevel2" ); PrecacheScriptSound( "Building_Teleporter.SpinLevel3" ); + PrecacheSound("mvm/mvm_tele_activate.wav"); PrecacheParticleSystem( "teleporter_red_charged" ); PrecacheParticleSystem( "teleporter_blue_charged" ); @@ -1537,4 +1543,4 @@ void CObjectTeleporter::FireGameEvent( IGameEvent *event ) SetTeleportingPlayer( NULL ); } } -} \ No newline at end of file +} From 9e07b4e527db53a2dd71a83a3f2a04df901921f7 Mon Sep 17 00:00:00 2001 From: CookieCat <81494827+CookieCat45@users.noreply.github.com> Date: Sat, 6 Jun 2026 18:17:36 -0400 Subject: [PATCH 2/2] almost forgot --- src/game/server/tf/tf_obj_teleporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/tf/tf_obj_teleporter.cpp b/src/game/server/tf/tf_obj_teleporter.cpp index dbe617c0295..21e8e2356bc 100644 --- a/src/game/server/tf/tf_obj_teleporter.cpp +++ b/src/game/server/tf/tf_obj_teleporter.cpp @@ -445,7 +445,7 @@ void CObjectTeleporter::OnGoActive( void ) } } - if ( TFGameRules()->IsMannVsMachineMode() ) + if ( TFGameRules()->IsMannVsMachineMode() && GetTeamNumber() == TF_TEAM_PVE_INVADERS ) { EmitSound( "mvm/mvm_tele_activate.wav" ); }