153 lines
14 KiB
Markdown
153 lines
14 KiB
Markdown
# Boss gaps, third pass (rif/boss-approx-3)
|
|
|
|
What these bosses do beyond boss_approx_2.md, read from the decompile; each says what the port does with it.
|
|
|
|
## hush: NpcAI::ENTITY_HUSH 004bfd30, state 400 (laser looks), Entity_Effect::Update 005d4380 variants 96/101
|
|
- LaserStart finished: LaserLoop, stateFrame -10 - rand%10; per eye null (Eye1, Eye2) an effect 1000.101 spawned at
|
|
Hush's position with _spriteOffset (Entity 0xdc) = the null's frame position, depth offset (0x358) 1000, Timeout
|
|
(0x45c) and 0x460 = -1, parent Hush; sound 0x1a5, screen shake. Every LaserLoop tick each 101's sprite offset is set to
|
|
its null again. In the countdown (stateFrame 60 + rand%120 down): at 10 every 101 gets _dead (0x173) = 1; at 0 every
|
|
1000.96 ground beam gets _dead and Hush plays LaserEnd.
|
|
- Effect 101 (asm 005ea366): parent gone -> Remove; first tick Play("Start"); IsFinished("Start") -> Play("Loop");
|
|
Timeout counts down while > 0; IsPlaying("Loop") and (Timeout == 0 or _dead) -> Play("End"); IsFinished("End") ->
|
|
Remove. So _dead on an effect means "play your End", not removal.
|
|
- Effect 96 (asm 005ea523..): the same Start/Loop/End handling; each tick, if its parent has flags 0x20000100
|
|
(charmed/friendly) it hurts enemies, else each player within (player size + its size) takes TakeDamage(2.0
|
|
[0xbaa630], flags 0, source it, countdown 30). Every 5 ticks (IsFrame(5)) something more (0x67f060, not read).
|
|
- Port: Hush's eye_laser / beam_look held effects (Start, Loop, End; removed when Hush goes), its beam strikes one light
|
|
bolt a tick per beam, radius 30 + 10.
|
|
|
|
## hush_fly: NpcAI::ENTITY_HUSH_FLY 004bf310, its own init (state 0)
|
|
- Every Hush Fly, Hush's or a room's: grid collision 0, state 3, sheet Monster_010_Fly_Hush_1-3 at random, I1 (place)
|
|
= random 0-999, group (Entity_NPC 0xc7c) = the game's frame count (Game +0x264f8, the same counter that turns the
|
|
shapes a degree a tick), V1 = Room::GetCenterPos, I2 bytes 0 and 1 = rand%6 + 1 each, byte 2 = radius 80, health +=
|
|
400 + rand%200. Hush's cast (state 100) spawns, sets collision class 2 and velocity 30 random, calls the fly's
|
|
vtable +0xc (its update: the init above runs) and only then overwrites group, V1, V2 and the I2 bytes: so its armour
|
|
and place are the fly's own.
|
|
- Port: hush_flies_step runs this for every fly (an orbit with shapes) once a tick; spawn_armor gives the armour.
|
|
|
|
## mother: NpcAI::ENTITY_MOTHER 00569170; type 912 variant table (006c4071: index bytes 0x6c497c, jumps 0x6c4964)
|
|
- 912 dispatches by variant: 0 -> ENTITY_MOTHER, 10 -> 0056cd60 (Mother 2), 20 -> NpcAI::ENTITY_ROTTEN_GAPER 004da590
|
|
(Dead Isaac: its `_type == 0x390` branch, friction *.75, velocity.y -1 a tick, 1 in 10 sound 0xa5), 30 -> 00565e00
|
|
(Mother Worm), 100 -> 00566810 (Mother Ball). npc_ai.tsv only shows the first call (ENTITY_MOTHER).
|
|
- State 0 (subtype 0): two effects 1000.140 at (Room TopLeft.x - 80, BottomRight.y) loading
|
|
gfx/backdrop/07x_corpse_bottomwall.anm2 (Idle, one frame, stopped). The first shows layer 0 alone ("floor") with
|
|
LayerState 0x78 BlendMode = (equation 0, rgbSrc 0, rgbDst 2, alphaSrc 1, alphaDst 1): dst * srcColour, a multiply
|
|
(the floor's shade under the wall), 0x35c 0; the second hides layer 0 (walls 1-3). Room descriptor +0x18 = 0, doors
|
|
removed, players teleported to (centre, BottomRight.y - 120).
|
|
- Wrist attack (state 10) on Shoot: 8 worms (i = 0..7) at ShootPos + (0, 60) + 4 dir, dir at 30 + 120 i/7 degrees,
|
|
velocity dir * (6 + 4 rand), target the player, 0xba4 (its weave timer) = 15 + 8i, scale (0xc38) .7 + .2 rand and
|
|
size scaled by it; blood explosions, 5 gibs, sounds 0x284 and 0x278/0x27a.
|
|
- Port: decor (held effect over everything, its multiplied layer converted to a black shade by rebirth_backdrops.py),
|
|
Mother Worm spawns (spawn_at/spawn_velocity/spawn_cone speed_random 4).
|
|
|
|
## mother_worm: 00565e00 (912.30)
|
|
- Init: flags |= 0x2008 (+0x16c), 0x3b0 = 1, flags 0x80100011, collision and grid collision 0, state 3; 6 + rand%3 shots
|
|
(Game::SpawnEx 9.0 at its position, spawner its own spawner) kept in a deque: colour ColorMod at 0xc34cf4 (tint 1,1,1,1,
|
|
colorize 4, 3.5, 3.2, 1), ProjectileFlags 0x2000 (NO_WALL_COLLIDE), FallingAccel (0x418) -0.098, scale (0x420) =
|
|
worm scale * (first: .6 + .2 rand; i > 0: 1.7 - .1 i + .2 rand).
|
|
- Each tick: no shot left -> Remove. Timer 0xba4 counts down while > -100. Spawner alive and not dead: timer > 0: v =
|
|
v + 2 rand (cos r, sin r) + rotate(unit v, cos(FrameCount * .1) * 60 deg), speed (.88 + .12 clamp(t/15)) |v|, at least
|
|
5; else if target and t > -30: v += unit(target - pos); speed (1 + .1 clamp(t/-30)) |v|, at most 14; t <= -60 and out
|
|
of the room (margin -10): Remove. Spawner gone: Remove.
|
|
- Body: its position pushed on a 64-deep trail; each shot's velocity = its place along the trail (10 * scale apart from
|
|
the head back) - its position. Dead (0x173): every shot's ProjectileFlags 0 and _dead.
|
|
|
|
## mother_2: 0056cd60 (912.10)
|
|
- State 3: FindGridPath(target, .2, 900); projectileCooldown -= ticks; at <= 0, 1 in 15 a tick (or below -60): rand&3:
|
|
0 -> 12 JumpUp (sound 0x286, cooldown 240), 1 -> 10 ShootBegin (aim angle in V1.X, 240), 2 -> 9 swipes (sound 0x27d,
|
|
I2 = rand&3 the first wall, 90), 3 -> 8 SpinBegin (sound 0x27c, 90).
|
|
- 8: friction .7; from SpinBegin's Shoot, per tick: every 3 gibs + a blood explosion 70 out; every 4 three arms at
|
|
(stateFrame * 47.52 + 120k) degrees, each a string of 4 shots 60 out (speed 4, growing *1.25, a cos wave sideways;
|
|
every 12th tick 3 shots at 2.8, scale *.7); past 209 SpinEnd -> 3.
|
|
- 9: five swipes (I1 0-4): SwipeLeft/Up/Right/Down by I2; effects 1000.190 (mother tracer) every 80 along the wall
|
|
lined up with Isaac (CalcTargetPosition fmod 80); Warn sets their 0x450 to 2, Shoot to 3 and lunges 10 toward the wall
|
|
(shake 7); next I2 = I2 + 1 or + 3 at random, the fourth I2 + 2; then 3.
|
|
- 10/11: ShootLoop pulls enemies/players/pickups within .9 of its aim (2 / (d^2 * 1e-4 + 1) * .2), drifts toward the
|
|
room centre at most .8, approach_angle to Isaac; every 3 ticks effects 1000.151 and from 31 to 119 shots 280-680 out
|
|
that hover toward it; past 179 ShootEnd; 11 on Shoot: one boss shot at Isaac at 14 (height -23, accel -.08, scale
|
|
.5..1), recoil -15.
|
|
- 12: JumpUp; Shoot: collision off; past 30 ticks placed above the room (x = left + 140 or right - 140 by Isaac's half),
|
|
ChargeLoop at 8 down (state 6: v.y += 4.5 a tick, friction .85, layers fade by distance), past bottom + 400:
|
|
ChargeUpLoop at the mirrored x going up; past top - 400: JumpDown at the room centre (state 7): on Shoot 16 crackwaves
|
|
(1000.72) in a ring 80 out, a ground poof, shake 18.
|
|
- 16 (arriving from Mother): camera focus (pos + (0, 100)), ChargeEnd after 30 ticks.
|
|
|
|
## delirium: NpcAI::ENTITY_DELIRIUM 004a6500, ANM2::LoadDeliriumForm 004a5d10
|
|
- LoadDeliriumForm(variant, reload): optionally reloads the form's anm2 (EntityConfig), then for each layer whose sheet
|
|
path starts "bosses" (and "monsters") rewrites the folder to "Bosses/AfterbirthPlus/DeliriumForms" + the rest (so
|
|
bosses/classic/x.png -> .../DeliriumForms/classic/x.png). Not for type 0x19c (Delirium itself). Repentance bosses carry
|
|
the nodelirium tag (EntityConfig, string at 0xb66af0), so only DeliriumForms/repentance/babyplum.png exists there.
|
|
- After a change (log "Changed Delirium form to %d:%u") it sets its colour: (1, g, b, 1) with g = b = .7 when
|
|
bits 7-14 of _deliriumCycleID are nonzero, else 1; no white offset: the sheets carry the white.
|
|
- Port: become art_suffix "_delirium" (rebirth_art.py writes <key>_delirium.anm2 with the DeliriumForms sheet by name, a
|
|
boss/monster sheet without one whitened grey*.45 + 125); Flash bosses keep the white tint.
|
|
|
|
## hornfel: NpcHelper::hornfel_minecart 004b8190, hornfel_ride_minecart 004b8a30, room controller FUN_004bc460
|
|
- hornfel_minecart (coming out of a rail door; states as small ints in the decompile's `in_ECX[2]._posOffset.x`
|
|
denormals: 7, 6, 14, 10, 11, 3): from state 6, 1 in 8 (when fewer than 2 ...): 2 (3 in rooms > 135 cells) decoys
|
|
(906.1) on carts out of free doors, state 14, rest 30-59; else 1 in 8 with a paired door: state 10, its cart's V2.x
|
|
.1, the door kept (0xbec), laps (0xba6) 6 + rand%3. State 7 -> 11 (ChargeFinish); else state 3, rest 15-29, 1 in 3
|
|
(at most 3 out, Isaac farther than 240) two 819s thrown 6 out at its exit heading +-20 degrees.
|
|
- hornfel_ride_minecart (leaving the floor): in state 10 with laps left: the cart set back at the kept door with its
|
|
rail direction, laps - 1; none left: state 7, tunnel 1 tick, cart V2.x capped 6. Otherwise state 6, 45 ticks.
|
|
- Hornfel_UpdateAI state 10: hornfel_charge plays ChargeLeft/Right/Up/Down by the cart's velocity; cart V2.x += .08 up
|
|
to 30; IsFrame(15) and in the room (margin 20): a bomb (4.0) thrown (FUN_004b90e0) to the free pickup spot nearest
|
|
his position + RandomVector * rand. States 3/14 set the cart's V2.x to 1.2 each tick.
|
|
- NpcAI::ENTITY_MINECART 004ce8a0: with a rider (0x3c0), velocity += unit(heading) * 1.3 * V2.x a tick, friction .8
|
|
(.9 riderless): terminal 5.2 V2.x (6.24 for Hornfel's 1.2). Variant 10 (Isaac's quest cart): V2.x *= 1.02, += .01.
|
|
- Effect 1000.152 (Entity_Effect::Update case 005da269 calls FUN_004bc460): first tick FUN_004b70c0, state 1, timeout
|
|
150 + rand%210; room cleared: FUN_004b78f0 and Remove; while the room's enemy count > 0 and its timeout is out
|
|
(_dead), a free rail door (FUN_004bb350: a 967 door not occupied, not within 60 of Isaac's entry for 30 ticks): one
|
|
of Quakey 823, Danny 820, Faceless 827, Bony 227, Gurgle 87, Fire Place 33, Movable TNT 292 (rand%7) on a minecart
|
|
(GiveMinecart), spawnerType 906; timeout again, halved in rooms of 136+ cells.
|
|
- Port: cart charge / cart passing (rider_step); cart speed 1.56.
|
|
|
|
## siren: NpcAI::ENTITY_SIREN 00591460 (variants), ENTITY_SIREN_main 0058ec70
|
|
- Variant 0 -> ENTITY_SIREN_main; 1 -> her skull (Appear, invisible to hits until Sound; bombed: 7 rock particles
|
|
1000.4, Forgotten Lullaby unlock 0x198 or a trinket); 10 -> the hurled cluster.
|
|
- State 3 (idle): MoveRandomlyBoss; while its counter is under 31, every 10 ticks 1 in ? (or projectileDelay) with
|
|
Isaac within 180 and below her (unit y > .1) and nothing charmed: state 11 slash (5 shots FireProjectiles mode 5 at
|
|
15 from pos + 10 dir, lunge 6 a tick for 4 ticks); past 30 siren_pick.
|
|
- State 12 Recall: on its event (sound 0x32b) spawns 3 - siren_charmed_count() familiars 3.220 at her (FollowParent +
|
|
Shoot in Entity_Familiar::Update, parented to her fake player npc->_sirenPlayerEntity via FUN_0064b920), each with a
|
|
.2-grey blood poof 1000.15; the fake player's flags |= 0x400000, 0x334 = 0, 0x338 = 5. Then HoverStart -> 13.
|
|
- State 13: HoverLoop, FindGridPath(target, .3); its counter += ticks (+ ceil of damage taken); every 30 ticks with
|
|
nothing charmed: HoverEnd -> 3; past 300: SlashLeft/Right -> 5.
|
|
- State 5: on its event 904.10 spawned at her with velocity 10 toward Isaac + his velocity * distance * .1 (target
|
|
kept), parent her, collision 3, grid 0; lunge 6 for 4 ticks. Siren pick Recall weight: clamp(33 * charmed, 33, 100).
|
|
- 904.10: init flags |= 0x2008, 0x44000011; each tick: gone without its Siren; gathers the siren helpers (966) whose
|
|
familiar (child 0x3c4) is charmed and detached from follow; colours them (.6 grey + .7 colorize, 6 ticks); after 15
|
|
ticks a carried familiar out of the room (margin 2) or a grid hit: dead -> ring (FireProjectiles mode 9) of
|
|
clamp(6 * carried, 6, 18) at 8 from its clamped position, shake 5, each helper TakeDamage(1000), fake player's flag
|
|
cleared, Remove.
|
|
- State 16 Revive: Revive clip; on its event health = max (x .2 when the charmed revive was 0x51, Dead Cat).
|
|
- Port: Recall/Hover/hurl attacks, siren_minion (orbit + aimed shot every 30), siren_helper_projectile (wall_death,
|
|
ring of 12).
|
|
|
|
## ultra_greed: NpcAI::ENTITY_ULTRA_GREED 0059edb0 (walk, death), Room::TurnGold 00820ac0, NpcHelper::UltraGreed_Smash 0059e730
|
|
- Coin values (DAT_00b67e34, by 5.20 subtype 1-7): 1, 5, 10, 2, 1, 5, 1 (penny, nickel, dime, double, lucky, sticky,
|
|
golden). Each tick local_148 = the floor coins' total worth.
|
|
- State 4 (walking): its goal is the coin pickup (landed: 0x188 != 0, not _dead) with the least distance^2 / worth,
|
|
else a random spot 180+ away (20 tries); FindGridPath(goal, 1, 900). It still picks every IsFrame(15): the stay-
|
|
walking outcome gets +500 (0x1f4) while local_148 >= 6 (both variants), so it attacks less, not never.
|
|
- State 9000 Death: CreateBling; on its event sounds 0x1af/0x1ab, collision off, shadow 0, 100 gold particles (0x5f)
|
|
in a ring, a penny (5.20.1, velocity (0, -3)), Room::TurnGold(); clip finished -> 9001 Final (looping, the statue).
|
|
- Room::TurnGold: floor and wall ColorMods (room +0x72a4, +0x72d0) = tint 1 + colorize (5, 3, 0, .8); every grid
|
|
entity: a poop (14) not golden (variant 3) is respawned golden (SpawnGridEntityDesc), the rest colorized (3, 1.8, 0, .8).
|
|
- UltraGreed_Smash: gold particles 30, shockwave (room +0x70fc), BombExplosionEffects 60 (scale 1.8), particles; in
|
|
states 700/16: WeightedOutcomePicker outcome 0 (weight 100) or 1 (70; state 16 forces 0): 0 -> rand%n + 1 draws,
|
|
1 -> n draws, n = the doors queried; each draw a random door (again or not) set to 8 when it is 3, its
|
|
UltraDoor_Opposite to 9 when 3. State 710: one random door + its opposite, forced (0x410 = 0).
|
|
- Port: coin_hunt attacking/by_worth, choice floor_coins [6, 500], heal x worth; backdrop_show shop_gold (a tinted copy)
|
|
and ultra_greed(ier)_statue (Final, born after 121 ticks); signal_random [100, 70].
|
|
|
|
## laser numbers: Game::BombTearflagEffects 007009a0 (brimstone bomb), Mother's Transition laser
|
|
- A brimstone bomb (bomb 4.15, or the brimstone tear flag): an explosion 1000.1 (shake 12 for 4.15) as the parent,
|
|
four Entity_Laser::ShootAngle(variant 1 thick red, its position, 90 k degrees, timeout 30 (0x1e), no offset); damage
|
|
(vtable +0x40) 8, or the player's damage x 8 when a player owns it; no max distance (to the walls).
|
|
- entities2.xml laser radii: 7.1 thick red 16 (damage 11), 7.2 thin 5, 7.6 giant red 70 (damage 36), 7.11 thicker 32,
|
|
7.13 Beast 110. Mother's Transition laser: variant 6 from ShootPos (Transition's ShootPos null: (0, -60) px from frame
|
|
36 on) + (0, 10), 90 degrees, 47 ticks, max distance 1000, tint (2, 2.2, 1).
|
|
- Port: bomb_beams duration 30, width 32; death_clear beam width 140, player_reach 80.
|