7.8 KiB
7.8 KiB
Group g1 notes (pass 5, 2026-10-24)
NpcAI::ENTITY_GAPER 00508f40 serves types 10, 208 (0xd0), 252 (0xfc), 257 (0x101), 284 (0x11c), 302 (0x12e) and 807 (no branch of its own); type 10 variant 3 goes to NpcAI::ENTITY_ROTTEN_GAPER 004da590 first. Shared facts:
- FindGridPath(CalcTargetPosition, speed in field 0xc34, 900 (100 for Stoney, -1 for rotten subtype 2), 1) every tick outside the attack state. Speeds: default .6; 208/257 .3 (208.2 .33); 302.10 .48; 252 .9; variant 1 or 284 .498; variant 2 .548; a gaper whose Head overlay frame is past 0 .72. Evade (flags 0x1000800): EvadeTarget, friction *.8.
- field 0xb40 is the pathfinder's
_hasDirectPath(0x414 + 0x72c in REPENTOGON's NPCAI_Pathfinder). It gates the groan (rand%3, PlaySound cooldown 40), Cyclopia's shot and the Head overlay (variant 0, not 208/257/302). - Entity friction 0x36c: the attack state multiplies it by .4 each tick (no pathing then).
- Death (health > -25, then Random()&1 == 0, i.e. 1 in 2): 10.x -> 11 (rand%3 == 0 and not variant 2: 11.1); 208.1 -> Morph 210.0 (Blubber) at full health; 208.2 spawns 33.10 at its spot (and still dies); 257.0 -> Morph 208.0.
fatty: NpcAI::ENTITY_GAPER 00508f40 (208.0). Changed
- State 4: stateFrame counts up to 100; attack when hostile, dist^2 < 40000 (200), rand%120 == 0 and stateFrame > 99 (100 ticks after spawn and after each attack). No line-of-sight test. AttackHori (flipX by velocity) if |vx| > |vy| and moving, else AttackVert; sound 0xa7. Shoot (frame 21): Game::ButterBeanFart(pos, 120, npc, 1, 0).
- Changed:
sightremoved (period 1, one_in 120, range 200, cooldown 100, retention .4, gas radius 120 already matched). - Not expressed: the pose is picked by its velocity in Rep, by Isaac's side here; first 100 ticks without an attack.
pale_fatty: NpcAI::ENTITY_GAPER 00508f40 (208.1). Changed
- As fatty, plus FireProjectiles(pos, (8, 6), mode 9) = ring of 6 at speed 8 on Shoot (matched).
- Death: 1 in 2 (Random()&1), not past -25 overkill, Morph to 210.0 at max health. transformation one_in 3 -> 2;
sightremoved.
flaming_fatty: NpcAI::ENTITY_GAPER 00508f40 (208.2). Changed
- Init: field 0xb8 = 1, overlay "Fire" (its fire layer at the FirePos null). Path speed .33 (0x3ea8f5c3).
- Same attack gate as fatty (200, 1 in 120, 100 ticks). Shoot: ButterBeanFart radius 120, then Game::Spawn(33, 10) at its position (a moveable fireplace, NpcHelper::fireplace_moveable_update 006d0ec0).
- Death: 1 in 2, not past -25 overkill: spawns 33.10 where it dies.
- Changed: move chase .3 / retention .8 -> path .33 / 1; attack range 90 / period 7 / 1 in 4 -> 200 / 1 / 1 in 120, cooldown 100, retention .5 -> .4, gas radius 85 -> 120; the fire_jet bolts replaced by a moveable_fireplace spawn (spawn_offset 0); death_spawn moveable_fireplace one_in 2, overkill 25 added.
conjoined_fatty: NpcAI::ENTITY_GAPER 00508f40 (257.0). Changed (partly)
- Same attack gate as fatty. "Target" (frame 15): aim = normalize(Isaac - pos), any angle. From "Shoot" (21) until "Stop" (28), each tick n = 0, 1, 2...: green creep 1000.23 at pos + aim * 25n, scale .9 + .07n, value 0x45c/0x460 = 15; a blood explosion and a 1000.7 splat beside it while in the room. First puddle plays sounds 0xd4 / 0x25.
- Death: 1 in 2 (not past -25) Morph to 208.0.
- Changed: one_in 40 -> 120, cooldown 100 added, retention .5 -> .4, creep 1 puddle a frame (was 2), reach 140 -> 150, scale .9 growing .07; transformation one_in 3 -> 2.
- Not expressible: the creep line aimed at Isaac at any angle and ordered outward (the data keeps two axis attacks gated
by a row/column line within 60, puddles at a random share along; the vertical one picks up or down at random).
See the parent's engine_g1.md proposal (creep
aimed+stepped). - Port follow-up: engine creep
aimed+stepped: one attack (no row/column line gates), along [175, 0] = 8 puddles 25 apart from Shoot (21) to Stop (28) toward where Isaac stood as it began (Rep aims at Target, frame 15).
blue_conjoined_fatty: NpcAI::ENTITY_GAPER 00508f40 (257.1). Changed
- Same attack gate as fatty. Shoot: sound 0xd5, FireProjectiles(pos, (Isaac - pos) resized 7, mode 0) with BulletFlags |= 3 (SMART homing + EXPLODE) and Scale 1.5. No death morph.
- Changed: range 300 -> 200, one_in 90 -> 120 (draw_first dropped), cooldown 100 added, retention .7 -> .4; the Flash green lob -> aimed shot speed 7, homing, scale 1.5, still, landing explosion.
nulls: NpcAI::ENTITY_GAPER 00508f40 (252.0). Skipped (matches)
- Path speed .9 (0x3f666667) matches. Init writes (.1, 0, 0, 1 ...) into the colour block at 0x1e4 (its tint/fade start); the fade itself is not in this routine (not read). The Head overlay rule does not apply to type 252's speed.
wraith: NpcAI::ENTITY_GAPER 00508f40 (807.0). Skipped (matches)
- No branch of its own: path .6; its Head clip has one frame so the gaper .72 speed-up never happens. Matches.
cyclopia: NpcAI::ENTITY_GAPER 00508f40 (284.0). Changed
- Path .498. Red creep 1000.22 when Entity::GetIntervalTicks(7, offset index % 7) fires: timeout 20, scale .2 + rand*.3.
- State 4 with cooldown < 1, direct path (0xb40), rand%30 == 0 and dist^2 < 40000: cooldown 60 (from the start; the Attack overlay is 15 frames, so 45 idle), state 8, overlay "Attack". Shoot (frame 3): FireProjectiles (Isaac - pos) resized 7, mode 0. Friction *.4 while attacking.
- Changed: creep period 8 / scale .6 -> 7 / .35 (the mean), serial; attack sight added (the direct-path test).
- Not expressed: the creep's 20-tick life, its random scale.
stoney: NpcAI::ENTITY_GAPER 00508f40 (302.0). Changed
- Init: collision class 2, invulnerable (flags 1 / 8), i1 = rand%60 + 90. State 4 (path .6, range arg 100): i1 counts down; at 0 state 16 "Pant", i1 = ((rand&3) + 2) * 21 = 42/63/84/105 ticks with velocity zeroed each tick, then state 4 with i1 = rand%60 + 90. No enemies left (GetAliveEnemyCount < 1): state 18 (death), collision off.
- Changed: the pant length repeat 1 + random(4) -> ticks 42, ticks_random [4, 21]; first_cooldown [90, 60] (the first walk is also 90-149 ticks). Cooldown 90 + random 60 (drawn once) already matched.
cross_stoney (302.10), not in the group's list, read in passing
- Path .48; ShootAndRotate1/2 alternating (i2), Shoot: FireProjectiles from pos + vel*2, (10, 0), mode 6 (+1 on ShootAndRotate2: cardinal then diagonal), HeightModifier -15, FallingAccelModifier .3, sound 0x106.
rotten_gaper_10_3_*: NpcAI::ENTITY_ROTTEN_GAPER 004da590 (10.3.1-5). Changed
- Subtype 0 Morphs to subtype (seed-derived) % 5 + 1 at init (already ported by pass 5's choice).
- Speed = .6 * table[subtype], table at 0x00babec0: {1, 1.2, 1.5, .8, .9, 1.9} -> .72 / .9 / .48 / .54 / 1.14.
- Subtype 2: FindGridPath range argument -1 instead of 900.
- Subtype 3: while Isaac (target) is farther than 80, it latches onto a nearby rotten gaper of another subtype (QueryRadius, i1 = rand%15 + 30 ticks) and paths to it instead. i2 counts up; past 60 a 1 in 8 tick spawns 853.0 (Small Maggot) while fewer than 6 of its group (QueryNPCsGroup) live, i2 back to 0. On a 1 in 20 tick with GetIntervalTicks(4) a cosmetic 1000.63 (Worm).
- Subtype 5: speed times .75 + .25 * clamp((dist - 80) / 100, 0, 1). With CheckLine clear: aims at Isaac + 60 px toward its own velocity turned rand*40-20 degrees, velocity += speed * dir, friction *.9. Without a line: FindGridPath.
- Changed: 10.3.1 chase .6 -> path .72; 10.3.2 ground_chaser .9 -> scripted path .9; 10.3.4 ground_chaser .6 -> scripted path .54; 10.3.3 the spawn attack now keeps pathing (attack chase .48, retention 1); 10.3.5 hover .9 -> 1.14 (retention .9 kept).
- Not expressible: 10.3.3's partner following and group cap (the cap counts all Small Maggots); 10.3.5's near slowdown, its 60-px side aim and the FindGridPath fallback without a line; the worm effect.