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

101 lines
8.7 KiB
Markdown

# Group g3 notes (pass 5, 2026-10-24)
Hopper family, Clotty family, Dinga and Poison Mind, read for isaac-classic branch rif/monster-fidelity-8. Numbers are
exact from the decompile unless marked. The hopper records were ported from this routine in monster-fidelity-3
(spring hops) without notes; this pass re-read them.
## ministro: NpcAI::ENTITY_HOPPER 00526470 (305.0). Changed
- Shared hop (all types of the routine): state 3 waits stateFrame >= W (Eggy 8, Tainted Hopper 26, Raglings 15, else 0),
then picks a landing: r = 0 except Trite/Ragling (50u + 70u, 120 when controlled) and type 54 (50u); range
130 + 1.3r (x .7 for 29.2 and 246.1). Isaac (CalcTargetPosition(60)) farther than range -> a random spot r + 95 away;
else his spot + (his offset) * r / 200 (type 54 also + his velocity * 5); GetClampedPosition(5); a blocked cell
starts no hop. State 4: before Jump the pull is offset * .1 * .05 / friction, after it offset * .05 / friction, or
unit / friction within 30; collision 5/4 before Jump, 3/2 after (flies over rocks); done (to state 3) once the clip
is over and within 10, or slower than .75 / past 30 ticks on a 1 in 10. Friction *.7 every tick (end of the AI).
- Ministro (0x131): in state 3 with no target, ProjectileCooldown < 1, Isaac within 200 (40000) and
Room::CheckLine(mode 3) -> state 8 "Attack", cooldown 2. The cooldown only falls (-1 a tick) in state 3 while above 0,
and the hop pick runs on the same tick, so every shot is followed by exactly two hops.
- Shoot: sound 0x13e, FireBossProjectiles(5, pos + unit * 7, traj 10, Scale .5) and nothing else (the mode-1 pair at 7
is the path of the other types; 0x131 jumps past it). Flip X by the aim.
- Changed: removed the aimed pair, volley scale .5. The hop chain had next 3 with three attacks (out of range,
undefined behaviour: the loader only checks next lists): now shot -> hop [2] -> hop [1] -> idle.
## eggy: NpcAI::ENTITY_HOPPER 00526470 (29.2). Changed
- Wait 8, range * .7, Land: white creep 1000.25 scale .8 timeout 150 (not when friendly), SetGridPath 900; on Land
1 in 3 ends the hop with stateFrame 9999 (hops again at once). All matched.
- Death (state 5, stays alive at .1 hp, invincible, velocity holds it in place): Die clip (70 frames; Jump at 7
resets stateFrame to 0). Swarm spiders (884) spawn at stateFrame 2, 5, 8, 11, 14 (every 3 below 15), 19, 25, 31
(every 6 below 32), 45, 60 (every 15 below 61): 10, each in state 6 with a weighted hop (HopShort 5: speed 5-6,
Hop 9: 8-10, HopLong 7: 10-13) at a random angle. A regen champion's revives (+0xc76) make each spawn 1 in
min(3, revives + 1). Kill at the clip end.
- Changed: death_spawn count 4 -> 10, frame 8. Not expressible: spawns spread over 60 ticks, their outward hops.
## sticky_leaper: NpcAI::ENTITY_HOPPER 00526470 (34.1). Changed
- Big jump roll (type 0x22, tail of the AI): whenever the target is clear (each hop or big jump end, and idle ticks
whose landing pick was blocked), rand%7 == 0 -> state 6 to CalcTargetPosition(60) (FindFreePickupSpawnPosition 120
if blocked). BigJumpUp: friction *.8 before Jump; from Jump V1.X += .02 a tick, pos = lerp(pos, target, V1.X),
untouchable. BigJumpDown keeps lerping until Land: sounds 0x45 / 0xb2, black creep 1000.26 scale 2 timeout 300,
blood explosion, FireBossProjectiles(6, random, traj 10, Colorize (.5, .5, .5, 1), Scale .7). Plain Leaper (34.0):
FireProjectiles mode 6 at 9 (12 in hard / greedier).
- Hop Land: black creep scale 1.5 timeout 300.
- Changed: landing volley scale .7 (the unused speed 10 dropped: a random-direction FireBossProjectiles is 7).
## ragling / rag_mans_ragling: NpcAI::ENTITY_HOPPER 00526470 (246.0 / 246.1). Changed
- Wait 15, r = 50u + 70u, 246.1 range * .7. At each pick rand%3 == 0 (and not friendly) -> state 8 "Appear".
- Shoot: FireProjectiles(pos, unit * 7, mode 0) and (pos, -unit * 7, mode 0), params: Color tint (.5, 0, .5, 1),
BulletFlags 0x2800 (ORBIT_CW | NO_WALL_COLLIDE), TargetPosition = its position.
- Orbit flight (Entity_Projectile::Update, flags & 0x1800): d = pos - centre, t = perp(d) (negated for CCW),
v = normalize(t + d * .5) * |v| with OrbitDistance 0: speed constant.
- Changed: the shots (were two at 3, +-90 deg, x1.03 to 8) -> fan [1,0] / [-1,0] at 7, orbit clockwise, wall_free,
still. Tint left (colour of the Rebirth art).
- 246.1 death: state 16 (Die, invincible, regen via Rag Man), Regen in state 2: as before (death_link).
## pon: NpcAI::ENTITY_HOPPER 00526470 (840.0). Skipped (matches)
- r 0, range 130, far 95. A blocked landing, or one whose GridPath >= 200, is redrawn up to 10 times at 95 px a random
angle (Room::GetClampedPositionImpl). Land: red creep 1000.22 scale 1.25, blood explosion, SetGridPath 900. After
Land, each tick 2 in 3 marks the hop done (ends when within 10). Not expressed: the redraws, the early end.
## mega_clotty: NpcAI::ENTITY_CLOTTY 0050d370 (282.0). Changed
- Friction *.9 every tick; walking states also *.85 (after the move): .765. Walk: PathFinder::MoveRandomly (007e6300):
with no target a free point 40 px at a random angle; push unit * .5 * speedMult / friction; done (returns 1, clears
the target) within 3, on a grid hit, or below .1 speed squared on a 1 in 10. That is the engine's move hop
(wander.cpp hop_step). Every MoveRandomly arrival starts state 8 ("Attack"); V1.X = 45 while walking, -1 a tick in
state 8, which ends at the clip end or once V1.X <= 0 on rand%30 != 0 (about 46 ticks).
- Shoot (sound 0x30): (rand & 3) != 0 -> FireProjectiles mode 9 (10, 6): a ring of 6 at 10, CircleAngle rand*360-180.
Else rand%3 == 0 and fewer than 5 enemies -> rand%3 == 0 a Globin (24.0, ReGen, state 3) else a Clotty (15.0) at
FindFreePickupSpawnPosition(40); else 4 red creeps (1000.22) within 40 at a random angle, scale 1 + .5u, timeout 210.
Odds: ring 27/36, creep 6/36, clotty 2/36, globin 1/36.
- Death: 2 - revives Clotties at pos + 20 * a random unit each.
- Changed: move wander -> hop (.556 / .765), choice one_in 40 -> on_hop attacks tried in order creep (1 in 6),
spawn (1 in 10, enemy_limit 5, clotty 2 : globin 1), ring of 6 at 10 (was 8); 46 ticks, retention .9; creep
count 4, base 40, scale 1.25 (was one at 1.6); death_split offset 20, speed 0, random_axis.
- Not expressible: the spawn branch falling back to creep with 5+ enemies (here the ring), each child's own angle.
## clotty: NpcAI::ENTITY_CLOTTY 0050d370 (15.0). Skipped
- The Rebirth layer only adds floor_hazards (ignites into a Grilled Clotty); behaviour is Flash's Clotty.
## dinga: NpcAI::ENTITY_MEMBRAIN 0051c040 (223.0). Changed
- Friction *.8; walk PathFinder::MoveRandomly (.5 / .8 = .625), its arrival unused. Each tick rand%30 == 0 with fewer
than 8 enemies (not friendly) -> state 8 "Attack" until the clip ends, no walking.
- Shoot (sound 0x30): fewer than 6 enemies and rand%7 != 0 -> two Dips (217) at pos +- RandomVector * 30; else
FireProjectiles mode 8 (10, 0) (eight), Scale 1.4, Variant 3. Then every Dip (QuerySublist type 0xd9) within 150 gets
v += unit away * (150 - d) * .1 * speedMult / friction.
- Death: two Squirts (220) at +- a random unit * 10 (matched).
- Changed: move wander -> hop, choice options [0 x6, 1] (was 1:1), enemy_limit 6 (dips) / 8 (eight), eight at 10
(was 8) scale 1.4, attack retention .8 (was .7), dips spawn_offset 30, spawn_outward 12 (the push at 30).
- Not expressible: the push on older Dips.
## poison_mind: NpcAI::ENTITY_BRAIN 00512110 (301.0). Changed
- State 4 (0x12d branch): velocity *= .8, stateFrame -1 a tick; below 0 or on a grid hit, stateFrame = rand%90 and the
heading = an axis unit turned 45 deg (a random diagonal); velocity += heading * .5 (terminal 2.5).
- Every GetIntervalTicks(7, index % 7): P = Isaac + his velocity * 16u, clamped 20 in; d = pos - P turned 45 deg; if
|d.x| < 20 or |d.y| < 20 (on a diagonal through it), |d| < 200 and not friendly -> state 8, target = unit toward P.
- State 8: friction *.8, velocity += target / friction (net 1.25, terminal 6.25), until a grid collision -> state 4.
- Creep: green 1000.23 scale 1.23 every 12 ticks (24 with 5 or more enemies), also on a third interval when faster
than 3. Grid path 900 under it. Death (not friendly): Game::BombExplosionEffects(pos, 40, ...).
- Pass 1 had given it the Brain's axis-aligned walk and lane charges (the else branch, types 32/279). Changed: move
bounce (.3536 a side under .8: 2.5 along the diagonal), attack: Idle, period 7, line diagonal within 20 lead 8,
range 200, lunge 1.25 under .8 for up to 300 ticks, ends on a wall; creep periods 24 / [[5, 12]], fast_speed 3.
- Not expressible: the rand%90 heading redraws (bounce reflects off walls instead), the random 0-16 lead.
- Port follow-up: engine `bounce_redraw [1, 90]` (diagonal redrawn every 1 + random(90) ticks and on terrain hits) and `bounce_random`.