From b60c4ca2c990622e7d5fa2eef257876a4a80616f Mon Sep 17 00:00:00 2001 From: shweet Date: Sun, 25 Oct 2026 22:14:38 -0400 Subject: [PATCH] notes: boss fidelity 3 (Mega Satan hand commands and respawn, fire colorize, Mama Gurdy retreat, Chimera runs/rolls/catch, BOOMERANG has no handler, Fistula, Gideon defeated) --- notes/README.md | 5 ++ notes/entities/boss_fidelity_3.md | 106 ++++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 notes/entities/boss_fidelity_3.md diff --git a/notes/README.md b/notes/README.md index 0e6dc16..a8d4b14 100644 --- a/notes/README.md +++ b/notes/README.md @@ -145,6 +145,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings; | carrion_princess | 0x52db50 | carrion_princess (23.3) / dank_charger (23.2): NpcAI::ENTITY_MAGGOT 0052db50. Skipped (matches) | [entities/pass7_a1.md](entities/pass7_a1.md) | | Champion roll | 0x6bb790 | Champion roll (0x6bb790, ZHL-misnamed Game::RestoreState; it is the NPC init champion roll) | [items/trinkets_cards.md](items/trinkets_cards.md) | | chimera / chimera_body / chimera_head | 0x49d130 0x49cd90 | chimera / chimera_body / chimera_head: NpcAI::ENTITY_CHIMERA_body 0049d130, ENTITY_CHIMERA_head_update 0049cd90 (910.x). Partial | [entities/boss_fidelity_2.md](entities/boss_fidelity_2.md) | +| chimera | 0x49d130 0x49fa10 | chimera: NpcAI::ENTITY_CHIMERA_body 0049d130 (910.0 / 910.1), NpcAI::ENTITY_CHIMERA 0049fa10 (910.2). Changed | [entities/boss_fidelity_3.md](entities/boss_fidelity_3.md) | | clickety_clack | 0x4efb90 | clickety_clack: ENTITY_CLICKETY_CLACK 004efb90. Changed | [entities/pass4_00.md](entities/pass4_00.md) | | clog | 0x4a12f0 | clog (NpcAI::ENTITY_CLOG 004a12f0) | [entities/pass2_bosses4.md](entities/pass2_bosses4.md) | | cloggy | 0x50d370 | cloggy: NpcAI::ENTITY_CLOTTY 0050d370 (872.0). Changed | [entities/pass7_i3.md](entities/pass7_i3.md) | @@ -285,6 +286,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings; | fire_worm | 0x500990 | fire_worm: NpcAI::ENTITY_FIRE_WORM 00500990 | [entities/pass3_c.md](entities/pass3_c.md) | | Fissure Spawner | 0x5e5ace | Fissure Spawner (effect 1000.192, Entity_Effect::Update case at 0x5e5ace, asm only) | [systems/room_features.md](systems/room_features.md) | | Fissure | 0x564f30 | Fissure (NpcAI::ENTITY_FISSURE 0x564f30, type 815) | [systems/room_features.md](systems/room_features.md) | +| fistula_medium / fistula_small | 0x466600 | fistula_medium / fistula_small (and large): NpcAI::ENTITY_FISTULA_BIG 00466600 (71/72/73). Changed (sounds) | [entities/boss_fidelity_3.md](entities/boss_fidelity_3.md) | | fistuloid | 0x545f70 | fistuloid: ENTITY_FISTULOID 00545f70. Changed | [entities/pass4_01.md](entities/pass4_01.md) | | flagellant | 0x4e5170 | flagellant (ENTITY_WHIPPER 004e5170, 834.2) | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) | | flagellant | 0x4e5170 | flagellant: NpcAI::ENTITY_WHIPPER 004e5170 (834.2) | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) | @@ -316,6 +318,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings; | Godhead's glow | 0x66e5f9 | Godhead's glow (Entity_Tear::Update, tear flag bit 31 = 0xc34920, test at 0x66e5f9) | [items/items_sweep_13.md](items/items_sweep_13.md) | | Gravity cells | 0x7f2800 0x7f448b 0x7f46bf 0x99b520 0x99b980 | Gravity cells (Room::Init 0x7f2800, its tail at 0x7f448b..0x7f46bf; GridEntity_Gravity 0x99b520/0x99b980) | [systems/side_view.md](systems/side_view.md) | | great_gideon | 0x4b1ee0 | great_gideon: NpcAI::ENTITY_GIDEON 004b1ee0 (907.0). Skipped (matches within its listed approximations) | [entities/pass6_h4.md](entities/pass6_h4.md) | +| great_gideon_defeated | 0x4b1ee0 | great_gideon_defeated: NpcAI::ENTITY_GIDEON 004b1ee0 subtype 1. Matches | [entities/boss_fidelity_3.md](entities/boss_fidelity_3.md) | | greed_gaper | 0x5a6b80 | greed_gaper: NpcAI::ENTITY_GREED_GAPER 005a6b80 (299.0). Changed (Flash ground_chaser -> scripted path) | [entities/pass5_g6.md](entities/pass5_g6.md) | | grilled_clotty | 0x50d370 | grilled_clotty (ENTITY_CLOTTY 0050d370): walking resets V1.X = 30 (45 type 282, 15 for 15.3) each tick; | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) | | grilled_clotty | 0x50d370 | grilled_clotty: NpcAI::ENTITY_CLOTTY 0050d370 (15.3) | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) | @@ -391,6 +394,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings; | mama_fly | 0x4ddf00 0x506bd0 | mama_fly: 004ddf00 (61.4, through ENTITY_FLY 00506bd0). Changed (approximation) | [entities/pass4_01.md](entities/pass4_01.md) | | mama_fly | 0x4ddf00 | mama_fly: 004ddf00 (61.4) | [entities/fidelity_leftovers.md](entities/fidelity_leftovers.md) | | mama_gurdy | 0x48ae30 | mama_gurdy: NpcAI::ENTITY_MAMA_GURDY 0048ae30 (266.0; hands 266.1 / 266.2). Changed | [entities/boss_fidelity_2.md](entities/boss_fidelity_2.md) | +| mama_gurdy | 0x48ae30 | mama_gurdy: NpcAI::ENTITY_MAMA_GURDY 0048ae30. Changed | [entities/boss_fidelity_3.md](entities/boss_fidelity_3.md) | | mask_ii | 0x461fc0 | mask_ii: Mask update 00461fc0. Skipped (matches) | [entities/pass3_a.md](entities/pass3_a.md) | | maze_roamer | 0x4f1ec0 | maze_roamer: ENTITY_MAZE_ROAMER 004f1ec0. Changed | [entities/pass4_00.md](entities/pass4_00.md) | | maze_roamer_890_0_1 | 0x4f1ec0 | maze_roamer_890_0_1: NpcAI::ENTITY_MAZE_ROAMER 004f1ec0 subtype 1 (890.0.1). Skipped (matches) | [entities/pass7_i7.md](entities/pass7_i7.md) | @@ -402,6 +406,7 @@ Generated by `python3 -I scripts/notes_index.py notes` from the `## ` headings; | mega_maw red | 0x45ef20 | mega_maw red (262.0 subtype 1): NpcAI::ENTITY_MEGA_MAW 0045ef20. Changed | [entities/boss_fidelity_2.md](entities/boss_fidelity_2.md) | | mega_maw | 0x45ef20 | mega_maw: ENTITY_MEGA_MAW 0045ef20 (subtype 0). Changed | [entities/pass4_01.md](entities/pass4_01.md) | | mega_maw | 0x45ef20 | mega_maw: NpcAI::ENTITY_MEGA_MAW 0045ef20 (262.0; subtype 1 red, 2 black). Changed | [entities/boss_fidelity_1.md](entities/boss_fidelity_1.md) | +| mega_satan / mega_satans_*_hand | 0x4c8090 0x4cca10 | mega_satan / mega_satans_*_hand: NpcAI::ENTITY_MEGA_SATAN 004c8090, NpcAI::ENTITY_MEGA_SATAN_hand 004cca10. Changed | [entities/boss_fidelity_3.md](entities/boss_fidelity_3.md) | | mega_satan_2 | 0x4c8090 | mega_satan_2: NpcAI::ENTITY_MEGA_SATAN 004c8090 (275.0). Read only, not changed | [entities/boss_fidelity_1.md](entities/boss_fidelity_1.md) | | mega_satan_2 | 0x4c8090 | mega_satan_2: NpcAI::ENTITY_MEGA_SATAN 004c8090 (275.0, the head 274 morphed). Changed | [entities/boss_fidelity_2.md](entities/boss_fidelity_2.md) | | mega_satans_left_hand / mega_satans_right_hand | 0x4cca10 | mega_satans_left_hand / mega_satans_right_hand: NpcAI::ENTITY_MEGA_SATAN_hand 004cca10 (274.1 / 274.2). Partial (not changed) | [entities/pass6_h4.md](entities/pass6_h4.md) | diff --git a/notes/entities/boss_fidelity_3.md b/notes/entities/boss_fidelity_3.md new file mode 100644 index 0000000..440ee66 --- /dev/null +++ b/notes/entities/boss_fidelity_3.md @@ -0,0 +1,106 @@ +# Boss fidelity pass 3 (2026-10-25, isaac-classic branch rif/boss-fidelity-3) + +Follows boss_fidelity_2.md: its leftovers (Mega Satan's hand commands and lost hands, Mega Satan 2's fire colour, +Mama Gurdy's retreat and spikes, Baby Plum's spray, the rest of Chimera, the BOOMERANG flag), then the Rebirth boss +records whose reference comment still cited no routine, then `shots_still` on every shooting Rebirth boss. + +## Records left without a decompile citation (start of the pass) +Rebirth boss records of versions/rebirth/entities.json whose tools/reference comment named no routine or address, by +the rooms placing them: fistula_medium (31 rooms), fistula_small (16), then none placed: dark_esau, great_gideon_defeated, +mama_gurdy_left_hand / _right_hand, ultra_greed_door, blue_baby_alt, background_pestilence / _war / _death. +- Done here: the Fistulas (below), Great Gideon defeated, Mama Gurdy's hands (citations, both read in pass 2 and here). +- Not this pass: dark_esau (ported by the characters-11 agent from NpcAI::ENTITY_DARK_ESAU 005542e0 meanwhile), + ultra_greed_door (Greed mode, later), blue_baby_alt (Flash's ??? controller as Hush's opening; Rep 102.2 not re-read), + the background riders (Beast chain, Home). + +## mega_satan / mega_satans_*_hand: NpcAI::ENTITY_MEGA_SATAN 004c8090, NpcAI::ENTITY_MEGA_SATAN_hand 004cca10. Changed +- Hands are local_290.y = the first QuerySublist(0x112, 1) (274.1) and local_288 = (0x112, 2) (274.2). The head picks + only while each live hand is in state 3 or 13 (004c960d), and for 275 only with 5 or fewer shots within 360. +- Hand smash pick (004c9b6b): rand%10 < 6 takes 274.2, else 274.1, the other when the drawn one is gone; that hand's + state = 8, stateFrame 0, PlaySound(0xef satan_blast, .6 volume); head i2 = 0x1001. Quake: 274.2 state 9, 274.1 + state 9 with stateFrame -18 (004cca10 state 9: SmashQuake starts only once stateFrame reaches 0, so 18 ticks late); + sound 0xf1 satan_grow; i2 = 0x1000. The hands never start anything themselves. +- Weights confirmed as pass 2 read them (x15 in the port): two smashes in a row (v2.x and i2 both 0x1001) quarter the + smash weight and set the head smash to 20; after the quake the laser gains 50; after rings the quake is 30. +- Lost hand (004c8270..004c8460, type 0x112 only, not dead, not state 16): while the hand is absent a byte counter + (i1 byte 2 for 274.1, byte 3 for 274.2) gains 1 on every g_game->_frameCount % 30 == 0; past 29 Game::Spawn(0x112, + variant, pos + (-120 / +120, 100)) and its Init (vtable +0xc); the counter is zeroed only while the hand exists. +- Port: new attack field `command` (partners by type with weight and delay, the attack index, all) on two head + attacks (Idle, 1 tick: the smash, and the quake with the right hand's delay 18), the hands' own rolls removed; + choice `wait_types` (no pick while a hand plays or waits); behaviour `respawn` (type, period 30, count 30, at) in + place of the NoseBlow stand-ins; pick-history `after` rules for the two-smash and quake terms. + +## mega_satan_2: fire colour. Changed +- 004caf75: fire shots get Color colorize (1, .5 + .75 sin(.1 StateFrame), 0, .8), fixed per volley as it fires + (not a flicker over the shot's life). Other colorizes by flag: BURST (1, .4, 0, 1), MEGA_WIGGLE and SAWTOOTH (2, 2, 2, + 1), SINE_VELOCITY (.6, .6, .6, 1), CURVE (.6, .6, .6, clamp((strength + .002) / .004)): right curves grey, left none. +- Port: shot field `tint_wave` [channel, base, amplitude, rate] (green .5 + .75 sin(.1 age)) on the fire shots with + tint (1, 1, 0). The engine has no colorize (only a Flash colour transform), so the grey/white ones are left out. + +## mama_gurdy: NpcAI::ENTITY_MAMA_GURDY 0048ae30. Changed +- State 10 with i1 1 (20%): sound 0x74 at stateFrame 0, TargetPosition.y = lerp(V1.y, V1.y - 280, stateFrame / 45); + twenty 1000.55 spikes at stateFrame 35; past 44 i1 2 with stateFrame rand%60 counted down, then Puke (i1 3): y lerps + back from -280 over its frames 34-44, ShakeScreen 8 and sound 0x74 on frame 34. The hands are held at her place plus + their offset each tick, so they rise too. +- State 9 frame 20: all twenty spikes in one loop (random x over the room, y from its top + 40, FindFreePickupSpawnPosition). +- Port: attack field `lift` (to, from, frames) for anchored actors (Attack1 45 ticks up to -280, the return Puke down + from frame 34 over 10); rain `count` (twenty on one step). Not expressed: the shakes, the spikes' room-wide spread. + +## baby_plum: Attack3 spray. Changed +- Port: the loop's shots are `aimed` along_motion turned back (fan -1), speed 4.5-5.5, new shot field `turn_random` 30 + (degrees either way), rim 12 (from behind her). + +## chimera: NpcAI::ENTITY_CHIMERA_body 0049d130 (910.0 / 910.1), NpcAI::ENTITY_CHIMERA 0049fa10 (910.2). Changed +- Run (state 4, variant 0): FindGridPath(Isaac + vel * dist * .2, .12; .16 at half health), then friction set to .96: + net v = .96 v + dir * min(2, d / 10) * .12 * .96 / .7. Before half it ends only in the leap (past 90 ticks with the + head's cooldown 0..45, rand%15). At half health (health below .5: projectileCooldown -1000, health set to half, every + later damage event x.1 while variant 0) the run plays HeadAngry and ends in the trip past 120 ticks (rand%15) or past + 60 within 300 with Isaac within .94 of its cardinal heading. +- Headless body (variant 1) state 3: (rest byte 0, head absent or idle, rand%60) or no head -> run (sound 0xf); run + past 100 ticks (30 without a head) -> 11: RollBegin, velocity .6 of its speed along the diagonal nearest Isaac + (turn 45, ToCardinal, turn back); every state-11 tick v = unit(v) * 14 (18 headless), the physics rebounding it off + walls; past 90 ticks rand%20 with a head -> RollEnd (rest 15). Headless it rolls for good. +- Catch (collision phase, 0049d130 aiCallPhase 3): body variant 1 in state 3/4 touching its child 910.2 in state 10 + with the head's i1 set -> body 16 ThrowHead, head 16 invisible, held (its velocity = body - head a tick); on the + body's Shoot (frame 29) NpcHelper::chimera_charge_begin(Isaac + vel * dist * .3) with xmm2 4.0 (DAT_00baa75c), head + velocity 2 x its push, posOffset y -20, a "thrown" flag (i1 byte 1). +- Head 910.2 (0049fa10): state 10 is a push: TargetPosition = unit(target - pos) * 3.7 (DAT_00baa740; 4.0 thrown), + each tick vel += push, push *= .95 (again below speed 8), zeroed below .1; friction at least .93: about 59 ticks, + 840 px, peak 20 a tick. Its end: ChargeEnd(Short); fewer than 3 charges and a body alive -> charge again at the body's + lead (i1 = 1, catchable), else at Isaac. Thrown and meeting a wall: ShakeScreen 10, FireBossProjectiles(20, random), + sounds 0x30 / 0x48, the push halved along its velocity; while thrown 1 in 4 a tick 1-2 boss shots behind it. +- Port: chase `keep` (the pathfinder's .7 replaced) and `lead`; attack flags `diagonal`, `hidden` and on_wall + `reflect`; the head charges as decaying lunges, charges back at its body (lunge_at_partner, arrive 40), hides 29 ticks + commanding the body's ThrowHead, then is flung (push 4, impulse 8), a wall bursting 20 boss shots. Angry run and + trip hurt_scale .1. Not expressed: health pinned at half, the trip's early cue, the body seeking its head, the + flung head's trailing shots. + +## BOOMERANG (ProjectileFlags 1 << 6, 0x40). No handler +- Searched the whole exe (objdump): no `test` of bit 6 at +0x438 directly or after a load into a register (all six + masks with bit 6 near a +0x438 load are clears: 00652fd9, 00653c78, 00656b55, 00656ed9, 006577aa, 00659ea7), none + after the 14 calls of Entity_Projectile::ProjectileFlags 00417830, none in the decompiled Entity_Projectile::Update + 00653070 (its 0x40 tests read the high dword +0x43c, bit 38). apply_spawn_flags 006cb010 maps only 0x80, 0x100 and + 0x20000000. So BOOMERANG does nothing in 1.9.7.17: the red Mega Maw's boomerang rings are plain rings (as ported). + +## fistula_medium / fistula_small (and large): NpcAI::ENTITY_FISTULA_BIG 00466600 (71/72/73). Changed (sounds) +- Every tick: friction *.9 (*.81 subtype 1); speed .2 / .38 / .56 (by type) added along each axis's own sign / friction + (Boom Fly step); confused/feared adds a flee push clamp(((size + 80) - d) * .02, 0, .5); types 71/72 rotate +1 degree + a tick. Variant 0 type 71: i1 counts, past 120 rand%200 a growl (0x3d2/3/4 by which sizes are in the room). +- Grid hit sound: variant 0: 71 0x3ce, 72 0x3c9, 73 0x3ca (the Teratoma takes for medium and small); variant 1: 71 0x3c8, + else the same; delay 20. +- Death: 71 four 72s at +-(20 random way) moving .2 of it and two crossed (three with subtype 1 or Teratoma), sound 0x3d1 + (variant 0); 72 two 73s; 73 sound 0x109, Teratoma two Spiders (between Isaac and it within 70, near it within 100), + else not on a pit: Charger 23 (Boom Fly 25 for subtype 1) at .75 health. The Flash records already match. +- Port: the Rebirth layer adds wall_bounce sounds (gap 20) to all three and the Teratoma form. Not expressed: growl, + spin, flee push. + +## great_gideon_defeated: NpcAI::ENTITY_GIDEON 004b1ee0 subtype 1. Matches +- The last wave spent (health 1 -> 0): CloseEyes, health .5, TriggerBossDeath, canShutDoors 0, subtype 1, state 16 + holding ClosedEyes; invulnerable from init; its cells kept at grid path 3999 each tick (aiCallPhase 1). + +## shots_still on the Rebirth bosses +- monster-fidelity-10 found Flash's ffmo boost (x1.2 speed, .4 of the shooter's velocity, extra rise) on every shot + without `still`; Repentance's FireProjectiles / FireBossProjectiles never add it. Set `shots_still` on the 60 + shooting Rebirth boss records (all 59 boss-category records whose data has a shot, plus the_frail_2), and made the + flag also cover a whirl's spin shots and ???'s rings and crosses (isaac controller). No boss shot speed had been + pre-divided by 1.2 (scanned), so the data stays as decompiled.