void CPlayerHealTimeProxy::OnBind( void *pArg ) { // NOTE: Player health max is not available on the server... C_BaseEntity *pEntity = BindArgToEntity( pArg ); C_BaseTFPlayer* pPlayer = dynamic_cast<C_BaseTFPlayer*>(pEntity); if (!pPlayer) return; Assert( m_pResult ); float dt = gpGlobals->curtime - pPlayer->GetLastGainHealthTime(); SetFloatResult( dt * m_Factor.GetFloat() ); }