163 lines
12 KiB
Markdown
163 lines
12 KiB
Markdown
# Fidelity leftovers pass (2026-10-24)
|
|
|
|
What each routine does, as read for isaac-classic branch rif/fidelity-leftovers. Numbers are exact from the decompile
|
|
unless marked otherwise.
|
|
|
|
## black_knight: NpcAI::ENTITY_KNIGHT 005135d0 (41.4)
|
|
- Hop: PositionOffset.Y += V2.X, then V2.X += 1.1, landing at 0. A wall slam (pre-collision speed^2 > 8, normal dot > .9)
|
|
sets V2.X = -5, shakes the screen (4), spawns 1000.15 and three 1000.148 fire jets at heading +180 and +-90 degrees.
|
|
It also bounces (velocity -= 5 * (v.n) n, then *.01 if still against the wall).
|
|
- ProjectileDelay = -45 after the slam. While it is below 0, or it is in the air, MoveRandomlyAxisAligned is skipped
|
|
and no charge starts (it stands dazed).
|
|
- Charge start velocity * .7 for variant 4.
|
|
|
|
## gas_dwarf: 00561a20 (874)
|
|
- A death that is not its own proximity blow fires one projectile, FireProjectiles mode 0 at Velocity * .3 capped at
|
|
length 4. Params: BulletFlags |= 2 (EXPLODE), FallingSpeedModifier -5, FallingAccelModifier .3, colour (1.5, 2, .5, 1).
|
|
- Gas cloud 1000.141 (timeout 180): velocity (FlipX ? -1 : 1, 0) rotated by rand*60-30 deg, speed 10 + rand*10.
|
|
- Effect 141 update (Entity_Effect::Update jump table 0x606f8c entry 0x8c -> 005d6910): friction *= min(.9, .8 + .01 *
|
|
FrameCount). Alpha fades over its last 30 ticks.
|
|
|
|
## blood_cultist: NpcAI::ENTITY_CULTIST 004ed840 (885.1)
|
|
- Init: ProjectileCooldown 30 + rand%30. State 3: friction .75; steers toward its target point at rand*1.7 + .7 a tick
|
|
(angle smoothed in V1.Y). Arrival within 24 (576 squared, 100 squared = 10 for variant 0).
|
|
- Armed (I1 == 1) arrival with line of sight: Isaac within 30 on y and rand%3 == 0 -> Attack (faces him); else, within
|
|
100 of him -> Respawn (teleport, state 13). V1.X > 60 ticks, or armed with cooldown > 0 and rand%10 == 0, drops the pick.
|
|
- Picks: cooldown out -> Isaac + his velocity * 15 (free position near, 60), armed. Else its offset from Isaac turned
|
|
rand*240-120 deg, resized to 50 + rand*40, free position near, armed on (rand & 7) == 0.
|
|
- Attack: friction .7; Shoot sets V1.X = 1, V2.X = 20 (the blood wave). While V1.X > 0: velocity.x += (FlipX ? 5 : -5) * V1.X,
|
|
V1.X -= .1. End: cooldown 60 + rand%60.
|
|
|
|
## twitchy: NpcAI::ENTITY_TWITCHY 004db6a0 (851)
|
|
- Jump check: cooldown < 1 and rand%30 == 0; target from 004db3c0; jumps when it is under 260 away or rand%10 == 0;
|
|
I1 = rand%3 + 1 jumps. In the jump V1.X += .03 a tick and velocity = (target - pos) * V1.X / friction.
|
|
|
|
## mama_fly: 004ddf00 (61.4)
|
|
- A new spot is only picked while fewer than 10 Pustules (0x35d = 861) live (QueryNPCsType, count < 10).
|
|
|
|
## drowned_boom_fly: ENTITY_BOOMFLY 0050f280 (25.2)
|
|
- Its 1 in 3 charger (23.1) has MaxHitPoints and HitPoints * .5.
|
|
|
|
## willo: 00557f70
|
|
- The slot's y offset is radius * .84 (an ellipse).
|
|
|
|
## hush_fly: NpcAI::ENTITY_HUSH_FLY 004bf310 (296)
|
|
- Init: random sprite sheet of three, I1 = rand*1000 (its place on the path), group = game frame at spawn, V1 = room
|
|
centre, I2 bytes = two shapes rand%6+1 and radius 80, health += 400 + rand%200 (drains 4 a tick to max: spawn armour).
|
|
- The first of a group to update places every member: I1 += 10 a tick, nudged +-2 toward even spacing from its neighbour;
|
|
point = shape(I1 * .001) of each shape, rotated by game frame degrees, y * .7, blended by clamp((sin(f * .1) + .5) * .7).
|
|
- Steering: v = v + ((target - pos) + V2 - v) * .3, capped 10, friction .8 (so v = .7 v + .3 (target - pos)).
|
|
|
|
## stone_eye: NpcAI::ENTITY_STONE_EYE 00505d00 (201)
|
|
- V1.X += 2 deg a tick; laser angle = atan2(sin a, cos a * .5) + 90; origin on a 20 x 14 ring by clip frame;
|
|
laser variant 2 spawned on a 1 in 3 tick while none, then re-aimed every tick. Clear room: state 3, sound 0xd4.
|
|
|
|
## Tumor family: NpcAI::ENTITY_SWARMER 00518e20 (229 Tumor/Planetoid, 230 Camillo Jr, 253, 91)
|
|
- Every 5 ticks (GetIntervalTicks(5)): attacks while V1.X (attacks so far) < (1 - hp/max) * 10 and cooldown 0.
|
|
Planetoid adds 1 (a whole step) on rand%10 == 0 with fewer than 3 orbiting shots.
|
|
- Planetoid Shoot: 1-2 shots at 8, evenly from a random angle, orbit flags 0x3000 or 0x2800 by InitSeed & 1. Blow
|
|
(3+ orbiting and rand%3, or 6+, or hurt share > .05): ButterBeanFart radius 120, orbiters released at up to 10.
|
|
- Camillo Jr: Shoot (on screen) a laser variant 2, timeout 3, from null ShootPos / .65; cooldown 60.
|
|
|
|
## grilled_clotty: NpcAI::ENTITY_CLOTTY 0050d370 (15.3)
|
|
- Shot: FireProjectiles mode 9 (7, 4) or (8, 4) hard, CircleAngle rand * .05pi, FallingAccel +.02. Attack timer 15
|
|
(30 Clotty, 45 type 282), at most 3 attacks in a row (I2). Morphs back to 15.0 when room water > .2.
|
|
|
|
## holy_bony: NpcAI::ENTITY_SKINNY 00538b70 (227.1)
|
|
- As Bony: MoveRandomlyAxisAligned 1.25, IsFrame(3): target = Isaac + vel * rand*16 (clamped), within 20 of its cell on
|
|
an axis, < 200, CheckLine -> attack. Bone at 10, flags 0x2000, fall shaped from distance (clamped 20-240, pow(.9, ..)).
|
|
|
|
## flagellant: NpcAI::ENTITY_WHIPPER 004e5170 (834.2)
|
|
- Friction .8 (attack *.6). Walk: FindGridPath 1.9 then ToCardinal. Charge when a way's dot > .9 with CheckLine
|
|
(laugh overlay). Charge ends after 60 slow ticks (20 others) or a wall. Splat 1 in 8.
|
|
|
|
## level_2_gusher: NpcAI::ENTITY_GAPER_L2 004e2b40 (850.2)
|
|
- Friction .8, heading +-1 deg a tick, push 1.2, reflected on walls. Every 15 ticks rand&3 == 0 with <= 15 Small
|
|
Maggots (853): throws one at (2 + 2 rand) * random vector from height -8, fart cue.
|
|
|
|
## tainted_faceless: NpcAI::ENTITY_FACELESS 004faad0 (827.1)
|
|
- Aggro (StateFrame 1) when hurt or Isaac within 80; then FindGridPath .6. Attack chance sqrt(V1.X) * .08 + .008,
|
|
1 for aggroed 827.1. Ring: mode 9 (8, 6) scale 1.3 FallingAccel -.06 (Faceless (7, 6)).
|
|
|
|
## leper_flesh: 00548720 (310.1)
|
|
- Friction .95; velocity += (2 * random unit + unit to target) * .15. Death: one shot at 10 at Isaac + vel * .1 * dist.
|
|
|
|
## Not done
|
|
- shady: the side-shedding flag lives in Entity_Projectile::Update (00653070), which decompiles without call arguments.
|
|
|
|
# Monster fidelity pass 7 (2026-10-24, isaac-classic branch rif/monster-fidelity-7)
|
|
|
|
## stone_eye 00505d00 (asm 00506030..005062b2)
|
|
- V1.X += 2 deg a tick (wrapped to 360). Rotate frame = int(36 * (a + 15) / 360) (SetFrameFloat; 0x00baa854 15, 0x00baab30 360).
|
|
- Laser re-aimed every tick: AngleDegrees = atan2(sin a, .5 cos a) * 57.3 + 90 (x87 _CIatan2(ST1 = sin, ST0 = .5 cos)).
|
|
- Spawn (no laser, rand % 3 == 0): ShootAngle(variant 2, pos + (cos t * 20, sin t * 14), angle, timeout 2,
|
|
PositionOffset (0, -20), npc) with t = (30 * ((frame + 1) / 3) + 180) deg - 90 deg; laser+0x518 (DisableInitSound) = 1.
|
|
ShootAngle (0096f310) sets ParentOffset (0x410) = spawn pos - parent pos, so the ring point is fixed per laser.
|
|
- Not read: what timeout 2 does in Entity_Laser::Update (the decrement is not in Update itself).
|
|
|
|
## hush_fly 004bf310: init health += 400 + rand % 200; every tick while hp > max: hp = max(max, hp - 4).
|
|
|
|
## planetoid (ENTITY_SWARMER 00518e20, type 0xe5)
|
|
- local_184 = (1 - hp/max) * .1, + .1 on rand % 10 == 0 while the tracked-shot list (0xc00) holds < 3.
|
|
- Attack when V1.X < local_184 * 100 and ProjectileCooldown == 0. Blow if held >= 3 and (rand % 3 == 0 or held >= 6
|
|
or local_184 > .05), else Shoot.
|
|
- Shoot: (rand & 1) + 1 shots from a random angle, speed 8, params flags 0x3000 (CCW | NO_WALL_COLLIDE) or 0x2800 (CW)
|
|
by InitSeed & 1, flags high dword 0x1000000 (follow parent); per shot: +0x430 = 80 (orbit target distance),
|
|
+0x414 FallingSpeed 0, +0x418 FallingAccel -.095, spawner = npc; pushed on the npc's tracked list.
|
|
- Blow: V2.X = 60; Game::ButterBeanFart(pos, 120, npc, 1, 0); each live tracked projectile: +0x430 = 0,
|
|
+0x410 Height -23, +0x414 0, +0x418 -.085, velocity resized to exactly 10 (local_14c is 0 there), flags &= ~0x1000000.
|
|
- Entity_Projectile::Update orbit (flags & 0x1800): d = pos - centre (parent pos when the follow bit and a parent are
|
|
set, else its own centre), t = perp(d) (negated for CCW), k = R <= 0 ? .5 : clamp(1 - |d| / R, -1, 1) * .5,
|
|
v = normalize(t + d * k) * |v|; with a parent the parent's velocity is added (args missing in the decompile).
|
|
- ButterBeanFart (00704360): pushes Isaac and vulnerable enemies (not projectiles unless the source is Isaac or a
|
|
familiar): f = 2 * min(7, radius + size - d), times .5 / .2 / .015 by mass bands; v = dir * f + v * .5.
|
|
|
|
## grilled_clotty (ENTITY_CLOTTY 0050d370): walking resets V1.X = 30 (45 type 282, 15 for 15.3) each tick;
|
|
MoveRandomly's arrival attacks (state 8) unless 15.3 with I2 > 2 (then I2 = 0, no attack); I2++ per attack. State 8:
|
|
V1.X -= speed mult a tick; leaves when the anim is done or (rand % 30 != 0 and V1.X <= 0).
|
|
|
|
## level_2_gusher (ENTITY_GAPER_L2 004e2b40, variant 2), asm 004e30f0..
|
|
- V1.X += (rand - .5) * 2; V1.X = approach_angle(V1.X, atan2(vel) deg, .1) (XMM0 cur, XMM1 target, XMM2 step);
|
|
vel += (cos, sin)(V1.X) * 1.2 * speed mult; on grid collision the heading is reflected off the collision normal
|
|
(+0x19c/+0x1a0) and V1.X = its atan2. ProjectileCooldown 15 then a roll: one roll every 16 ticks.
|
|
|
|
## leper_flesh 00548720: vel += (2 * (cos a, sin a) + unit to target) * .15 * speed mult, a = rand * 6.28.
|
|
|
|
## flagellant (ENTITY_WHIPPER 004e5170, 834.2)
|
|
- Walk: MoveRandomlyAxisAligned(1.25) (not FindGridPath). I1 = way of its velocity (0 left, 1 up, 2 right, 3 down).
|
|
- Charge start: dot(axis unit of its way, unit to Isaac) > .9 and Room::CheckLine -> V1 = axis, cooldown 0, laugh.
|
|
- Charging: counter (ProjectileCooldown) ++ while speed < .5 else 0; 834.2: FindGridPath(target, 1.9) then
|
|
velocity = ToCardinal(velocity) * |velocity|; 834.0/1: velocity += axis * 1.75 / friction. Ends when the counter
|
|
passes 60 (20 others), on grid collision or fear/confusion (flags 0x1000a00). Mass (0x37c) 80 while charging.
|
|
- 834.2 never enters state 8 (the Attack* swing is the others'); its whip is WalkAttack* + Sound 0x1ee.
|
|
|
|
## shady BACKSPLIT (Entity_Projectile::Update 00653070, asm 00654569.., 00657df8..)
|
|
- Shady's shot: Scale 2, FallingAccelModifier -.08, BulletFlags high dword 0x800000 (bit 55, BACKSPLIT), colour set.
|
|
- Every GetIntervalTicks(8) (006ac760): two shots (type 9.0) at velocity rotated 90 deg * .15 * (-1, +1), spawner
|
|
copied (+0x34/+0x38), colour copied, Height copied (+0x410), AddProjectileFlags(0x8000000 = ACCELERATE),
|
|
FallingAccel (+0x418) -.04, Acceleration (+0x42c) 1.12.
|
|
- ACCELERATE (flags & 0x8000000 at +0x438): velocity *= 00684cb0(Acceleration, timescale) (a / (a + t - a t), = a at
|
|
t = 1); capped only for spawner types 0x197 and 0x378.
|
|
- Where it ends: sound 30, effect 1000.2, then 5 shots at -normalize(velocity) rotated i * 24 deg (i = -2..2) * 10.
|
|
|
|
## reap_creep (asm 0057bc8c..)
|
|
- The idle/beam push: if accel > 0 and phase (I1 byte 1) != 1 and |Isaac.y - pos.y| < 32 (0x00baa8e0), accel = 1.0.
|
|
|
|
## bombgagger (ENTITY_BOMBGAGGER 00503300)
|
|
- State 4: its bomb (+0x3c0) alive -> PathFinder::EvadeTarget(bomb pos, 1), no attack; else MoveRandomly. Friction .8.
|
|
- Attack: cooldown < 1 and rand % 5 == 0: dist >= 300 or feared -> cooldown 3; no CheckLine(mode 2) -> 7; else 75,
|
|
AttackStart (friction .7), then Attack<Dir> by vector_to_direction; Shoot: giga bomb 4.17 at pos + axis * 10 with
|
|
velocity axis * 10, six smoke effects 1000.99. Dead with its "Bomb" null visible: drops a giga bomb.
|
|
|
|
## brownie spin shots (asm 0048d480..)
|
|
- Angle a = (i2 / 12) * -360 deg; velocity = 10 * (-sin a, cos a); launch at pos + (sin(2 pi i2 / 12) * size, 0)
|
|
(so along x the shot's own heading times size); HeightModifier -35, FallingSpeedModifier 4, Scale 1.1, variant 5,
|
|
boss colour applied. The 10% pick: iVar9 = (int)(80 - 50 * clamp(s)); halved as int (iVar9 / 2) after a spin pick.
|
|
- Laugh 420 at: SpinStart picks (idle threshold and exit picks), Spinning start (idle IsFrame pick), Dashing start.
|
|
|
|
## Not Repentance AI
|
|
- strifer (839): its dispatcher case is the default block (no AI); the port stays an Antibirth-style guess.
|
|
- exorcist (832.0): seeks corpses within 80 (room list at +0x1218, every interval 1 in 3), FindGridPath(.85) to one and
|
|
revives it as Lil Haunts 260.10 (state 9); otherwise keeps 80 from its own Lil Haunt or EvadeTarget(Isaac); every
|
|
60..119 ticks (I1) 1 in 10 Revive (state 8) raises one Lil Haunt beside it. Not ported (no corpse list in the engine).
|