# 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.