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

3.8 KiB

Spawnfric notes (pass 9, 2026-10-26)

Audits (b) spawn/shot attacks without a working release and (c) frame-count-gated friction, over every Rebirth monster record of isaac-classic (branch rif/monster-fidelity-12). Engine notes: isaac-classic scratch mf12/engine_spawnfric.md.

Audit b: release frames

  • Engine (scripted_enemy.cpp scripted_frame_apply / is_release_branched): an attack's spawn fires on its release frame unless it has spawn_on events or spawn_period; shots without their own on fire only on the release. A missing release loads as frame 0, which never comes (clip frames count from 1). hp_spawn attacks spawn without one.
  • Scripted over all 1549 Rebirth attacks (bosses skipped): no spawn or shot attack lacks a release now (Level 2 Gusher was the last, fixed in pass 8); no integer release past its clip's end; every directional_poses attack has its release / shot / spawn event on the same frame in all its clips.
  • Spawn tick against the decompile for the 49 non-boss spawn attacks: those read in passes 5-8 cite the event they spawn on and match; the uncited ones (drowned_hive, baby_long_legs, small_baby_long_legs, black_maw, holy_mulligan, tainted_mulligan, mama_fly, gutted_fatty, pustule, level_2_horf, grilled_gyro, dump) are the pass-9 uncited groups'.

portal: NpcAI::ENTITY_PORTAL 00543720 (306.0). Changed

  • State 3, I2 < 1: own live spawns (SpawnerEntity == it) below 3 (4 for variant 1) -> state 8, I2 = 90 + rand%60; else I2 = 60 + rand%30. I2 counts down every tick in every state (00544123).
  • State 8, variant 0: spawns at once on the next update (no clip event), shockwave, sound 0x1c, I1--, back to state 3. The record played the 58-frame Idle and spawned on its Spawn event (frame 30): ~30 ticks late, ~58 longer cycle.
  • Now release 1, ticks 1, the emerge sound on frame 1; cooldown 90 + [60, 1] once and capped [60, 30] kept.

lil_portal_306_1: NpcAI::ENTITY_PORTAL 00543720 (306.1). Changed

  • Decision as above (cap 4): I2 = 60 + rand%30, SpawnOverlay (15 frames) + sound 0xa2; the spawn on the overlay's Shoot (frame 14), velocity (0, 4) turned rand * 40 - 20 deg; state 3 once the overlay stops. I2 runs during the clip, ours only after: cooldown 60 -> 45, capped_cooldown [60, 30] -> [45, 30].
  • Not expressed: capped, Rep plays no overlay (ours plays the clip with nothing spawned).

Audit c: frame-gated friction

  • Searched the dump for friction writes inside blocks (or goto spans) gated by frameCount % / &, IsFrame or GetIntervalTicks. Real hits: NpcAI::ENTITY_FLY 00506bd0 (frameCount % 3 == 2: edge nudges .06, v += 2 V1 / f, f *= .6; asm 00508da5) and NpcAI::ENTITY_GURDY_JR 0051d300 (boss: state 8 f *= .97 on GetIntervalTicks(5)). False positives: FindGridPath probes saving and restoring friction under IsFrame(5) (Gutted Fatty 004e0dd0, Gyro 004ff620, Bloaty 00563da0) or GetIntervalTicks(2) (Level 2 Charger 004e38c0); attack-check gotos (Knight 005135d0, Death's Head 00532cf0).
  • ENTITY_FLY serves 13, 14, 18, 61 (but 61.4 Mama Fly and 61.5/6 Bulb/Bloodfly branch off first), 80, 214, 249, 819. Every one of them gets the third-tick brake. Targeted types (18, 61, 80, 214, 249, 819) steer on GetIntervalTicks(2) ticks; 13/14 have their target cleared and take rand%5 pulls of .7.
  • Rebirth records: flying_chaser users (soul_sucker, ink, tainted_sucker, level_2_fly, full_fly, fly_bomb) model the phase exactly (damping period 3 phase 2, steer period 2): match. ink's earlier "steers every tick" left item is wrong (it steers every 2nd tick like the rest). super_pooter fixed in pass 8.

tainted_pooter: NpcAI::ENTITY_FLY 00506bd0 (14.2). Changed

  • Same pooter flight as super_pooter: retention .6 (read as every tick) -> .84 (.6^(1/3)), hover .14 -> .12, hover_scatter .25 -> .35 (super_pooter's simulated values), attack retention .48 -> .67 (.8 * .843). Cooldown 49 (63 from start, 14-frame clip) kept.