From a52f5abb5b5a9629b6e7a278e9c4ec4dc1e976c6 Mon Sep 17 00:00:00 2001 From: shweet Date: Sun, 25 Oct 2026 18:27:37 -0400 Subject: [PATCH] notes: Rotgut's maggot (NpcAI::ENTITY_ROTGUT_maggot attacks, crawl space rooms) --- notes/README.md | 1 + notes/entities/rotgut.md | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 notes/entities/rotgut.md diff --git a/notes/README.md b/notes/README.md index b61d9ad..8b8bf5e 100644 --- a/notes/README.md +++ b/notes/README.md @@ -9,6 +9,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n | `entities/boss_fidelity_*.md` | boss fidelity pass: Rebirth bosses whose port cited no decompile, re-read against their NpcAI routine by boss room count (The Cage, Dingle/Dangle, ...), what changed and what is still not expressible | | `systems/greed_mode.md` | Greed waves' coins and music, Ultra Greed/coins/doors states, donation machine spawn, Greed doors/button, Mega Satan door | | `systems/alt_path.md` | Repentance's path: secret exit kinds and doors, Level::SetNextStage's routing, the mirror world and mineshaft dimensions, quest doors, the white fire's Lost Curse, minecarts | +| `entities/rotgut.md` | Rotgut's maggot (911.1) attacks, its crawl space rooms and what the side view needs | | `systems/ascent.md` | Repentance's Ascent: pre-ascent (flag 0x2f, the photo door), Dad's Note's drop (the Mausoleum's subtype 89 boss room), its white-out (Game+0x67788) and StageTransition mode 5, Game::SaveBackwardsStage, Level::generate_backwards / place_rooms_backwards, the heaven door, SetNextStage on the Ascent | | `systems/use_dispatch.md` | id -> case of UseActiveItem / UseCard / UsePill from the exe's jump tables (`use_dispatch.tsv`, `find.sh active/card/pill`), the slot-labelled second active switch, the common tail (TemporaryEffect), actives without a case | | `systems/room_features.md` | Room spawns (grid index wrap, trigger outputs 969 / Room::TriggerOutput, held Spawners), pressure plates and the mineshaft rail plate, white and giga poops, Mom's bed, Fissure and its spawner, Mother's Shadow, secret Isaac; why Rotgut's maggot, the Beast, Ultra Horsemen and Dogma wait | diff --git a/notes/entities/rotgut.md b/notes/entities/rotgut.md new file mode 100644 index 0000000..3f21a25 --- /dev/null +++ b/notes/entities/rotgut.md @@ -0,0 +1,34 @@ +# Rotgut's maggot and crawl space (rif/ascent, 2026-10-25) + +## Rotgut maggot (NpcAI::ENTITY_ROTGUT_maggot 0x57e4a0, 911.1) + +Init: green splat colour, "Idle", posOffset.y 36, TargetPosition = its place (velocity = target - pos every tick: +anchored), a 1000.6 effect with gfx/1000.006_rotgut detail.anm2 "Detail" as its child. `above` = Isaac not flying +(grid collision class != 5) and higher than its y - 80. State 3: after 15 idle ticks, 1 in 30 a tick: Isaac below it +and 2 in 3, or (else) a coin flip -> a head attack (rand % 3 + 3), else a butt attack (rand % 3); projectileCooldown +-1, stateFrame 0. Any attack's clip end -> state 3. + +- 8 ButtAttack1 (Shoot 14): sounds 37 (fart) and 213 (0.8); one shot from ShootPos (FUN_0057e3b0), speed 10 + 6r at + 30 degrees up-left, scale 2, FallingSpeed 0, FallingAccel 0.72 (NpcHelper::rotgut_fire_projectile 0x57e430 sets + params +8/+0xc/+0x14 directly), a blood burst. +- 9 ButtAttack2 (Shoot 9) / 12 HeadAttack2 (Shoot 8): sound 317; for 21 ticks from Shoot, every 4th: one shot + velocity ((1.5 - min(1, f / 16) * 1.3) * -2, 0) (state 9 with `above`: + 6..15 down), FallingAccel -0.1, scale + ((5..7) - 3) / 3; state 9 the green preset (0xc34d20); a 1000.2 blood splat each. +- 10 ButtAttack3 (Shoot 19): sound 37, shake 10; at once Game::Fart, ButterBeanFart radius 100 and DamageRadius 50 + with the poison tear flag; for 6 ticks: 4 shots speed 10 + 6r at 25-40 degrees (`above`: 16 + 6r at 30-55), + FallingAccel 0.72, scale as above; 2 effects 1000.141 (smoke cloud) a tick; a green splat. +- 11 HeadAttack1 (Shoot 40): Entity_Laser::ShootAngle(variant 1, ShootPos + (0, 12), angle 180, timeout 30, offset + (0, -12)). +- 7 HeadAttack3 (sound 312 as it starts; Shoot 46, Sound 58): before Shoot, every tick a pull of 0.5 * 2 / (d^2 1e-5 + + 1) toward it on every player (1.4x, at most 0.8, / mass), bomb (0.7x), pickup (0.4x) and NPC, shake 4; at Shoot + sound 11, shake 20, one -2 push; then 30 ticks, every other: 3 shots speed 10 + 11r at 10-25 degrees, FallingAccel + 0.72, scale as above, 1 in 6 a small maggot (spawn_small_maggot 0x4d8b50: 853), else 1 in 6 an attack fly (18), + blood. Sound 58: 72. +- Dead: its live projectiles with the parent flag 0x40000 die. + +The face (NpcAI::ENTITY_ROTGUT_face 0x57bec0) swallows Isaac into ROOM_ROTGUT_DUNGEON1 (-14) after 20 ticks +(beast.md); 00.special rooms 16.1010 (maggot at (12,5), the right wall) and 16.1020 (the heart 911.2) are crawl +spaces: spawn entries 0.10 / 0.20 / 0.30 along their ladders (not read). + +isaac-classic: rotgut_maggot as a scripted boss between the face and the heart in the boss room (the face's death +spawns it, its death the heart); the side view (gravity, ladders) is not ported.