notes: pass 7 monster fidelity (engine leftovers, groups i1-i7, push-order audit a1)

This commit is contained in:
shweet committed 2026-10-25 21:38:17 -04:00
1 parent 00dacd9193
commit 7ea12c236e
10 files changed
+1138

No files matched your search

+139
View File
@@ -0,0 +1,139 @@
# Group i4 notes (pass 7, 2026-10-25)
Tier-b records first read in pass 2 (pass2_misc3.md), re-read for isaac-classic branch rif/monster-fidelity-10.
Speed convention as pass4_00.md / pass6_engine.md: the scripted brake runs before the move, so an
AddVelocity-style `v += x / f` maps to x, a plain `v += x` to x * f. Engine proposals: MF/engine_i4.md.
## grub: NpcAI::ENTITY_LARRYJR 0046a0f0 (239.0). Changed
- Head walk: MoveRandomlyAxisAligned(2), f *= .8 at the end of the AI (roam 2 / chain retention .8: matches).
- Charge: stateFrame counts walking ticks to 51 (0x33); then each tick (no IsFrame) Isaac + vel * rand * 16 within 20
of it on an axis, CheckLine mode 0 -> sound 0x73, TargetPosition = ToCardinal(delta), i1 = 1, stateFrame 0.
Charging: f *= .9, v += 3.7 * dir / f, then the closing f *= .8: v' = .72 v + 2.96 (terminal 10.6), until
collidesWithGrid (i1 = 0). The engine charge step is v * .9 + a, then the chain's .8: acceleration 4.625 -> **3.7**.
- Health: each joined segment = config hp + max(parent, child) (a shared pool), equalised every tick to the chain's
lowest (health - pendingDamage) by damaging the others (shared_health).
- Death: the first segment to die collects every segment's position, kills them all (i2 = 1), shuffles the positions
and spawns min(n, 2 + rand%4): per position on a free cell (GetGridCollision 0), rand%3 -> Charger 23 / Spitty 31 /
Maggot 21. Not expressible: ours death_spawns one per segment (engine_i4 #3).
## strider: NpcAI::ENTITY_STRIDER 0055c810 (814.0). Changed
- Idle: each tick rand&3 == 0, then (not confused) rand&1 == 0 and CheckLine(mode 3) -> walk at Isaac (V2 = 0: the
unit to Isaac is re-taken each tick), else rand%3 == 0 -> V2 = RandomVector. Odds: at Isaac 1/8 with a line;
random 1/24 with a line, 1/12 without.
- Walk<Dir> (20 frames, Row at 6): on Row v += dir * (6 + 3 rand); f *= .95 every tick; back to idle at the clip's end.
- Changed: three attacks: at Isaac sight one_in 8, random sight one_in **21** (7/8 * 1/21 = 1/24), random **unseen**
one_in **12**; impulse 6 -> **5.7**, spread 3 -> **2.85** (x .95).
- Not expressed: the heading re-taken at Row (ours at the clip start); the tilt angle eased .2 a tick (render only).
## wrinkly_baby: NpcAI::ENTITY_WRINKLY_BABY 0054fa80 (38.3). Changed
- Init: i2 = 5 + rand%10 (first_cooldown [5, 10] matches); i2 counts down every tick.
- Idle (state 4): f *= .7, v += .33 / f toward CalcTargetPosition; within 120 of it (14400) the target is moved out to
120 along its side. Hover .471 -> **.33**.
- Roll: i2 <= 0, not feared/charmed/confused, Entity::IsHostileTo (not a line test), rand&3 == 0: d < 120 -> Attack
(SetFrameFloat 3: from frame 3), 120 <= d < 280 -> DashStart. Both **sight removed** (pass 2 read 006d7d60 as a
sight test; it is IsHostileTo).
- DashStart: f *= .7; at its end TargetPosition = Isaac, V1 = unit, Dash<Dir>. Dash: f *= .85, v += 3.75 V1 (no / f:
net 3.19), velocity projected onto V1 and the side offset to the aim line taken off; ends within 20 along V1 ->
Attack. Lunge 3.75 -> **3.1875**.
- Attack: f *= .7; Shoot (11): FireProjectiles mode 2, Spread .6, at 8 (10 hard), from pos + 4 dir -> fan
[1, 0], [.8649, +-.149], fall_velocity -4 (was count 3 spread .171); then i2 = 15 + rand%30 (matches).
- Not expressible: the 120 standoff (engine_i4 #6), Attack from frame 3 when rolled (#7), hard-mode speed 10.
## black_globins_body: NpcAI::ENTITY_GUSHER 0050af90 (280.0). Changed
- Init: ProjectileCooldown 20 + rand%20. Move: f *= .75 then PathFinder::MoveRandomly 007e6300 (pass 2 read it as
MoveRandomlyBoss): drift .667 -> **hop .5** / .75. Walk anims by AnimWalkFrame (.1).
- The Spiders clip is a looping overlay shown all the time, never an attack pose.
- Cooldown <= 0 and GetAliveEnemyCount < 5: ThrowSpider(pos, target 0 -> FindFreePickupSpawnPosition(pos, 100),
height -30), sound 0xb5, blood poof, cooldown ((rand&1) + 1) * 90 (matches). Spawn -> **thrown spider shot**
(far radius 100).
- Splat on the interval ticks at .2 + .3 rand (matches). Not expressible: Spiders as an overlay.
## mole: NpcAI::ENTITY_MOLE 004fdf80 (829.0). Changed
- Underground (state 4): with CheckLine(mode 0) clear, f *= .8 and v += .8 / f toward Isaac + V2 * dist * .4 rand (V2 =
his velocity, sampled on IsFrame(30)); the orbit offset there is always 0 (its radius is clamped to <= 0). Else
FindGridPath(.8, 499, 1). Move chase -> **hover .8 / .8 + hover_blind_path**.
- Surfaces: rand%10 == 0 and (d < 90 or (stateFrame > 90 and d < 200)), stateFrame counting underground ticks since
the last DigOut; snapped to its cell centre, DigOut (DigOut2 in darkness). Added a second DigOut: range_min 90,
range 200, rested 90 after Jump, gated age_at_least 90.
- DigOut: collision back on at Shoot; after the clip, rand%10 a tick -> Shoot: DigOut **ticks 18 + [19, 1], held**.
- Shoot: FireProjectiles mode 2 at 8 toward Isaac, Spread .4 -> fan [1, 0], [.8649, +-.0994], fall -4 (was 3 at .3).
- Jump: 10 tries (1 in 4 CalcTargetPosition, else a random 90 px), FindFreeTilePosition, pathable, HasPathToPos,
< 120, farthest kept; poop grid (state 125 or 250) on the old cell when it moved; JumpBack when the target is
above. Moving: share += .04 a tick, f *= .4, v = (target - pos) * share / f. Shoot2: collision off, underground.
- Not expressible: the lead on the clear-line push, the jump target choice and its ease (glide 90 kept), JumpBack.
## dragon_fly: NpcAI::ENTITY_BOOMFLY 0050f280 (25.3). Skipped (matches)
- Flight as every Boom Fly: f *= .9, +-.45 / f per axis by the velocity's sign (bouncing_fly .45 / .9).
- Pass 2's "a fire shot every tick" is the _dead branch: on death (no flag 0x1000000) one still FireProjectiles mode 0,
Scale 2, FallingAccel 1, FallingSpeed 0, flags 1 << 35 FIRE_WAVE (1 << 36 FIRE_WAVE_X for subtype 1): the shot
lands at once and starts the cardinal fire wave (the death_effects bolts).
## bone_fly: NpcAI::ENTITY_BOOMFLY 0050f280 (25.4). Changed
- Flight as above: bounce retention .693 -> **.9** (terminal 4.5 per axis, as Rep).
- IsFrame(3): Isaac + vel * 16 rand clamped 20 into the room; |dx| or |dy| < 20 to it, < 200, CheckLine(3, 999) ->
Attack, f *= .8 more (attack retention **.72**). Shoot: mode 0 at 10 toward Isaac, projectile variant 1 ->
**still**.
- Death: FireProjectiles mode 9 (9, 3) (10 hard), CircleAngle = the cardinal toward Isaac: death_volley 7 -> **9**.
- Not expressible: the random 16-tick lead of the alignment test, the cardinal-snapped ring angle.
## flesh_maiden: NpcAI::ENTITY_FLESH_MAIDEN 00502980. Partial (data matches, engine note)
- f *= .7. Hop (state 3): a = 110 + 20 rand, b = 110 + 20 rand; aim Isaac + vel * .1 * dist; d >= 1.33 a: landing
a dir + b (dir turned i1 * 90 deg), else sqrt(a^2 + b^2) dir; control point .75 of the way plus the hop vector
turned 90 deg, on the side away from Isaac; SwingRight when landing x >= x; i1 = +-1 from InitSeed & 1, flipped.
- State 4: p += .035, posOffset.y = 9 - 36 (p - .5)^2, angle and radius about the control point eased by
(1 - cos(pi p)) / 2, velocity = curve point - pos; a grid hit clears the target and sets p >= .8; p > 1 -> state 3.
- The swing move holds all of it. Left: Rep keeps .7 of that velocity (it trails its curve), ours none (engine_i4 #4).
## crackle: NpcAI::ENTITY_GURGLE 0051aaa0 (87.1). Changed
- Walk FindGridPath(.6, 0, 1), no friction of its own: move chase -> **path .6 / 1**.
- Attack: each tick rand%60 == 0, then Isaac within 130 (16900), no line test; f *= .7 while attacking (matches).
- Shoot: FireBossProjectiles(1, Isaac, traj 10) (006ccdd0: velocity 7 unit + random angle * 3.5 rand, FallingAccel
1.32, FallingSpeed -5 - 24 rand), scale 1.6, flag 1 << 35 FIRE_WAVE; then FallingAccel -= .6, velocity *= .55,
FallingSpeed = .7 fs - 3. Shot 5.5 / -8 / .6 -> **3.85, aim_scatter .5, fall [-23.3, -6.5], accel .72** (lands
60-140 px out).
## swarm: NpcAI::ENTITY_SWARM 00540df0 (281.0). Changed (partly)
- State 0: no parent -> 4 more spawned at pos + 10 * a random unit, parented to it (each room cell = 5 flies).
- The leader's TargetPosition moves 5 a tick along unit(CalcTargetPosition - its own pos) (never stops: it leads the
fly by ~42 px and the fly runs through Isaac and back); children read the leader's. Each tick v += V1 (last tick's),
V1 = (point - pos) * .03 + (cos, sin)(frame * +-5 + index * 25 deg) * .8 rand; leaders' points repel within 100
((1 - d/100) * .5); QueryRadius(50, enemies): every one with index >= its own pushes both +-(1 - d/50) * .75; f *= .8.
- Changed: hover .6 -> **1.25** (net pull at the ~42 px lead; terminal 5 as the point's speed). Separation (.06 within
50, the .015 / px push net of .8) kept.
- Not expressible: the 4-fly brood (engine_i4 #1), the rotating circle term (#2), the lagging shared point.
## nest: NpcAI::ENTITY_HIVE 0050c370 (205.0). Changed
- Hostile: EvadeTarget(CalcTargetPosition), else MoveRandomly; f *= .8. V1.x <= 0 and 4 + rand%5 <= alive enemies ->
V1.x += 20 + rand%50. Evading: V1.x counts down; at 0: Isaac >= 300 (Euclidean) -> 3; no CheckLine(Isaac, it, 2)
-> 7; else HeadAttack overlay, V1.x = 75 + 55 + rand%20 (130-149, cooldown 140 kept).
- Shoot: Game::Spawn spider 85.0 at its own position, zero velocity -> cough speed 7 -> **0**.
- Death (health > -20): 1 - championRegenCount of big spider 94.0 / trite 29.1 (rand&1): matches.
- Not expressible: the Euclidean 300 (cough range is per axis), the 130 + random(20) cooldown.
## soy_creep: NpcAI::ENTITY_WALL_CREEP 0053c0d0 (240.1). Changed
- Walk: velocity = V1 (5 along its wall) * .7 while more than 10 off Isaac's line: wall .4 / .8 -> **3.5 / 0**.
- Attack: StateFrame < 0 (15 + rand%45, set at the start, counted only in state 4), on camera, no alignment;
pinned (velocity = target - pos). AttackStart's Shoot (10) sets ProjectileCooldown 90; each tick it counts down and
on odd counts fires (45 shots, one per 2 ticks): FireProjectiles mode 0 at 8 straight out, Scale .15 + .15 rand,
HeightModifier +12, FallingSpeedModifier 2 (rand - .5), FallingAccel -.12, variant 4, launch jittered
(rand - .5) * 4 along the wall, a 1000.80 poof; at 0 AttackEnd, then state 4.
- Changed: AttackStart shots from Shoot, burst 6 every 2 (3); AttackLoop 84 ticks, period-2 burst (42); scale .5 ->
[.15, .3], fall [-4, -2], accel -.12, still.
- Not expressible: the on-camera gate, HeightModifier, the launch jitter.
## scarred_double_vis: NpcAI::ENTITY_VIS 0052c720 (39.3). Skipped (matches)
- MoveRandomlyAxisAligned(.7), f *= .8; IsFrame(3), not confused, |dx| or |dy| < 20, d < 400, on camera ->
V1 = ToCardinal, state 9, Attack04<Dir> (Attack02 on the Rebirth sheet); Shoot: Entity_Laser::ShootAngle(1,
pos + 6 V1) along V1, -V1 and both perpendiculars, timeout 3000 (-10 aiming up).
- The routine makes no splat: the record's walking splatter (period 5) is not from it (left alone).
## cursed_globin: NpcAI::ENTITY_GLOBIN 0050e4d0 (24.3). Partial (matches what ground_chaser holds)
- Walk FindGridPath(.75) (subtype > 0: .65 + .25 RandomFloat(InitSeed)), f *= .97; splat rand%10 at .2 + .5 rand.
ReGen: f *= .7 (variant 1 alone retreats .5 / f within 200).
- Death while walking (no flag 0x200000): RandomInt(100) on its InitSeed > min(99, 15 subtype) (25 in room type 5)
-> split: health = max = max(1, .6 max), subtype + 1, invulnerable 2 ticks (i1 counted in the aiCallPhase 1 pass),
ReGen from frame (4 - subtype) * 10, and a copy (same health and subtype, state 3, ReGen at that frame) pushed
apart at 4 a tick along the perpendicular of its velocity (random unit when still). The roll failing: alone at .6.
Killed during ReGen: splits on the roll (from frame 40), else dies.
- Ours: acceleration .75, recovery 20 (= .6 x 33), retention .7, splatter: match. Not expressible: the split chain,
the shrinking health, the skipped ReGen frames, the subtype speed (engine_i4 #5).