87 lines
5.8 KiB
Markdown
87 lines
5.8 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.
|