Audio Phase 4c (AUDIO_FIDELITY F17/F19): impact scaling + the authored footstep feed

F17 CollisionSpeed (binary id 24 @0x4B4): real member captured as
|worldLinearVelocity| when the contact accumulator arms (0->1) -- the authored
AttackVolume [0.9,1] / Brightness [0.7,1] scales over impact speed [0,25] now
make harder hits sound louder and brighter.  ReduceButton (id 46 @0x340): real
watchable member (the keyboard rig never presses it).  UnstablePercentage
stays deferred: its sway/overspeed model @0x3F0 is the known gyro-ledger gap
(live writer unexported); binding without the model would be a stand-in.

F19 footstep feed (the invention is dead, long live the authored chain):
new [motionscalecfg/motiontrigcfg] traces recovered the authored configs --
EVERY motion watcher extracts |linearMotion| (motionValue=3); the footstep
volume mixer is fed by LocalAcceleration [0,10] -> ctl100 (per-stride kick)
+ LocalVelocity [0,0.6] -> ctl101 (0.4 base while moving).  The port never
wrote Mover::localAcceleration, so ctl100 read 0 and the old mech2.cpp
step-intensity broadcast (patch-sniffing, invented curve) fought the live
authored scale.  Now: localAcceleration.linear = d(published velocity)/dt --
EXACTLY the binary's derivation ((avgVel - prev)/avgDt into +0x1e4,
part_012.c:15186-15195) -- and the broadcast is REMOVED.

Regression (30s, walk throttle): stable; footfalls deliver through the
wholly-authored chain with per-stride VARYING gains (0.61/0.72/0.62 -- real
step dynamics, impossible under the old constant-curve invention).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
arcattack
2026-07-16 14:11:36 -05:00
co-authored by Claude Opus 4.8
parent 21378ec132
commit 9dcb4752de
5 changed files with 57 additions and 69 deletions
+8
View File
@@ -880,6 +880,14 @@ protected:
Scalar distanceToMissile; // 0x38 DistanceToMissile (FLT_MAX = none)
int incomingLockNext; // accumulator (missiles OR into it)
Scalar distanceToMissileNext; // accumulator (missiles MIN into it)
// (AUDIO_FIDELITY F17) CollisionSpeed (binary id 24 @0x4B4): |impact
// velocity| captured when the contact accumulator arms (0->1) -- the
// authored AttackVolume [0.9,1] / Brightness [0.7,1] scales over
// impact speed [0,25] read it, so impacts scale with how hard you hit.
// ReduceButton (id 46 @0x340): the pod cab's REDUCE button; a real,
// watchable member -- the keyboard rig simply never presses it.
Scalar collisionSpeed; // 0x18 CollisionSpeed
int reduceButton; // 0x2e ReduceButton
// --- raw / engine-shim members touched by the ctor slice -------------
void *vtable; // installed Mech vtable ptr