Audio Phase 4a (AUDIO_FIDELITY F6/F7): coolant-leak warning + missile alarm
F6 ReportLeak (the largest dead authored block -- 38 of 54 match watchers):
recovered the binary HeatSink attribute table (16-byte {id,name,off+1} rows
@0x50e438..0x50e4c8, ids 3..12) [T1] -- it confirms EVERY existing heat
binding (CurrentTemperature@0x114 .. CoolantMassLeakRate@0x130, HeatSink@
0x164) and adds the one row we never published: ReportLeak (id 12) ->
+0x138 = coolantActive, the INT leak hysteresis flag UpdateCoolant
(@004adbf8) drives 1/0 around draw 0.003/0.0025. PoweredSubsystem derives
from HeatSink, so the single row serves all 19 authored leak watchers
through the chained index, exactly like the binary. MechWeapon's pinned-id
pad absorbed the +1 chain shift (0x0E -> 0x0F, tripwire fired as designed).
F7 IncomingLock/DistanceToMissile (missile alarm): binary Mech table walked
in full (ids 21..56 [T1] -- also settles FootStep@0x394, CollisionSpeed@
0x4B4, UnstablePercentage@0x3F0, ReduceButton@0x340 for the next findings).
IncomingLock id 54 @0x3fc, DistanceToMissile id 56 @0x400; the old
"maxSpeed @0x400 = FLT_MAX" member was a MISREAD of the far default and is
retired (its 1000.0f "override" was RadarRange id 47 @0x404, already
published). Real members + accumulators: Missile::MoveAndCollide reports
target + range each tick (BTReportIncomingMissile bridge); PerformAndWatch
latches per frame. The authored beeper (match 1/0) + range->TEMPO scale
(100..800 -> 600..10, accelerating as the missile closes) read them
unchanged. Drive is intent-level [T3]; init 0/FLT_MAX matches the binary
reset (part_012.c:9446-9447).
Regression (30s): stable; ReportLeak binds real on every subsystem (0 pad
redirects); DistanceToMissile binds with FLT_MAX live; attrnull 41 -> 3.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
0ca7d269d2
commit
cc2b109cc8
@@ -219,6 +219,17 @@ void Missile::MoveAndCollide(Scalar time_slice)
|
||||
if (thruster != 0)
|
||||
thruster->MissileThrusterSimulation(time_slice); // bleed burnTimeRemaining
|
||||
|
||||
// (AUDIO_FIDELITY F7) report the threat to the homing target: the mech's
|
||||
// IncomingLock/DistanceToMissile attributes (binary @0x3fc/0x400) drive
|
||||
// the authored missile-alarm beeper whose TEMPO rises as we close.
|
||||
if (seeker != 0 && seeker->targetEntity != 0 && (simulationFlags & 1) == 0)
|
||||
{
|
||||
extern void BTReportIncomingMissile(Entity *target, Scalar range);
|
||||
Vector3D to_target;
|
||||
to_target.Subtract(seeker->targetPosition, localOrigin.linearPosition);
|
||||
BTReportIncomingMissile(seeker->targetEntity, to_target.Length());
|
||||
}
|
||||
|
||||
// --- guidance: build steering toward the Seeker's lead point ----------
|
||||
Vector3D forward;
|
||||
GetForward(forward); // FUN_0040d150(.., +0x100)
|
||||
|
||||
Reference in New Issue
Block a user