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

112 lines
9.4 KiB
Markdown

# Group i2 notes (pass 7, 2026-10-25)
Army Fly, Ring Fly, Drip, Faceless, Candler, Wall Hugger, Ink, Bulb and Mr. Red Maw, re-read for isaac-classic branch
rif/monster-fidelity-10 (their pass-2 reads are in pass2_misc2.md). Speed convention as pass6_engine.md: the scripted
brake runs before the push, so the engine speed is the net push per tick (Rep push / f_call * f_tick). Engine
proposals: the worktree's MF/engine_i2.md.
## army_fly: NpcAI::ENTITY_ARMYFLY 0054ad80 (868.0). Changed
- friction *.8 every tick. State 0: links behind another army fly within 42 (sqrt) that has no child (a tail), not in
its own line; the last one found in the list wins. State 4 plays Fly.
- Followers: Entity_NPC::FollowParentSegment 006d7df0 with (40, 8): the point 40 px of arc behind the leader along
its position history (a point pushed once it moved 3 px, 64 kept), reached at most 8 px a tick (velocity = step /
friction). A follower whose leader is confused or frozen (flags 0x220) unlinks and becomes a head.
- Head: i1 = a cardinal way (the way away from its child, or random). Each tick v += rotate(way, sin(age * pi / 10)
* 20 deg) * 1.6 (40 deg and * .6 when confused): terminal 6.4 under the .8. A wall cell (collision 4) 40 px ahead
turns it left or right (rand & 1, the open side preferred). Turn timer i2 = 10 at state 0; due with Isaac within
600: rand%3 == 0 each tick picks the best of left/straight/right by dot with Isaac's offset (not a wall); a new way
sets i2 = 8 + rand%15. Beyond 600 or confused: rand%5 == 0 turns left/right at random, i2 = 8 + rand%15.
- Rejoin: IsFrame(4) and rand & 7 == 0, a head touching (QueryRadius 8) another group's tail links behind it.
- Death with a child: the child heads the rest (PathFinder::Reset, group index handed down): the line splits at the
dead link only.
- Port: link_distance 600 -> 42 (the default; room rows of flies are 40 apart, separate rows now form separate
lines), releasing removed (it broke the whole chain into single heads), follow_index 3 / head_follow_index 2 ->
follow_index 6 (trail points ~6.4 px apart at full speed: ~40 px), snap_distance 8, chase_speed 1 -> 2.12 (the
engine's pathfind push 1.66 a under the .83 calm scale, braked .8 by the chain: terminal 3.02 a = 6.4).
- Not expressible: the cardinal runs with their turn timer and wobble (pathfinding stand-in), rejoining, arc-length
spacing, the confusion unlink. Skatole (item 9) morphs it into a Fly (13).
## ring_fly: NpcAI::ENTITY_RING_OF_FLIES 0053bae0 (222.0). Changed
- Every ring fly's parent is the room's first ring fly (QuerySublist), so all share one ring of n members. Slot i:
angle 2 pi i / n + rot, place = centre + (sin, cos) * r. The leader: rot -= .0942478 * avg speedMult a tick
(clockwise on screen, y down), r a triangle 40..70 at .5 a tick (starting 40, rising), centre (its targetPosition,
starting at its spawn) moved 2 * speedMult px a tick along the unit from it to Isaac (CalcTargetPosition).
- Each fly: velocity = place - pos when within 10 px, else 6 toward it; friction 1, grid collision none.
- Subtype 1: health above its max drains 4 a tick.
- Port: spin -.0942478 -> +.0942478 (the engine's place is (cos, sin) * r: a growing angle turns clockwise), ring 10 +
ring_step 30 -> ring 32 (one ring, rooms hold up to 14), drift .03 -> .01 (the engine's centre moves ~drift *
distance a tick: 2 px at 200, was 6). speed .3 / retention .7 kept: s = 1 - r gives Rep's one-tick lag.
- Not expressible: the constant-speed centre, the 6 px cap, the radius wave (r held at its mean 55).
## drip: NpcAI::ENTITY_DIP 00534860 (870.0). Changed
- Idle (state 3): friction *.9; rand%10 a tick hops: (5 + 3 rand) / friction along Isaac's direction on rand%3 == 0,
else a random one (fear: away; minus 8 * the room's water current). State 4 Move: friction *.95 only (its branch
jumps past the .9), at frame 10 rand%3 -> state 16 (next tick hops again from Idle), else back to idle at the end.
- Port: attack retention .855 -> .95. one_in 10, impulse 5 + 3, lunge_aimed_one_in 3, rehop 1 in 3 matched.
- Not expressible: the water current push.
## faceless: NpcAI::ENTITY_FACELESS 004faad0 (827.0). Changed
- Unaware (stateFrame 0): PathFinder::MoveRandomly(0) at friction 1, then friction *.8: net push .4. Woken for good
by health < max or Isaac within 80: FindGridPath(Isaac, .6, 900, 1) with no brake. The Attack is an overlay
(state 8): it walks on while it plays.
- Attack: per tick random_float <= .008 + .08 sqrt(V1.x) (V1.x += pending damage, -.11 a tick); Shoot: FireProjectiles
mode 9 (7, 6) with CircleAngle 0 (FireProjectiles advances the angle before each shot: 60..360, one shot due right),
effect 1000.11, sound 0xb2, V1.x -= 7.
- Death with health > -25, 1 in 2: Morph(11, rand%3 == 0): Gusher, Pacer one time in three, full health.
- Port: move drift .625 -> hop .4 (MoveRandomly is the engine's hop, and its .8 comes after the call); ring angle 0;
the woken phase's attack chase {speed .6} so it keeps pathing while it shoots.
- Not expressible: the anger term (proposal 4), the 1/3 Pacer (transformation alternate takes an int type), walking
through the unaware Attack.
## candler: NpcAI::ENTITY_CANDLER 004e4970 (833.0). Changed
- State 0: cooldown 15 + rand%30 + rand%30, velocity a random unit. Every tick (not confused): friction *.8 and
+-1 / f per axis by its velocity's signs (y + when vy >= .1): net 1 a tick, terminal 5 per axis. Clamped into the room.
- Idle: cooldown -1 a tick; at 0 (not feared/confused/charmed) and NpcHelper::candler_is_free_cell 004e4870 (its cell
collision 0 and not a teleporter) and fewer than (W-2)(H-2)/5 (18) fireplaces 33.10 and none within 20 px
(squared 400): Attack.
- Attack (state 8): friction *.8 more (.64), no push. Shoot (frame 12 of 38): state back to 3 while the clip plays on,
velocity = 20 along a random diagonal (12.8 after the tick's .64), the fire 33.10 spawned on a free cell (sound
0x1d7, size * .666 at scale <= 1), cooldown 15 + rand%30 + rand%30.
- Fear: + clamp((180 - d) * .02, 0, 1) / f away from Isaac a tick. Confusion: MoveRandomly.
- Port: speed 1.25 -> 1 (net push), bounce_random, first_cooldown [15, 59]; attack retention .8 with lunge_brake .8
(.64 before Shoot, .8 after), impulse 20 -> 12.8; cooldown 15 + 0..58 from the clip's end -> 0 + 0..36 (Rep's
cooldown starts at Shoot, 26 frames earlier: its mean max(0, T - 26) is 18.3).
- Not expressible: the 20 px fireplace clearance (proposal 5), the diagonal-only dash, the bounce push resuming
inside the clip after Shoot.
## wall_hugger: NpcAI::ENTITY_GUTS 005153b0 (218.0). Skipped (matches)
- No-Spikes while age < 30 frames, the room clear, or anyone holds trinket 0x97, else Spikes. Init: invincible,
flags. Push 3 * aiFloat / f under friction *.6 (net 3), cleared rooms *.9 and grid class 5.
- Data speed 3 / .6, No-Spikes repeat 14 (30 ticks), cleared No-Spikes already match.
## ink: NpcAI::ENTITY_FLY 00506bd0 (61.3). Skipped (matches)
- Sucker steering (type 0x3d: threshold 15): min((d - 15) * .08, 1.2) toward Isaac with dy * .5, every tick; drift
V1 = (V1 + RandomVector * .6) * .4 on frame % 4 == 1 (as pass2 / pass6). Init colour.
- Death: FireProjectiles mode 7 (four diagonals) at 8 (10 in hard mode) in black (DAT_00c34e54), and black creep
1000.26 with SpriteScale (4, 4), timeout 450.
- Data (flying_chaser numbers, death_volley diagonal 8, black slowing death_creep) matches; left: steering every tick
(proposal 8), the creep's Rep scale (the engine's puddle scales Flash art) and timeout, hard-mode speed.
## bulb: NpcAI::ENTITY_BULB 0054bca0 (61.5, from ENTITY_FLY). Skipped (needs a feature)
- Charged = any of the target player's four active slots holds charge (a max-charge-1 item counts 1); charmed, a
forced target or variant 6 count as charged. Skatole: never charged.
- Full dart model in proposal 6 (buzz V1 1..6, timers 10 + rand%60 / 6 + rand%24 / 5 + rand%20 / 30 + rand%50,
uncharged 4 + 2 a tick to 12, charged 8 + 8 a tick to 20, side turns 60 / 75 deg, friction .85).
- The data's wander .5 / .85 uncharged and lane phase charged stay as stand-ins; the charge drain on touch is not in
this AI.
## mr_red_maw: NpcAI::ENTITY_MRMAW 00517de0 (35.2 body; head 35.3, neck 35.10). Changed
- State 0 (bodies 0/2): spawns head variant + 1 (its child = the body) and 8 neck links 35.10 (V1.x = index).
- Body, head docked (state 4): FindGridPath(Isaac, .8, 900, 1) (Mr. Maw .6), no brake; the head is moved with it
(head velocity = body pos + vel - head pos). Head out (body state 8): friction *.7, FindGridPath(.4) (.3).
- Head: body cooldown (0xba0) -1 a tick, floored -30. Docked: IsFrame(4), not feared/confused/charmed, Isaac + his
velocity * 3 within 130 (squared 16900) and CheckLine mode 2 -> velocity 14 toward that point, sound 0xe2,
cooldown 30, body state 8. Out: docks within 5 once cooldown < 15; else pull (1.4 - .7 clamp((cd + 30) / 45, 0, 1))
toward the body, then friction *(.9 + .0028 cd).
- rand%1000 == 0 a tick (or the head dying): the body Morphs into a Gusher 11.0 at full health; the head Morphs into
Maw 26.0 / Red Maw 26.1 at full health (a dying red head first fires mode 6 at 8, sound 0x92). A body whose head
is gone becomes a Gusher too.
- Port: tether lead 1.5 -> 3, free_one_in 500 -> 1000 (no variant difference). range 130, speed 14, pull .7,
retention .9 + .0028, return 5 / 15, walk_retention .7, period 4, fire 30, path .8 matched.
- Not expressible: the body pathfinding at .4 while the head is out, the pull ramp, the -30 floor (proposal 7).