public override void OnUpdate()
{
if (!flightStarted) return;
if (vessel != null && RTUtils.PhysicsActive)
{
if (willWakeInPanic && modeState == 0 && !InControl)
{
SetMode1();
UpdateGUI();
}
if (explodeMe && Vector3.Distance(FlightGlobals.ActiveVessel.transform.position, part.transform.position) > 250)
{
explodeMe = false;
part.explode();
}
if (MaxQ > 0 && modeState == 1 && (vessel.srf_velocity.magnitude * vessel.srf_velocity.magnitude * vessel.atmDensity * 0.5) > MaxQ)
{
part.decouple(0f);
explodeMe = true;
}
}
if (EnergyDrain1 > 0)
RequestPower();
}