Files
isaac-port/notes/entities/pass7_i5.md
T

9.7 KiB

Group i5 notes (pass 7, 2026-10-25)

Read for isaac-classic branch rif/monster-fidelity-10. Rechecks of pass2_haunt.md and pass2_stone.md. Speed convention as pass4_00.md / pass6_engine.md: Rep v' = (v + push) * f; the engine brakes, then pushes, so its push = Rep push * the friction left after the push (a push divided by friction maps to the Rep constant). Projectiles: Entity_Projectile::Init height -23, fall speed ~0; the engine's shot defaults are the same, so FallingAccelModifier maps to fall_acceleration and HeightModifier to the offset's height. anm2 events load as AtFrame + 1 (engine frames start at 1).

floating_knight: NpcAI::ENTITY_KNIGHT 005135d0 (254.0). Changed

  • Init: grid collision class 3 (walls only). State 4: stateFrame counts down; at < 1, stateFrame = 30 + rand%15, i1 = rand & 3 (0 left, 1 up, 2 right, 3 down); v += .75 that way; on a wall hit the way reverses and pos -= v. Then friction *= .8 (after the push): turns 30 / 15, speed .75, lane retention .8 already match (the walk pushes, then brakes, as Rep).
  • Charge: IsFrame(3, index), not confused/feared; Isaac + vel * rand * 16 clamped to the room (20); its cell centre within 20 on an axis, dist < 200, CheckLine skipped for 0xfe. State 8: friction *= .8, AddVelocity(unit axis) (00431450: v += x * speedMult, no friction divide), pos eases .1 a tick to the lane. Net v' = .8 v + .8, terminal 4.
  • Changed: charge acceleration 1 -> .8 (the lane charge does v = .8 v + a). Ends on a wall hit or confusion/fear (velocity * .01). The rand%100 sound 0x43c is not ported.
  • Same convention applied to the other knights (not this group): black_knight's charge acceleration .7 would be .56 and its ramp step .07 -> .056 if the ramp runs before the brake; the parent should check loose/brainless/bone knights too.

constant_stone_shooter: NpcAI::ENTITY_CONSTANT_STONE_SHOOTER 00506320 (202.0). Changed

  • Params: FallingAccelModifier -.101, HeightModifier 13, VelocityMulti 1.07; shot v1 * 7 -> 7.49 (matches) from the Bullet null / .65: ShootLeft's null is (-13, 0) -> -20.
  • Changed: offset [-19, 0] -> [-20, 13], fall_acceleration -.101 (fall speed .9 fs + .1 - .101 -> -.01: level flight until a wall, as Rep). first_cooldown [20, 0] (never reset) and CloseEyes on plates kept.
  • The same fix applies to constant_stone_shooter_202_0_1/2/3 (not this group): offset height 13, fall_acceleration -.101, x +-20 for the side ones (ShootUp/ShootDown null (0, 0)).
  • Rep oddity: at the Shoot clip's end it plays IdleDown/Up/Left/Right for subtypes 0-3 (init: Left/Up/Right/Down); the next tick replaces it, nothing to port.

triple_grimace: NpcAI::ENTITY_STONEHEAD 00520c60 (42.2). Changed

  • Cooldown 0x54 = 84 set as the Shoot clip starts; IsTargetInAttackRange(0, 7) 006cae60 with XMM1 = DAT_00baaa94 = 200 (asm 00521727): IsFrame(7), dist < 200, CheckLine(3, 999). FireProjectiles mode 3 at 7 (10 hard) from pos, +-24 degrees; params FallingAccelModifier -.101, HeightModifier 13, no VelocityMulti.
  • Changed: fall_velocity -6 / fall_acceleration .05 (a Flash lob) -> fall_acceleration -.101, starting fall left at 0. offset [0, 13], spread .419, range 200, firemode 12 x period 7 match. Closes on no live enemies (CloseEyes).
  • over_terrain 15 is not from Rep (kept).

