From e4f7d05a3ab233c6939f935538633c2bc15ca1bc Mon Sep 17 00:00:00 2001 From: The Fatcat Date: Thu, 18 Sep 2025 01:07:04 -0500 Subject: [PATCH] Fix Entrance not getting using "mult_teleporter_recharge_rate" --- 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 723eb88ea27..6dc9d75b2f4 100644 --- a/src/game/server/tf/tf_obj_teleporter.cpp +++ b/src/game/server/tf/tf_obj_teleporter.cpp @@ -1166,6 +1166,12 @@ void CObjectTeleporter::TeleporterThink( void ) SetState( TELEPORTER_STATE_RECHARGING ); m_flCurrentRechargeDuration = (float)g_iTeleporterRechargeTimes[GetUpgradeLevel()]; + if (!m_bWasMapPlaced) + { + CALL_ATTRIB_HOOK_FLOAT_ON_OTHER(GetBuilder(), m_flCurrentRechargeDuration, mult_teleporter_recharge_rate); + } + + m_flRechargeTime = gpGlobals->curtime + m_flCurrentRechargeDuration; m_flMyNextThink = gpGlobals->curtime + m_flCurrentRechargeDuration; } break; @@ -1531,4 +1537,4 @@ void CObjectTeleporter::FireGameEvent( IGameEvent *event ) SetTeleportingPlayer( NULL ); } } -} \ No newline at end of file +}