# bosses4: Clog, Big Horn (+ holes), Singe (+ ball), Bumbino ## clog (NpcAI::ENTITY_CLOG 004a12f0) Checked: weights (40/Drip short of five; spin 20/Drip, 1 below three Drips or while its 90-count cooldown runs, which counts down every 2nd tick = 180 ticks; bullet hell / fart 30 or 1); Drip spit (10 out, +-45 deg, 5-10); spin 96 ticks, tangent 0.8 / inward 0.4 x min(t/15, 1.5); bullet hell mode 9 (4 shots, CircleAngle v1.x), 4 or 6 speed by |v1.y| (10 or 25 deg a volley); fart lines 120 deg apart at a random turn. All of these already match. Changed: - Spin attacks 2 and 5: `aura.all = true`. The whirlpool loop moves entity types 1, 10-999, **4 (bombs) and 5 (pickups)** when grounded. Our `all` + `grounded` moves pickups and bombs and still spares tears and shots (isFlying = true for those in entities_push_apply). Not expressible (proposed features): - **Volley count**: shots fire when stateFrame % 6 == 0 for stateFrame 1..90 (15 volleys), then BulletHellEnd. BulletHellLoop is 12 frames with two Shoots, so whole passes give 16. Proposal: `attacks[]/loop/ticks` (int): the attack hands over to `next` once it has played this many ticks, even with passes left. Clog: 90. - **Spiral start**: on the pick, v1.x = random 0-360 deg. Proposal: `shots[]/spiral_random_start` (bool): when the attack starts, state.spiral = random 0..2pi. Today the angle carries on from the last volley. - **Fall**: ProjectileParams.FallingAccelModifier = -0.1 (slow) / -0.05 (fast). `shots[]/fall_acceleration` maps onto extraFallAcceleration (it adds to the base, which is the same thing), but the loader's minimum of 0 rejects negative values. Proposal: change its minimum to SCRIPTED_MIN, the same as `volley/fall_acceleration`. Then set attacks 8/9 to -0.1 and 10/11 to -0.05. Also BulletFlags 0x2000 (NO_WALL_COLLIDE) + ChangeFlags 0 after ChangeTimeout 30, which matches over_terrain 30, and Variant 3 (puke). - Fart lines (1000.143) and their Corny Poops: the first two lines get subtype 1 while fewer than 3 (QueryNPCsType 0x60) exist. The effect's own code is unread. Unchanged. Corrected comment, after "Approximations:": `16 volleys (Rebirth 15), the spirals start where the last left off (Rebirth: a random turn), the shots' lighter fall (FallingAccel -0.1 slow, -0.05 fast), the fart lines' own spacing and push (their effect's code unread) and their Corny Poops (up to two, while fewer than three), and the whirlpool's ripples are left out.` ## big_horn + holes (NpcAI::ENTITY_BIG_HORN 00453140; variant 1 = holes, subtype = role) What the decompile shows: - Holes: count = 2 + rand&1, +2 in big rooms (shape > 7). Only the **first two** get a hand: roll % 100 < 50 slap (subtype 1), < 90 throw (3), else bombs (5). For the first hole only, roll % 10 == 0 with the cell 80 below in the room and fewer than two Little Horns gives a Little Horn hand (7). The second hole adds +1 (even subtypes). Further holes are **empty** (subtype 0): open, wait about 30 ticks counting Isaac's bombs that fall in, then 1 bomb -> state 9 (thrown back), 2+ -> state 10, 0 -> close. Our list weights (9/8/2/1 of 20) are close to 45/40/10/5 for the first hole. The third hole should be an empty one. - Hidden 106 ticks (0x6a) ✓. Big hole: Room::GetRandomPosition + a free-position test (size*0.45, 1.15) that avoids only holes, Little Horns / Dark Balls (0x194) and bombs, **not Isaac**. Ours uses teleport mode "far". There is no "random anywhere" mode to switch to, so it is left as is. - Pop up: if room bottom - y <= size, no spit. Roll < 35 Charge2, 35-39 Charge3, else Charge (60/35/5 ✓). Charge: (5,5), x = -5 when Isaac is strictly left, subtype 0 (homing). Charge2: (15,7) and (-15,7), bouncing. Charge3: (5,5) and (15,7) homing (x never flipped), (-15,7) **bouncing** (index > 1). Each spawns at pos + velocity * 2, size x1.5. Idle 15 ticks then PopDown ✓. - Slap hand: waits **0 or 30 ticks** (rand&1 -> i2 = 30) after the hole opens, then HandSlap. Between Move and Stop it moves 3 a tick toward a random player, re-aimed every tick. The Slam null capsule gives everything in it +5 velocity away from the hand, 1 damage to players and **25 to other entities**. - Throw hand: one bomb, variant 3 troll (70%), 4 mega troll (10%), 8 hot / 16 in a flooded room (20%). Troll fuse 35-44. It is placed 45 ahead toward Isaac at 15 a tick, height -24, fall velocity -4. - Bombs hand: 3 troll bombs at -80/0/+80 deg about the aim, 12 a tick, from 36 ahead, fall velocity -3..-5, fuse 35-44. - Little Horn hand: one Dark Ball (0x194.1) per Shoot event (3 of them) at 10 a tick, heading 90 - (n-2)*30 deg for n = 1, 2, 3 = **120, 90, 60 deg**, spawned 10 out along it. - When Big Horn dies, a Little Horn hand (subtype 7/8) that is not exploding leaves a real Little Horn (0x194.0) at its spot. Changed: - big_horn attack 3 (Charge2): `spawn_at [[30,14],[-30,14]]`. Attack 4 (Charge3): `spawn_at [[10,10],[30,14],[-30,14]]`. Before, the default spawn_offset put them 20 out at random. - big_horn_slap_hole attack 1: `hitbox.push = 5`. Not expressible (proposed features): - `attacks[]/spawn_cycle` (bool): spawn types are taken in order (i % size), not at random. Charge3: ["dark_ball", "dark_ball", "dark_ball_bouncing"]. - `attacks[]/spawn_velocity_facing` (bool): vx is negated when Isaac is strictly left of the actor. Charge: spawn_velocity [5,5] (replacing spawn_speed 7.07 aimed), spawn_at [10,10]. - `attacks[]/spawn_velocity_by_release` (bool): spawn_velocity and spawn_at are indexed by the number of releases (spawn_on frames) so far in this attack, not by the spawn's index within one release. Little Horn hand: spawn_velocity [[-5,8.66],[0,10],[5,8.66]], spawn_at [[-5,8.66],[0,10],[5,8.66]]. - `attacks[]/wait` {ticks, one_in}: before the attack starts it holds the previous pose's last frame for `ticks`, on a 1-in-one_in roll. Slap hand attack 1: {ticks: 30, one_in: 2}. - `attacks[]/bomb_throw` {speed, ahead, height, lift, fuse: [min, max], variants: [{kind, weight}], spread_degrees}: live bombs launched from the actor toward Isaac, not dropped at him. Throw hand: speed 15, ahead 45, height -24, lift 4, fuse [35,44], troll 70 / super troll 10 / hot 20. Bombs hand: count 3, spread 80, speed 12, ahead 36, lift 3-5, troll, fuse [35,44]. - An empty-hole record (Big Horn's third and later holes): opens, swallows bombs that land in it for about 30 ticks, throws them back. This needs a new record and bomb-capture logic. Also: the big-room +2 holes (a room-shape gate on spawn_count), the slam's 25 damage to enemies, and "random spot, not far" for the big hole. - The Little Horn left behind: `death_spawn` {pool: little_horn} on big_horn_little_horn_hole would do it, **if** a scripted `leave` removal does not run death effects. In enemy_death_effects.cpp it looks like any !isActive enemy runs them, so a normal leave would spawn one too. The lead should check that before adding it. Corrected comment, after "Approximations:": `the bombs are plain (Rebirth: troll, 10% super troll, 20% hot or, flooded, sad) and land on Isaac rather than thrown from the hand; Big Horn's third hole holds a hand (Rebirth: an empty one), and no hole swallows and returns Isaac's bombs, nor does a bomb kicked in stun him (dizzy); the slap's 0 or 30 tick wait, the Little Horn a Little Horn hand leaves behind if he dies, Charge3's third ball bouncing and the big rooms' two more holes are left out; the spit's single ball heads at Isaac (Rebirth: down to his side at (5, 5)), the big hole opens far from Isaac (Rebirth: anywhere free) and the hand's Dark Balls leave straight down (Rebirth: 120, 90 and 60 degrees).` ## singe (Singe's AI 0058aed0; ball 0058d8b0) What the decompile shows: - Walk/idle spells: stand 15-29 ticks, then walk 30-89 (FindGridPath 0.8, retention 0.8). - Attack timer bb0 = 1 + rand*3 s, -0.0333 a tick (30-120 ticks), also cut by damage taken * 0.5. When it runs out: if (smoke clouds >= 5 or Isaac::Random() == 0) and |dx| > 160 -> SuperFart. Else, with fewer than 8 clouds, 1 in 3, and no cloud within 10 of x +-120 -> Fart. Else Run (timer 90). - **The fire stream is not gated by the superblasts.** Every attack resets bb0. - Fart (state 10, retention 0.6): **two** clouds (1000.141) at x +-10 toward Isaac, blown at 10-20 within +-20 deg of that side. Everything within the circle at x +-40 gets +-10 x velocity. - Run (state 4, retention 0.8): FindGridPath to the best ball line-up at 2.1, else to Isaac at 1.4-2.1 ((d-40)/60). Ends at the 90 ticks or early (timer < 60 and within 4 of a ball spot / 50 of Isaac). With a ball it Blasts there, else it JumpBlasts. - JumpBlast: velocity (lead target - pos) * 0.1, capped 10, on Jump; retention 0.6 outside Jump..Land. - SuperBlast at 2/3 and 1/3 health: 59 ticks off, at 15 left it moves to a free spot within 90 of Isaac, SuperBlastLand at 0. New ball at a random 15 off. A cross pit spawns where it left. - SuperFart: 120 ticks. Fires on IsFrame(2) (every other tick) when rand % 3 != 0, at speed 8-10, angle toward Isaac clamped to +-65 deg (facing right) or 115-245, plus a sin wobble +-8 deg random. Variant 2 (fire), HIT_ENEMIES, FallingAccel -0.05. Pushes Singe back 2 a tick. Retention 0.6 (also in states 8, 10, 12). Changed (base attacks and the phase-2 copy): - Replaced the per-tick rolls (Fart 1/225, RunStart 1/75) with the timer. `first_cooldown [30, 91]`. `cooldown 30 + cooldown_random [91,1]` on every attack that returns to idle (Fart 0, Blast 3, JumpBlast 4, SuperBlastLand 6, SuperFartEnd 9). Fart `one_in 3`, RunStart unconditional (the roll goes in order: fart 1/3 else run). - Phase 2: the rolled SuperFart moved to index 0 so it is tried first. All `next` indices +1 and opening [5,1] -> [6,1]. Its per-tick 1/75 became `one_in 2` per decision, a stand-in for the cloud-count gate. min_range 160 kept. - Retention 0.6 on Fart, Blast, SuperBlast, SuperBlastLand and SuperFartLoop (was 0.8). - SuperFartLoop shot `gate.not_one_in 3` (Fire events are every other tick, so 2 in 3 of those). - Run `seek` 1.4 -> 2.1 (the FindGridPath speed while targeting a ball or Isaac > 100 away). Not expressible (proposed): - `cooldown_damage_share` (float): each point of damage taken cuts the attack cooldown by share * 30 ticks (0.5 -> 15 ticks). - `gas/velocity` [min,max] + `gas/turn` deg + `gas/count` + `gas/offset`: moving clouds. Singe: count 2, offset 10 toward Isaac, speed 10-20, turn 40. - An entity-count gate on the decision (`when.effects_at_least {type: smoke_cloud, count: 5}`) and a horizontal-only range (`min_range_x`), for the SuperFart. - Shot `speed_random` (8-10) and fall_acceleration < 0 (see Clog). - Walk/idle spells (see Bumbino). - Singe's Ball: retention = 0.7 + 0.29 * clamp((speed - 0.5)/3.5, 0, 1) (ours is a flat 0.95). Explosion push 20 * (2 - 2 * clamp((v.dir + 20)/40)). It hops (v1.y -6) when blasted, falls into pits (dies), and dies when no enemies remain (subtype 0). Proposal: `retention_by_speed {least, most, from, span}`. No other change to the ball. Corrected comment, after "Approximations:": `the run heads at Isaac only (Rebirth: at the ball best lined up to roll at him, blasting it there), the smoke clouds don't burn, the farts make one still cloud (Rebirth two, blown toward Isaac), his walk has no standing spells and hits don't hasten his next attack, the cross-shaped pit the superblast leaves and its 45 ticks off screen are left out, and the fire stream needs the second superblast and half its tries (Rebirth: five smoke clouds up, Isaac over 160 to the side).` ## bumbino (NpcAI::ENTITY_BUMBINO 00499de0) What the decompile shows: - Idle spell: Idle pose, retention 0.8, 30-59 ticks the first time and 10-29 after. During it, ButtBomb 1 in 10 a tick when the aim at the led Isaac points 18-65 deg below horizontal and the line is clear. - Walk spell: 60-119 ticks, FindGridPath 0.8 (0.95 toward coins). - Swipe: rand&3 == 0, |dy| <= 40 and |dx| <= 200 of the led Isaac (Isaac + v * 0.1 * dist), and projectileCooldown < 1 or 1/50. - Charge: |dx| <= 40, 1/6. - Swipe (state 8, retention 0.8): on Shoot, v1 = (clamp(dx/20, 4..12) toward Isaac, clamp(4*ny, +-4)). Velocity += v1 every tick, v1 *= 0.75. The **second swipe flips facing** and pushes at 12 the other way. - GroundSlam (state 9, retention 0.7): 4 diagonal waves (1000.72), 8 rocks at 12 (mode 8, scale 1.25, variant 9), players within 100 pushed 3 ✓. Then projectileCooldown = 30-89, which blocks only the swipe. - Charge (state 10, retention 0.7): velocity += (0, 10) down or (0, -8) up every tick, plus 2x that once. Terminal 23.3 down / 18.7 up. - WallImpact: 8 boss projectiles toward pos - normal * 100 ✓, push within 150 ✓. Dizzy 60 ticks, a rock every 2nd tick while > 10 left (25 ✓): 1 in 5 on Isaac, else a free spot. Each rock falls from height -400 with accel 2, scale 0.8-1.2. - ButtBomb (state 11, retention 0.7): fart 85 ✓. Bomb variant 9 (butt), fuse 20, from the Hitbox null at 12 toward Isaac, angle clamped about 30/150 deg. Changed: retention ButtBomb 0.7, Swipe x2 0.75 -> 0.8, GroundSlam 0.7, WallImpact/Dizzy/ShakeOff 0.7. DownCharge charge_speed 10 -> 21 (the mean of its 23.3 / 18.7 terminals; the ramp from 14 is over within about 5 ticks). Not expressible (proposed): - `behavior/spells` {idle: [min,max], walk: [min,max], first_idle: [min,max], idle_attacks: [indices]}: the actor alternates standing (idle_pose, behaviour retention) and walking (move). Attacks roll only in their own spell. Bumbino: first 30-59, idle 10-29, walk 60-119, ButtBomb idle-only, the rest walk-only. Singe: idle 15-29, walk 30-89; his timer runs through both. - `attacks[]/mirror` (bool): the attack flips the actor's facing as it starts, and its lunge/leap heads the other way. Bumbino's second Swipe, with leap replaced by an impulse of 12 away. - `charge_speeds` [down, up, side] in place of the single charge_speed. - `rain/player_one_in` (5) and `rain/shot` (a falling projectile, height -400, fall_acceleration 2, scale 0.8-1.2, rock look) in place of bolts. - `shots`-free bomb throw (see Big Horn `bomb_throw`): variant butt, fuse 20, speed 12. - An aim-angle gate (`when.aim_below {min: 0.307, max: 0.907}` on the normalised y) for ButtBomb. Corrected comment, after "Approximations:": `the coin hunt (walking to coins, a swipe knocking 1-3 of Isaac's out, leaving with an item at 12) and the swipes breaking rocks and batting shots are left out, the second swipe lunges like the first (Rebirth: turned round, pushing away), the charge runs at a steady 21 (Rebirth: building to 23 down, 19 up), the falling rocks are rock-burst strikes (Rebirth: rocks from above, 1 in 5 on Isaac), the bomb is a plain one dropped at Isaac (Rebirth: a butt bomb thrown at 12) and his idle and walk spells (10-29 and 60-119 ticks, the butt bomb only while he stands) are one chase.`