public override void UpdateBeforeSimulation10() { base.UpdateBeforeSimulation10(); if (m_user == null) { return; } if (MySandboxGame.TotalGamePlayTimeInMilliseconds - m_lastTimeUsed < MyEnergyConstants.RECHARGE_TIMEOUT) { return; } StopProgressLoopSound(); m_rechargeSocket.Unplug(); m_user.SuitBattery.ResourceSink.TemporaryConnectedEntity = null; m_user = null; }
public override void UpdateBeforeSimulation10() { base.UpdateBeforeSimulation10(); if (m_user == null) { return; } if (MySandboxGame.TotalGamePlayTimeInMilliseconds - m_lastTimeUsed < MyEnergyConstants.RECHARGE_TIMEOUT) { return; } StopProgressLoopSound(); m_rechargeSocket.Unplug(); m_requiredPowerInput = MyEnergyConstants.MAX_REQUIRED_POWER_MEDICAL_ROOM / 10f; m_user = null; }