Fix Entrance not getting using "mult_teleporter_recharge_rate"

This commit is contained in:
The Fatcat 2025-09-18 01:07:04 -05:00 committed by EricS-Valve
parent 873f43eef6
commit 2b251749c6
1 changed files with 7 additions and 1 deletions

View File

@ -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;