cross_stone_shooter: 00506320 (202.10). Skipped (matches)

  • Init cooldown 22, never reset; ShootAndRotate1/2 with FireProjectiles((10, 0), mode 6 + subtype) and DEFAULT params (normal fall: no fall fields, as the record). Subtype toggles at the clip end. Closes on plates OR no live enemies.
  • Left (as pass 2): the idle/close poses that follow the toggled subtype, and the OR.

brimstone_head: NpcAI::ENTITY_STONEHEAD 00520c60 (203.0). Changed (offset only)

  • State 3: room byte set, (frameCount - room entry) > 30 and % 90 == 0 -> state 8 and Entity::SpawnFollowingEffect198(dir, 0x1a, colour .8, 4.0): a 1000.198 warning tracer for 26 ticks, which ends just as Shoot (frame 26) fires ShootAngle(1, subtype * 90 - 180, timeout 15, offset LaserPos / .65). Laser DepthOffset (+0x358) is -10 for subtype 1 (up), else 10: draw order. State 8 ends once the clip is over and the laser gone.
  • Changed: beam offset [-22, -6] -> [-23.1, -6.2] (ShootLeft LaserPos (-15, -4) / .65). The rest matches.
  • Not expressible: the warning tracer (engine_i5.md #1). The 203_0_1/2/3 records may want the same offset check.

gaping_maw: 00520c60 (235.0). Skipped (matches)

  • Pull on players (1), tears (2), projectiles (9) within 300: v += clamp((300 - d) * f / 300, 0, f) * speedMult / their friction (f .6 player, .9 others); with the physics step's * friction that is a net (300 - d) * f / 300 a tick, as the engine's pull. A player whose +0x1e68 entity is within 52 is pulled from their midpoint (not ported). TurnOff on plates.

broken_gaping_maw: 00520c60 (236.0). Changed

  • Clock stateFrame % 240 (from its spawn): 0 TurnOn (28 frames); TurnOn's end -> Effect + Sucking overlay, pulling only while it plays; 150 TurnOff (overlay cleared). Pulls 122 of every 240 ticks; maws placed together stay in step.
  • Changed: Sucking repeat limit 7 (128 ticks) -> ticks 122; TurnOn period_serial false (room clock).

bomb_grimace: NpcAI::ENTITY_BOMB_GRIMACE 004f8df0 (809.0). Partial (no change)

  • Init (not in the Abandoned Mineshaft dimension): a 5.41 throwable bomb on the cell below (pos + (0, 40), snapped to the cell centre), linked as its child, its appear clip advanced to the end.
  • State 3: Idle; with stateFrame < 1 it waits while its child lives; once gone, stateFrame = 30, counted down; at 0 state 8.
  • State 8: Shoot (43 frames); on Shoot (AtFrame 30) sound 0x106 and a 5.41 at pos + (0, 6), velocity (0, 1.25), linked; clip end -> state 3. Death: effect 1000.0x77 with callback 004f8cc0, count 10 (the ten bombs).
  • Record: when type_count throwable_bomb_pickup below 1, cooldown 30 after the attack, spawn [0, 6] / [0, 1.25]. Not expressible: the opening bomb, the gate on its OWN bomb (type_count counts every one in the room), the 30-tick wait counted from the bomb's loss (engine_i5.md #2).

lil_haunt_260_10: NpcAI::ENTITY_THE_HAUNT 00481410 (260.10). Changed

  • Orbit (state 3): pos = parent + 50 (cos, sin)(i1 / n * 360 + 2 * roomTicks - 40 deg); n = 3 to age 90, 3 - (age - 90) / 60 to 150, then 2 for a subtype-0 Haunt (the two left spread out), else the parent's live count (parent i1, recounted every 4 frames from 260.10s whose parent it is, detached ones included). Friction *.5, hits flash and are dropped.
  • Detach: ((i1 == 0 or parent subtype != 0) and age > 90) or (parent subtype 0 and parent i1 < 3) or no parent. So the black (and pink) Haunt's lil haunts all leave at 90 (pass 2 could not read parent +0x30: it is the subtype).
  • Chase (state 4): d = Isaac - pos; aim = d + |d| * playerVel * .5; v += unit(aim) * .5 / f; f *= .95 after. No Haunt *.96 (that is the Haunt's own tail, line 806 of its body). Net v' = .95 v + .475.
  • Shoot: stateFrame > 90 (stateFrame starts at 0 on detach and is zeroed every tick of state 8), d^2 < 40000, rand%50; state 8 plays Shoot (16 frames), friction *.5; on Shoot (AtFrame 4): sound 0x13e, aimed at Isaac + vel * 5, speed 10, and straight back to state 4 (the clip plays on while it chases).
  • Changed: chase speed .5 -> .475, retention .912 -> .95; Shoot retention .48 -> .5; the attack's after_tick 90 -> phase first_cooldown [91, 0], cooldown 90 -> 80 (counted from the clip end, 11 frames after Shoot); black colour's when -> {after_tick 90} or host_absent (kin_below 2 dropped).
  • Not expressible: the distance-scaled lead (lead 8 kept; engine_i5.md #3); the chase resuming at the release.

homunculus (228.0) / begotten (251.0): NpcAI::ENTITY_HOMUNCULUS 00539b90. Changed

  • Init: Awaken set as an overlay; anchor = nearest wall point (room bounds -20/+20 x, +0/+40 y), else (> 40 away) a rock (grid type 3) in the four neighbour cells (i1 = its index); eight cord links 228.10/251.10 (the first skipped on a rock).
  • State 3: Awaken overlay plays from its start; at its end state 4. Only the final friction *.8 runs: it stands.
  • State 4: FindGridPath(CalcTargetPosition, 1.5) (feared: EvadeTarget). pos + vel past 100 from the anchor: friction *.2 and pos clamped to anchor + 100 * dir (the leash). Free when: clamped this tick AND ((room +0x1bb0 != 0x35 AND old stateFrame > 60 + rand%30 AND IsFrame(30, index) AND rand%5 == 0) OR I2 >= 1 (Mr. Fred's Cord 00486db0 sets it)), or the anchor rock is gone. IsControllerActionTriggered (006d8290) only reads a controlling player's input: pass 2's "hurt 1 in 4" is that, so it is not an AI rule.
  • State 8 (free): FireProjectiles at the anchor (wall: clamped; rock: moved 60 toward it) mode 9 (10, 6): six at 10, at once; Begotten darkness 1.0 for 150, then fades its colour .1 a tick. FindGridPath(2, 900). Variant 0 friction *.8 at the very end of the AI, after FindGridPath (which itself did *.7 and pushed speed / .7): net 1.5 / .7 * .56 = 1.2.
  • Cord links (state 3): placed along parent - anchor by V1.y (with a sag); once the parent is free or gone they go, a Homunculus link leaving a 1000.22 red creep (scale .25 + rand) within 20.
  • Changed (both): speed 1.5 -> 1.2, free patch speed 2 -> 1.6; spawn_clip Awaken; the patch's opening [0, 1] -> [0, 12] (Awaken's Shoot, AtFrame 11 + 1) so the ring leaves on the first free tick; after_tick 75 -> age_at_least 93 (Awaken 18 + 75); the hurt / one_in 4 gate removed. Homunculus keeps the flag gate (Mr. Fred).
  • pass6_engine.md listed Begotten's 1.5 / 2.0 as matching; the *.8 is after the call, so by the same rule as Mega Clotty's MoveRandomly (.5 / .9 * .765) the push is 1.2 / 1.6.
  • Not expressible (as pass 2): the leash-taut requirement, the ring from the anchor, the cords' creep (homunculus record puts scale-2 creep on the ring instead).