90 lines
7.7 KiB
Markdown
90 lines
7.7 KiB
Markdown
# Group g4 notes (pass 5, 2026-10-24)
|
|
|
|
Death's Heads, wall creeps, round worms and the Gurgling, read for isaac-classic branch rif/monster-fidelity-8. These
|
|
records were ported in fidelity pass 1 with no notes. Numbers are from the decompile; speed convention as in
|
|
pass4_00.md (the engine brakes first, then pushes: engine push = Repentance push / friction * friction).
|
|
|
|
## deaths_head: NpcAI::ENTITY_DEATHS_HEAD 00532cf0 (212.0). Changed
|
|
- Init: state 4, grid collision 3; variants other than 1 and 4 get flags 1 / hi 8 and _isInvicible (touch-only,
|
|
initially_invulnerable). Velocity = a unit vector at rand * 2pi (a random diagonal start).
|
|
- Move (state 4): friction *= .9, then velocity += +-.45 / friction per axis by the sign of that axis (zero counts as
|
|
positive) = net .45 a tick under .9. Speed .5 -> **.45** (retention .9 kept); .5 under the engine's brake-first order
|
|
was a terminal of 5 instead of 4.5 per axis.
|
|
- Room clear: when GetAliveEnemyCount() < 1 (unless Room+0x7229 is set with Room+0x11ec >= 9: unread) and
|
|
not variant 1: state 0x12 (death), sound 0x13c, collision 0. Matches cleared {after 1, Death, dies}.
|
|
- Not expressed: the random start heading (the engine starts at rest, so the first push is always up-left: see
|
|
engine_g4 bounce_start). Cursed (212.2) is pass3_c, Brimstone/Redskull (212.3/.4) pass4_00.
|
|
- Port follow-up: engine `bounce_random` now starts every move-bounce Death's Head (212.0-212.4, 286.0) on a random unit heading, as Rep's init.
|
|
|
|
## dank_deaths_head: NpcAI::ENTITY_DEATHS_HEAD 00532cf0 (212.1). Changed
|
|
- Same move: speed .5 -> **.45**. Variant 1 is not made invulnerable and is excluded from the room-clear death; it
|
|
shuts doors (entities2 has no shutdoors="false"). Matches otherwise.
|
|
|
|
## flesh_deaths_head: NpcAI::ENTITY_DEATHS_HEAD 00532cf0 (286.0). Changed
|
|
- Same move: speed .5 -> **.45**. Type 0x11e is hurtable (no invulnerable flags), shutdoors false, dies on room clear.
|
|
- Death (dead, or state 0x12, unless flag 0x1000000): FireProjectiles mode 9 (7, 6) = **6 shots at 7** (was 8), with
|
|
ProjectileParams CircleAngle (+0x18) = rand * 360 - 180: the ring is turned at random. The random turn is not
|
|
expressible (engine_g4 death_volley angle_random).
|
|
- Port follow-up: the ring's random turn was already there: the port's circular volley (cirf) starts at random(pi).
|
|
|
|
## wall_creep / rage_creep / blind_creep: NpcAI::ENTITY_WALL_CREEP 0053c0d0 (240.0, 241.0, 242.0)
|
|
- Init: snaps to the nearest room wall (inner bounds +-5), I1 = 1 top, 2 bottom, 3 left, 4 right; V1 = (5, 0) or
|
|
(0, 5) along the wall. Velocity is set, not added (no friction): along the wall v = V1 toward the target x (y for
|
|
side walls) when more than 10 px off, else 0. Speeds: 240 **5**, 241 **2.5** (x .5), 242 **1.25** (x .25),
|
|
0x130 (304, The Thing) 5; the soy/ultra soy variants (240.1/.3) x .7. All three records match (speed 5 / 2.5 / 1.25,
|
|
retention 0). Side walls aim at Isaac's y + 5 (240), - 10 (241), + 15 (others): not expressed.
|
|
- Blind Creep (0xf2) never targets Isaac: it walks V1 * .25 and bounces at the wall ends (wall_wander), and it is the
|
|
only one that attacks off camera.
|
|
- Attack gate (all three): stateFrame counts down in state 4 only; at < 0, on camera (except 242), not
|
|
charmed/confused (flags 0x1000800) -> state 8, "Attack", stateFrame = **15 + rand % 45** (drawn as the attack
|
|
starts, counted after it ends). No alignment test for 240/241/242 (the 25 px test is 0x130's). Initial stateFrame 0:
|
|
it attacks on its first tick on camera. Data cooldown 15, cooldown_random [45, 1], cooldown_once matches.
|
|
- Attack state: velocity = targetPosition - pos with target = its spot at the attack start (it stands still).
|
|
- Wall Creep 240.0 Shoot (anm2 Attack 18 frames, Shoot on 10, 13, 16): FireProjectiles mode 0, velocity 8 straight out
|
|
of its wall (offsets (0,+-4..12) per wall). Rag Creep 240.2 adds BulletFlags 1 (SMART) and HomingStrength .8. Matches
|
|
(outward aimed, speed 8, one per Shoot).
|
|
- Rage Creep 241.0: at the attack start a following effect 1000.198 (charge glow) at its facing; on Shoot (frame 16 of
|
|
74) Entity_Laser::ShootAngle(variant 1 thick red, angle 90/-90/0/180 by wall, timeout **45**), laser +0x358 = 1000.
|
|
Variant 1 (split rage creep) fires two beams at +-30 degrees offset 2 px either side. Our package has a LaserEnd
|
|
event on 59 (a 43-tick beam). Changed: laser to LaserEnd -> **lifetime 45** from Shoot.
|
|
- Blind Creep 242.0 Shoot (Attack 18 frames, Shoot on 10): FireProjectiles mode **2** at 8 straight out = the centre
|
|
shot plus two at 0.9 x speed turned +-16 degrees. Changed: count 3 / spread .25 -> **fan [[1,0],[.8649,+-.2484]]**.
|
|
After every Shoot it reverses its walk on rand & 1 == 0 (not expressed).
|
|
|
|
## round_worm: NpcAI::ENTITY_ROUND_WORM 0053e4a0 (244.0). Skipped (matches)
|
|
- It never idles: state 0 -> 6 (DigIn, 17 frames) -> 4 underground (invisible, collision 0) -> 8 DigOut (61 frames,
|
|
collision 4) -> 6 ... While underground, every tick (stateFrame < 1) it draws room centre + RandomVector * (60 + 250
|
|
rand), clamped 20, nearest free cell, and takes it on rand & 1 == 0 when the nearest player is 100-1000 px away.
|
|
Data: DigIn period 1 one_in 1, teleport mode far (130-1000 from Isaac): the closest built-in (pass2 tube_worm
|
|
proposed a "room" mode).
|
|
- Shoot (frame 38): target = Isaac + his velocity * 10 (the lead shortened to the wall trace - 8 when longer than 10
|
|
px), clamped 20; FireProjectiles mode 0 at **10** toward it, only with CheckLine(pos, target, 3). Matches (aimed 10,
|
|
aim_lead 10, sight).
|
|
|
|
## night_crawler: NpcAI::ENTITY_ROUND_WORM 0053e4a0 (255.0). Changed
|
|
- Same never-idle dig loop: DigIn period 4 / one_in 10 / sight -> **period 1, no roll, no sight**.
|
|
- Shoot (frame 14 of DigOut): FireProjectiles mode 6 (cardinal four) at **10** with BulletFlags 0x800 = **ORBIT_CW**
|
|
and TargetPosition = its own position: the four shots spiral clockwise out about where it surfaced. No line test.
|
|
Changed: curve .05 -> **orbit clockwise** (the existing Rebirth ORBIT_CW shot).
|
|
|
|
## ulcer: NpcAI::ENTITY_ROUND_WORM 0053e4a0 (289.0). Changed
|
|
- Same never-idle dig loop: DigIn one_in 25 -> **period 1, no roll**; teleport given mode **far** like its family.
|
|
- Shoot (frame 42 of 91), only while on camera: line = CheckLine(pos, Isaac + lead, 3). If (rand % 100 < 75 or no line)
|
|
and GetAliveEnemyCount() < **7**: spawn a Dart Fly 256.0 (flag 4 cleared) on itself. Otherwise
|
|
FireBossProjectiles(1, Isaac's position, trajectory 8) with +0x420 = 1: velocity 7 toward him plus a random up to
|
|
3.5, fall accel .32 + .8, fall speed 5 - 8 - rand * 24.
|
|
- Changed: the shot aimed 8 / fall -3 / .05 -> **boss_volley count 1, aim_speed 7, aimed_spread 3.5, fall_base -3,
|
|
fall_acceleration 1.12** (roundy's mapping), still gated enemies_above 6; spawn_limits 6 -> **7**. The 1 in 4 shot
|
|
instead of a fly while it sees Isaac is not expressible (engine_g4 spawn_or_shot).
|
|
|
|
## gurgling: NpcAI::ENTITY_MAGGOT 0052db50 (237.0). Changed
|
|
- Walk and charge as gurgling_boss (pass4_00): MoveRandomlyAxisAligned .6 under .85 (matches roam .6 / .85); charge on
|
|
IsFrame(4, index), within 20 on an axis, dist < 200, Isaac + vel * rand * 16; AddVelocity(axis * 1.3) under f *= .9.
|
|
Changed: lunge 1.3 -> **1.17** (the pass4 net push; terminal 11.7 instead of 13). The prediction lead is not
|
|
expressed in this attack form.
|
|
- Stop (state 3, f *= .85): on Shoot (frame 7 of 20) variant 0 plays 0xb2 and fires FireProjectiles mode 9 (7, 6) =
|
|
**6 shots at 7** (was 7.5).
|
|
- Creep: only while speed^2 > 9 (faster than 3, so mostly charging), every GetIntervalTicks(5): red creep 1000.22 at
|
|
sprite scale 1.23, tinted by its champion colour. Changed: creep period 6 -> **period 5, min_speed 3, scale 1.23**.
|
|
Every 5 ticks above that speed it also MakeSplat(.2 + .39 rand) (cosmetic, not ported).
|