diff --git a/game/reconstructed/btl4gau2.cpp b/game/reconstructed/btl4gau2.cpp index 9fb51f1..ace13f7 100644 --- a/game/reconstructed/btl4gau2.cpp +++ b/game/reconstructed/btl4gau2.cpp @@ -1411,6 +1411,21 @@ void SubsystemCluster::Execute() failedState = (BTSubsystemDamageLevelOf(subsystem) >= 1.0f); } + if (getenv("BT_TEMPBAR_LOG")) + { + Scalar *t = (Scalar *)AttributePointerOf(subsystem, "CurrentTemperature"); + Scalar *dg = (Scalar *)AttributePointerOf(subsystem, "DegradationTemperature"); + Scalar *fl = (Scalar *)AttributePointerOf(subsystem, "FailureTemperature"); + static int s_tbN = 0; + if (t != 0 && ((++s_tbN) % 30) == 0) + DEBUG_STREAM << "[tempbar] cluster EXECUTING " + << (subsystem ? ((Subsystem *)subsystem)->GetName() : "?") + << " T=" << *t + << " degT=" << (dg ? *dg : -1.0f) + << " failT=" << (fl ? *fl : -1.0f) + << " drawState=" << GetDrawState() << "\n" << std::flush; + } + int state = GetDrawState(); if (state != previousDrawState) {