112 lines
9.9 KiB
Markdown
112 lines
9.9 KiB
Markdown
# Group g7 notes (pass 5, 2026-10-24)
|
|
|
|
Common Rebirth bosses ported in pass 1 without notes. `./decompile.sh 0x<addr>` reprints the routine. Friction
|
|
0x36c is reset from entities2 each tick, so an AI's `friction *= f` is the record's retention. FireProjectiles modes:
|
|
3 = three at 0 / +-24 deg, 8 = eight-way, 9 = ring (vel.x speed, vel.y count). FireBossProjectiles(n, target, traj)
|
|
(006ccdd0): aimed = dir*7 + random*3.5, fall accel .32 + .1*traj, fall speed 5 - rand*24 - traj, scale .9/1.3 + rand*.05.
|
|
ProjectileParams +0x24 Acceleration with BulletFlags 0x8000000 (ACCELERATE) multiplies velocity by it each tick.
|
|
|
|
## polycephalus: NpcAI::ENTITY_POLYCEPHALUS 00489ca0 (269.0). Changed
|
|
- Variant 1 (The Pile) branches off at the top. Type 269 vs 401 is tested as float bit patterns (3.76949e-43 / 5.61921e-43).
|
|
- State 3 Idle: per tick rand%30 -> state 4 (GoUnder, sound 0x42). State 4 i1=2 underground: shrinks over 50 ticks,
|
|
FindGridPath(CalcTargetPosition + RandomVector * rand*100, clamped 20, speed 1.0), collision off; surfaces on
|
|
dist^2 < 22500 and rand%15 (or confused/feared). Friction *.8 every tick.
|
|
- Pick (269): state = rand&1 | 8 (subtype 1 always 8); rand%5 and room count < 3 (Room+0x12c0 + Room+0x12c4; with
|
|
flag 0x10000000 CountRelatedEntities(244 / 58) < 3) and subtype != 2 -> state 10.
|
|
- ComeUp then: 8 Attack1 on Shoot (frame 11): target Isaac + vel*10; subtype 1 mode 9 (10, 6); else 50% mode 3 at 10,
|
|
50% mode 8 at 10. 9 Attack2: FireBossProjectiles(1, Isaac + vel*10, 1.0) every tick after Shoot until StopShooting
|
|
(frames 5..25). 10 Attack3 Shoot: one 244 (subtype 1: 58) at pos + RandomVector*60. End: state 3.
|
|
- Subtype 2 spawns its twin at init (40 px off) unless its spawner is 269.
|
|
- Port: surfacing period 1 / one_in 15 / range 150; ComeUp per colour with next lists [3,4,5,5] (spread, eight, stream)
|
|
and next_roll .2 to the summon (when others_below 2); Attack2 a boss_volley stream (on Shoot until StopShooting,
|
|
aim_lead 10, volley fall_acceleration .42, fall_base 4); summon on Attack3 (the Summon clip is the Stain's); Idle
|
|
ticks 1 + random 60 (mean of the 1-in-30 roll), then GoUnder. Not expressible: the jittered underground target.
|
|
|
|
## the_stain: NpcAI::ENTITY_POLYCEPHALUS 00489ca0 (401.0). Changed
|
|
- Same surfacing. Pick: rand&1 ? 9 : 8 (subtype 1 always 8); (rand%5 or subtype 1) and count < 3 (flag: Chargers 23,
|
|
or Round Worms 244 for subtype 1) -> 13. State 8/13 rise with ComeUp, 9 with ComeUp2.
|
|
- 8 Attack1 Shoot: 17 effects 1000.22 (red creep) at x = pos.x + 120 t, t = -1..1 step .125, scale |t|*.56 + .3
|
|
(t = 0: 1.84), timeout 70; sound 0x107.
|
|
- 9: i1 1 Attack2Shooting (loops 4 frames, Shoot on frame 0) for 90 ticks: mode 9 (6, 3), BulletFlags ACCELERATE,
|
|
Acceleration .985, CircleAngle stateFrame*.118, FallingSpeedModifier -2, FallingAccelModifier -.06; i1 2 Attack2End
|
|
until its clip and 31 ticks; i1 3 Attack2Start (sound 0x1a3); i1 4 Attack2Shooting 90 ticks of mode 9 (3.2, 4),
|
|
Acceleration 1.025, angle stateFrame*.12; i1 5 Attack2End; i1 6 GoUnder2 -> state 4 (no Idle).
|
|
- 13 Summon on "Summon": 2 Chargers (subtype 1: Round Worms) at FindFreePickupSpawnPosition(pos, 60).
|
|
- 8 and 13 end in state 3 (Idle, 1 in 30 a tick) then GoUnder.
|
|
- Port: ComeUp (one_in 25) / ComeUp2 (one_in 38) split the 1-in-15 roll .6/.4; spirals (fan of 3 / 4, spread .472 /
|
|
.48 per volley, speed_scale .985 / 1.025, fall_velocity -5, fall_acceleration -.06); creep count 17, scale .7 along
|
|
+-120. Not expressible: the creep's even spacing and graded scale.
|
|
|
|
## rag_man: NpcAI::ENTITY_RAG_MAN 00493200 (405.0). Changed
|
|
- Per tick: heads = live 405.1 it spawned; owned = its Raglings (246), remains = those in state 16. Head allowance
|
|
local_fc = 0 at full health, 1 hurt, 2 < 75%, 3 < 55%, 4 < 35%; live allowance local_130 = 1 hurt, 2 < 60%
|
|
(subtype 1: 4 and 4). i1 counts ticks while owned - remains < local_130, else 0.
|
|
- State 4: FindGridPath(target, 1.05, 900) under .8; target Isaac, or nearest live Ragling + 60 along Isaac->Ragling,
|
|
or (i1 > 119 and below allowance) the nearest remains. Walk clips by velocity.
|
|
- Decisions: (i1 >= 120 or red) and owned < local_fc and live < local_130 -> 13 head throw; i1 >= 120 and within 70 of
|
|
remains -> 14 revive; black rand%100 == 0 -> 14; else IsFrame(15), rand%100 < 20, a test on Isaac's absolute
|
|
coordinates (|y| < |x|, looks like a bug), cooldown < 1, not red -> 8.
|
|
- 13 HeadThrowLeft/Right (side from Isaac, away from walls within 80): Spawn event spawns 405.1 at pos +-57 x with
|
|
velocity (+-10, 0); then state 3 with cooldown 40 + rand%20.
|
|
- 3 headless: friction .75, MoveRandomly(0) then velocity *1.1; cooldown out (not red): one homing (SMART) shot along
|
|
its velocity at 5 (FallingSpeed -5, FallingAccel .3), cooldown 40 + rand%20; HeadPop once no head lives.
|
|
- 8 Shooting1/3/5: rand%3, -1 above 2/3 health, +1 below 1/3; each Shoot an aimed SMART shot at 7 from pos +-16 x;
|
|
cooldown 90 after.
|
|
- 14 Rebirth Revive event: black FireBossProjectiles(3, random player, traj 10); else remains within 100 -> state 2,
|
|
live Raglings within 100 +25% max health; itself +5% max.
|
|
- Head 405.1: rolls 60 + rand*45 ticks, speed 10 easing to 2 over i1-75..i1-15, homing .15, friction .8; then a
|
|
Ragling 246.1 (red .66 health; black 1-2 Spiders 85 instead).
|
|
- Port: head throws in 4 hp bands (when hp_share_below/above + type_count of Raglings below 1..4), period 15 one_in 8
|
|
(~120 ticks), spawn_velocity [10, 0] with spawn_facing; red period 1 below 4. Headless 60-105 ticks, retention .75.
|
|
Shooting period 15, cooldown 90, Shooting1/3/5 weighted by hp band. Revive radius 100. Black's spray a boss_volley.
|
|
|
|
## little_horn: NpcAI::ENTITY_LITTLE_HORN 00490680 (404.0). Changed
|
|
- Friction *.8 a tick; own bombs (spawner type 404) deal it 25% (damage list scan at the top).
|
|
- State 3: v1 random (len 1.2*rand), redrawn every 50 ticks; target pos + v1, plus (190-d)*.03 away from each player
|
|
within 190 and (130-d)*.03 from each entity of a sublist within 130; clamped, plus .03 * (pos clamped 100 in - pos)
|
|
doubled on its major axis; accel min(.8, |target - pos|) / friction.
|
|
- Teleport: a player (or listed entity) within 120, or IsFrame(15) rand%100 <= 14; only with i1 (cooldown) < 1:
|
|
state 6, i2 = 1; rand%100 < 20 (50 at health <= 30%) -> state 16, i2 = 3 + rand%3. Teleport clip end: state 16 and
|
|
not black drops a bomb (variant 3, orange 8) where it was; it moves to a random free spot >= 160 from there and
|
|
>= 120 from players (30 tries); Return; i2--, at 0 state 3 and i1 = 75.
|
|
- Attack roll IsFrame(15) rand%100 < 25: n1 (first sublist, the Dark Balls): 0 -> 60% Shoot, else (or n1 < 3) 20%
|
|
Shoot; black and n1 < 2 -> Shoot; n2 (second sublist, the pitfalls): 0 -> 50%, 1 -> 10% the pit summon (plain only,
|
|
NpcHelper::big_horn_is_any_hole_busy false, no flag 0x10000000) else bombs: rand%100 < 75 (or orange) Bomb, else
|
|
MegaBomb; black nothing.
|
|
- 8 Shoot: plain/black spawn 404.1 velocity (0, 4), recoil vy -= 3.5/f; orange throws a bomb (4.8) at Isaac at 15
|
|
from 5 px ahead. 9/10 Bomb/MegaBomb: Bomb event spawns bomb variant 3 / 4 (orange 8) at FindFreePickupSpawnPosition
|
|
(Isaac's target, 40). 13/14 Summon: pitfall 291 variant 0 on itself (Isaac < 140) or variant 2, 1 (50%), 3 (40%) or
|
|
5 (10%) of them at 8.75 in a ring starting at Isaac's heading, timeout 240.
|
|
- Port: one weighted choice every tick (Rep's per-15-tick odds / 15 out of 100000, idle the rest), forced single
|
|
teleport within 120; chains of 3-5 (next [-1, x, x], [-1, y]); Dark Ball on Shoot, pitfalls on Summon (swapped
|
|
before); flee speed .55. Not expressible: the random drift, the 75-tick teleport-only cooldown, hot bombs.
|
|
|
|
## dark_ball: NpcAI::ENTITY_LITTLE_HORN 00490680 (404.1). Changed
|
|
- Subtype 0: friction *.8; velocity *= 1.1765 then += .5 * dir to target / friction: v' = .941 v + .5 dir. Pushed off
|
|
entities within 100 (.003 and .01 a pixel). Sprite offset -20, grid collision walls only. Subtype 1: velocity
|
|
dir*10. Spawns three 1000.88 trail effects a tick.
|
|
- Port: scripted hover .5 / retention .941, mass 20 (entities2).
|
|
|
|
## dark_one: NpcAI::ENTITY_DARK_ONE 0045d7d0 (267.0). Changed
|
|
- Friction = .8 (set), MoveRandomlyBoss(0) (drift .625 / .8 by the pass-2 convention). Clamped inside the room.
|
|
- IsFrame(60) and (rand&3) <= 2 and not dark (Game+0x26518 <= 0) -> 16 Darkness; at its end Game+0x2651c = 1,
|
|
Game+0x26514 = 180.
|
|
- Else IsFrame(10): rand%6 -> 8 Attack1 (Shoot: mode 9 (9, 12), HeightModifier -17, FallingSpeedModifier 1.3).
|
|
Else (|dy| < 20 and IsFrame(10) rand&1) or (dark and IsFrame(10) rand%5) -> 10 Charge (sound 0x77, FlipX to Isaac,
|
|
target = its position). Else |dx| < 40, Isaac below, IsFrame(10) rand&1 -> 9 Attack2: Shoot event
|
|
Entity_Laser::ShootAngle(1, pos + (0, 5), 90, timeout 10, offset (0, -20)).
|
|
- 10: from the Charge event vx = +-22 every tick, vy += clamp(dy / 100, +-.4) (net); past the right side + 100 it
|
|
wraps to the left - 100 and back, stateFrame counting wraps; ends after two wraps once past its start x.
|
|
- Port: darkness period 60 when not_one_in 4, 180 ticks; Attack1 period 10 one_in 6 at 9; Charge row 20, one_in 2,
|
|
three Charge Shake crossings at 22; laser lifetime 10, column 40 above. Not expressible: wrap-round, steering.
|
|
|
|
## mega_fatty: NpcAI::ENTITY_MEGA_FATTY 00460780 (264.0). Partial (mostly matched)
|
|
- Idle needs stateFrame > 30, then rand%15 (or rand%5 while field 0x14 > 0, just hurt). Weights a = 30 suck (brown 0),
|
|
b = 30 fart (50 within 120), c = 20 jump (40 beyond 240); r = rand % (3a + 2b + c): r < a suck (16), < a+b fart
|
|
(10), < a+b+c jump (6: target Isaac + vel*10, i1 = rand&1 leap/stomp), else nothing.
|
|
- Puke per tick from Shoot to StopShooting: mode 0 at RandomVector*rand*(1 + 2 clamp((frame-10)/15)) + delta*.025 +
|
|
Isaac vel*.6, HeightModifier -300, FallingSpeed -40, FallingAccel 2, variant 3, scale .5 + rand; red: IsFrame(3)
|
|
mode 9 (5, 4) at pos - (0, 8), CircleAngle frames*.05, scale 1.5, FallingSpeed 1.5, HeightModifier -40.
|
|
- Already matched in the data (85 / 63 / 142 / 254). Changed: the any-range jumps gated within 240; brown's rates
|
|
(fart 36 / 45, far jumps 75, nearer 150).
|