# Group 00 notes (pass 4) Decompiles: `./decompile.sh 0x`. Floast's AI is 005111b0. The table names it Entity::TeleportToRandomPosition because of ICF, but it is the Host AI (types 27 and 859). Speed convention: AddVelocity-style pushes map as engine push = net push per tick, i.e. the Repentance push divided by the friction at the time of the call, then multiplied by friction. For roam (MoveRandomlyAxisAligned) and path (FindGridPath) I kept the established convention: speed = the call's argument (dank_charger, level_2_charger). ## twitchy: ENTITY_TWITCHY 004db6a0. Skipped (already matches) - Matches: path .6, jump roll `cd<1 && rand%30==0` and (dist < 260 or rand%10==0) (one_in 30 / 300), `i1 = rand%3+1` jumps (the next lists give a 1/3 chance each of 1, 2 or 3), close_in .03 a tick from the Jump event, f *= .6 before it, cooldown 5. - FUN_004db3c0 (the jump target), now decoded: `T = target + playerVel * 0.1 * dist(npc, player)`, then pushed 40 px further along npc->T, clamped to 200 px from the npc, and moved to FindFreeTilePosition when the cell is blocked. Proposed `close_in {lead_per_distance: .1, overshoot: 40, reach: 200}`. - Dodge: still the open proposal from pass 3 (`attacks[]/dodge`). ## floast: 005111b0 (type 0x35b). Changed - Movement: f *= .9, then +-.55/f on each axis = a net .55. Speed .45 -> **.55** (retention .9 kept). - Shot: FireProjectiles mode 2 = [1,0] plus .9 * (.961, +-.276). Fan [.8, +-.2] -> **[.8649, +-.2484]**. Speed 8.4 (7 * VelocityMulti 1.2), range 240 and cooldown 49 already match. - Not done: ProjectileParams FallingAccelModifier -.05 (fall_velocity -3 / fall_acceleration .05 are left as they were). The loader's fall_acceleration minimum of 0 blocks negative values (same as pass 2's proposal). ## drowned_charger: ENTITY_MAGGOT 0052db50 (23.1). Converted corridor_walker -> scripted roam (like dank_charger) - Walk: MoveRandomlyAxisAligned(**.54**), f .85 -> roam .54 / .85. Poses Move Hori/Down/Up. The vertical *.9647 is not expressible (same as dank). - Charge: IsFrame(4) with no roll, |dx| or |dy| < 20 (from its cell centre to Isaac + vel*rand*16), dist < 200, CheckLine -> period 4, alignment 20, range 200, sight. - Charge motion: AddVelocity(axis * 1.3 * .9 = 1.17) with f *= .8, terminal (v+1.17)*.8 = **4.68**. Expressed as charge_speed 4.68 along the axis (exact axis; the ramp from walking speed is lost). It ends after 6 ticks stuck (moving < sqrt2 * speedMult) -> on_wall end, repeat limit 60 (4-frame clip). Afterwards straight back to walking, with no recover clip and no cooldown. - The cross-axis lerp toward its cell centre (.3 a tick) during the charge is not expressed. - Sound 0xe0 at charge start: the anm2 has no events. Not ported (an event on frame 1 would fire on every repeat). - Death: FireProjectiles mode 7 (diagonal four) at 8 (10 when FUN_006d8240() >= 1) -> circular_count 4 -> diagonal true. ## constant_stone_shooter_202_0_1 / _0_2: 00506320. Changed (same fixes pass 2 made to subtype 0) - Subtype 1 = up (v1 = (0,-1)), subtype 2 = right. Shot v1*7 * VelocityMulti 1.07 -> speed/direction **7.49**. Init cooldown 0x14, never reset -> first_cooldown [20, 0]. It closes with "CloseEyes" on plates -> cleared pose ClosedEyes -> **CloseEyes**. ## brimstone_deaths_head (212.3) / redskull (212.4): ENTITY_DEATHS_HEAD 00532cf0. Changed - Movement: f *= .9, then +-.45/f per axis (**.36** for 212.4) = net .45 / .36. Speed .3 / .85 -> **.45 / .9** and **.36 / .9**. - Attack state: f *= .6 on top of .9 -> retention **.54** (was 0 / .5; the start brake is removed). - Brimstone (uncontrolled): no cooldown test at all, checked asm 005332e8..005333e0 (only the controlled branch reads 0xba0). Each tick, while it is on camera: if Isaac + vel*5 is within 24 on either axis, the axis direction (FUN_0067f260) fires. Now **period 1, alignment 24**; one_in 3 and cooldown 60 are removed (the 60 is set but never read when uncontrolled). Isaac's vel*5 lead and the on-camera test are not expressible. Proposed: `line.lead` already exists for a single axis; an `alignment_lead` would cover both axes. - Brimstone laser: ShootAngle(variant 1, timeout **16**). anm2 request: **brimstone_deaths_head.anm2, AttackDown/Up/Left/Right: move LaserEnd from frame 45 to frame 39** (Shoot is on 23; 23+16). The data still says from Shoot to LaserEnd. - Redskull: IsFrame(6) -> **period 6**, cooldown < 1, Isaac's predicted position (pos + vel * .1 * dist) within **100** -> range 100 (the lead is not expressible). No roll -> one_in 15 removed. Cooldown 0x1e = **30** after the clip. - Redskull release: on Shoot, cooldown = -1, then: 4 fire jets (effect 0x93) at radius **40**, angles i*90; and 5 ticks later (cooldown -6), 8 jets at radius **80**, angles i*45. Each is skipped when it lands outside the room (IsPositionInRoom 10). The marching cardinal/diagonal waves -> two `bolts` effects, `directions {count 4} offset 40` and `{count 8} offset 80 delay 5`, without the wave (same art and damage). ## maze_roamer: ENTITY_MAZE_ROAMER 004f1ec0. Changed - Paired walk (state 4, subtype 0): MoveRandomlyAxisAligned(**1.25**), f *= .8 -> corridor .5 / .8 -> **roam 1.25 / .8**. Subtype 1 mirrors the leader through the room centre (partner record, not mine). - Attack test IsFrame(**3**), with no roll and no cooldown: Isaac + vel*rand*16 (clamped 20) within 20 of its cell centre on either axis, dist < 200, CheckLine mode 3. Now period 3; one_in 3 and cooldown 30 are removed. - The shot on Shoot: speed **10** toward Isaac (was 8). While the clip plays f *= **.3** (retention .6 -> .3, start_retention 0 removed). Projectile Variant 16 (art) is not ported. - Solo (after Transition, state 3): FindGridPath(Isaac, **1**) with no friction -> phase chase .5 -> **path 1, retention 1**. Same attack. Transition f *= .8. - Not expressible: the partner is forced into its own attack at the same moment, and fires the mirrored direction (-unit(Isaac - partner) * 10). maze_roamer_890_0_1 should get the same numbers (roam is not needed: it mirrors). ## morningstar: ENTITY_MORNINGSTAR 004f7e60. Changed - It wakes when **any player is shooting** (player+0x1624 != -1), not when moving: phase gate moving -> shooting (as mockulus). Asleep, f *= .8 (kept). - Awake: FindGridPath(target, v1) with v1 starting **.7** and += .01 a tick, capped at 2 (no friction) -> hover .5/.9 -> chase **.7**, retention 1. It stays awake at least i1 = 10 ticks. - Proposed feature `speed_ramp {step: .01, cap: 2}` (speed grows each tick the move runs, reset when the phase begins). ## spikeball: ENTITY_SPIKEBALL 004dc490. Changed - f *= .7, then += 3 along its axis (dir = subtype&3: 0 left, 1 up, 2 right, 3 down) -> net 2.1. line .4 / .9 -> **2.1 / .7** (terminal 7 in both models). - It reverses when the cell 20 px ahead is solid, or when another spikeball ahead is touched. The cross axis is lerped .1 a tick toward its lane. - The `Idle` attack with charge_speed 4 / cooldown 100000 (a one-off kick along Isaac's axis) is removed. Subtype 0 starts left, which line's "zero goes negative" already does. It relies on the wall bounce to reverse. ## gyro: ENTITY_GYRO 004ff620 (824.0). Changed - Idle: f *= .8, += 1.2 * heading -> wander **.96 / .8** (was .4 / .85). The heading eases 10 deg a tick toward a target angle, re-picked every rand%40+10 ticks (toward Isaac with 1/3 when he is in sight, else random). Wander is the stand-in. - Dash test: i2 >= 0, CheckLine, unit heading . (Isaac - pos) > .7 (a half plane ahead), rand%14 -> cone {cos 0} added, one_in 14 kept. - Dash: velocity zeroed, f *= .96, += .9 * heading, the heading turning 5 deg a tick toward Isaac -> lunge .35 -> **.864**, retention .94 -> **.96**, seek .07 removed. i2 = 60 ticks -> repeat limit 15 -> **14** (15 x 4-frame clip). The wall bounce (x1.8, or x1.4 head-on) and on a head-on hit i2 capped at 10 are not expressed beyond on_wall bounce. - After: i2 = -30 - rand%30 -> cooldown 1 -> **30** (+ [30,1] once, kept). - Proposed `attacks[]/lunge_turn` (deg/tick: the lunge heading turns toward Isaac) and a `steer` move (heading eased at N deg/tick toward targets re-picked every [a, a+b) ticks, 1 in 3 at Isaac). ## butt_slicker: ENTITY_BUTT_SLICKER 0054d250. Changed (movement only) - Alone (i2 < 1): MoveRandomlyAxisAligned(**2**), f *= .8 -> wander .4/.85 -> **roam 2 / .8**. With a target slicker nearby (FUN_0041a790 query), FindGridPath to it at 2. - Not expressible: slickers link into chains (within size+size+40); a linked one chases Isaac (CheckLine: net .65 a tick with f .9, else FindGridPath .9) and pulls toward its links. A chain of 2 or more dying together fires FireProjectiles mode 6 (or mode 8 with more than 3) at 10 from the chain's centre, plus creep scaled 1 + n*.25. A lone slicker fires nothing (the record's death_volley speed 8 is left as it is). - Please check in game: speed 2 is the raw argument, and gives a terminal of 8 px/tick under the roam convention. ## clickety_clack: ENTITY_CLICKETY_CLACK 004efb90. Changed - State 4: FindGridPath(Isaac, **.75**), f *= .97 -> chase .5/.8 -> **path .75 / .97**. While Isaac is farther than 80 it may follow a nearby enemy for rand%15+30 ticks (not expressed). - The clock phase (wander between ticks 90-150 of each 150) has no counterpart in the AI. Removed. ## blue_gaper: ENTITY_HUSH_GAPER 004bee40. Changed - FindGridPath(**.6**), friction untouched -> chase .66 -> **path .6**. It is immune to damage from its own type (not expressed). ## poofer: ENTITY_POOFER 004f64e0. Changed - f = .8, FindGridPath(Isaac + player[0x1630]*80, **.4**) at every size -> speed .3 and the phases' .25/.2/.15/.1 -> **.4**. The 80 px lead along the player vector is not expressed. - Ring: FireProjectiles mode 9 (**10**, 6) -> ring speed 10 (count 6 kept). - Not expressible: damage is cut to 1% until full size (v2.x < 4); each hit adds dmg/10 to the size target (approached at 1/12 a tick); the attack fires when the accumulator v1.y (+ (size*.5+1)*dmg, + size*.2 a tick) passes 20. The hurt phases are kept as the stand-in. ## conjoined_spitty: ENTITY_MAGGOT 0052db50 (243). Changed - Walk MoveRandomlyAxisAligned(.72), f .85, vertical also * .9647 -> retention [.85, .7] -> **[.85, .82]**. - Shot check (for the lead): rand%35 a tick -> state 9 (f .85). On Shoot, FireProjectiles mode 0 at 8 along its facing axis and the opposite one, with HeightModifier 14, FallingSpeed -.1, FallingAccel -.101. corridor_walker shooting is kept. A scripted conversion like dank_charger's would be more faithful. ## baby_long_legs: ENTITY_BABY_LONG_LEGS 00531ab0 (206.0). Changed - Egg: while fewer than **6** alive enemies, Isaac::Random(**100**) == 0 per tick (plus an extra Random(50) while field b50 < 1). period 7 / one_in 6 -> **period 1 / one_in 100**, spawn_cap below 3 -> **enemy_limit 6**. - Lay: spider (85.0) with a random vector, and rand%20 == 0 adds a second one going the opposite way (not expressed). f *= .5 (matches). ## mockulus: ENTITY_MOCKULUS 004f76f0. Changed - Closed: f *= .8 -> base retention .9 -> **.8**. Opens while any player shoots (matches the gate), with i1 = 10 minimum. - Open: f *= .9, +-1/f per axis -> net 1 -> phase bounce .45 -> **1.0**, with retention **.9** in the patch. Repentance's zero velocity goes positive (the engine's goes negative), which is minor. ## gurgling_boss: ENTITY_MAGGOT 0052db50 (237.1). Changed - Walk: MoveRandomlyAxisAligned(**.6**) (0xed is not in the special list), f .85, vertical also *.9647 -> speed .75 -> .6, lane walk corridor -> **roam**, retention [.85, .78] -> **[.85, .82]**. - Charge: IsFrame(4), within 20 on one axis, dist < **200** (40000; only 0x37 skips it; was 400), target Isaac + vel*rand*16 -> prediction_duration 8 -> **16**. AddVelocity(axis * 1.3) with f *= .9 -> acceleration 1 x multiplier 2 / retention .82 -> **1.17 / .9**. No cross-axis lerp for 0xed -> lane_retention .9 -> **1**. Champion subtype 1 is * 1.5 (not expressed). The charge sounds 0x39 + 0x3af exist. - After the charge (stuck >= 6) it plays Stop (state 3, f *= .85). On Shoot (subtype 0), if rand%3 != 0 it spawns an attack fly, and keeps spawning while count < rand%3 (0: 1/3, 1: 4/9, 2: 2/9). So Stop is **not rolled**: wall_attack 0 / wall_speed 0, rolled false, period / one_in 12 / enemy_limit 8 removed, retention .7 -> .85 (the colour copies too). The count stays 1 + random(2) (the loader's count minimum is 1; Repentance can spawn 0). ## bouncer: ENTITY_BOUNCER 00501f30. Changed - Inflate: room age > 30, b50 > 0, its timer v1.x <= 0 (v1.x = 6 + rand*4, minus 1/30 a tick, minus dmg/3.5 per hit, so 180-300 ticks), then rand%20 a tick. Now **period 1**, range 200 -> **0** (no distance test), after_tick 90 -> **240** (the mean). hp_below 10 is kept as the damage stand-in. - Inflating: f *= .6 -> retention .6 (start_retention .5 removed). - Death (uninflated): FireProjectiles mode 7 at **10** -> death_volley shot_speed 8 -> 10. - Proposed `attacks[]/age_ticks {base, random, hurt_scale}`: ready once the actor's own timer (base + random(random)) has run out, a hit taking hurt_scale ticks per damage off it. ## small_crazy_long_legs: ENTITY_BABY_LONG_LEGS 00531ab0 (207.1). Changed - FindGridPath(**.65**), f = .8 -> chase .6 -> **path .65 / .8**. - Attack: rand%**50** a tick -> one_in 45 -> 50 (period 1). f *= .5 while it plays -> retention .6 -> **.5**. - Shot: FireProjectiles mode 7 (diagonal four) at 8 + rand*2 -> speed 7 -> **9** (the mean; no random speed field). HeightModifier 10, FallingSpeed -10, FallingAccel .5 (a lob) are not ported. ## flaming_gaper: ENTITY_GAPER 00508f40 (10.2). Converted ground_chaser -> scripted path (like blue_gaper) - FindGridPath(**.5478**), friction untouched -> scripted move path .5478, retention 1, idle pose Head. Art: the same body (WalkVert/WalkHori, locked). The ground_chaser's Flash pathfind (x1.1/x1.2 boosts, .83 calm scale) is not Repentance. - On death (health > -25, rand&1): it becomes Gusher variant 0 (the Pacer roll is skipped for variant 2). This matches the transformation (one_in 2, overkill 25). ## Proposed features (summary) 1. `close_in.lead_per_distance / overshoot / reach` (Twitchy's jump target). 2. `speed_ramp {step, cap}` (Morningstar). 3. `attacks[]/lunge_turn` deg/tick and a `steer` move (Gyro). 4. `attacks[]/age_ticks {base, random, hurt_scale}` (Bouncer). 5. A two-axis alignment with lead (`alignment_lead`) (Brimstone Death's Head). 6. The fall_acceleration loader minimum lowered below 0 (Floast; pass 2's proposal). 7. Chain linking for Butt Slickers (see above), out of scope for data. anm2 request: brimstone_deaths_head.anm2, AttackDown/AttackUp/AttackLeft/AttackRight: LaserEnd from frame 45 to frame 39 (counted from 1).