Files
isaac-port/notes/entities/shared_scripted_a.md
T

106 lines
8.7 KiB
Markdown

# Shared enemies, scripted group A (Phase C, 2026-10-26)
isaac-classic branch rif/shared-enemies, fork scripted_a. Monsters Flash and Repentance+ share: under the Enemies option
Repentance+ a gated override in resources/data/repentance_plus/entities.json (Flash's art and clip names kept, Rep's
event frames given as frame numbers where they differ). Speeds follow pass6_engine.md (push x of `v += x / f` = speed).
## para_bite: NpcAI::ENTITY_PARA_BITE 005240a0 (58.0). Changed
- State 4: FindGridPath(Isaac, .8, mode 0), no friction of its own (the *.7 runs only in the dig states 6 / 16); as
Scarred Para-Bite (pass9_u1.md). Dig: rand%30 with no direct path; DigIn target a random cell 130..1000 from the
nearest player with grid path < 500; collision off DigIn frame 8 .. DigOut frame 3; splat 1 in 10.
- Override: move chase -> path .8, retention 1. HP 35, contact 2 (our 1) match.
## boil / gut / sack: NpcAI::ENTITY_BOIL 00517150 (30.0 / 30.1 / 30.2). Changed
- Init: health 7 (hard / greedier: 7 + rand * (max(.8 max, 7) - 7)); friction *.8 and velocity = home - pos.
- Regrow while health < max: health += V1.x * 1.2, V1.x = (V1.x + .02 (.01 spawned by Gurdy)) * .8 (Sack * .8 more),
clamped at max (no overgrowth); a counted hit zeroes V1.x. No attack while regrowing.
- Idle at full health: rand%50 == 0 and (Isaac within 230 or rand&3 == 0) -> Shoot (state 8); the Sack instead
Shakes (state 9) when more than 7 enemies live or Random(alive) != 0. A failed roll stays idle (no Shake).
- Shoot event (Rep anm2 frame 13 of 24; Flash's clip 12 of 26): near = d < 250 - 20 rand (not when Gurdy spawned it).
Boil: FireBossProjectiles(3 + rand&1, near ? Isaac : random, 10). Gut: FireBossProjectiles(1, ...) * .55, near
* (.6 + rand), flag 2 (EXPLODE), scale 1.6, accel - .3, fall * .7 - 13, green tint: Flash's green() exactly, but
near AIMS at Isaac and far is random (Flash's green has it the other way round). Sack: a spider thrown to
FindFreePickupSpawnPosition(midpoint, 70) near, else (itself, 100), V1 (target - pos) * .04, rise -8.
- Override: regrow decay .8, alternate .8, overgrowth_limit 1, new `start_health 7` + `hard_share .8`; choice forced
[0, 1, 2] with no options (failed roll stays idle; the Sack's Shake only when its spawn is blocked); attacks
release 13 / ticks 24, spider enemy_limit 8; Gut's green new field `near_aimed`; mass 10 -> 100.
## guts: NpcAI::ENTITY_GUTS 005153b0 (40.0). Skipped (matches)
- Wall crawl push 3 * aiFloat (1) / f under *.6 (scarred 3.3, slog 2.45), splat .7 rand every 5 (frameCount +
index): Flash's border 3 / .6 and splatter period 5 / .7. HP 25, mass 10 match.
## baby / angelic_baby: NpcAI::ENTITY_BABY 0052ae30 (38.0 / 38.1). Changed
- Friction *.7; while ProjectileCooldown < 1: v += .33 unit(Isaac) / f (hover .33 / .7 matches).
- Attack every tick: cooldown < 1 and IsTargetInAttackRange(200, 0, 7) -> cooldown 35, Attack. Shoot: sound 0x2c,
FallingAccel -.05, VelocityMulti 1.07, speed 8 (10 hard): mode 0 (38.0, 38.1 subtype 1) or mode 2 (38.1).
- Teleport (matches Flash's charge): V1.x +20 a hit, +1 a tick aligned within 20 and 400 away, + .1 rand; above 20
seek spots 60-310 away (38.0: off Isaac's axes by 20 and 200 from him; 38.1: 50-120 from him), above 40 Vanish,
25 ticks later Vanish2 there.
- Override: firemode cooldown 5 x period 7 -> cooldown 35 x period 1, range 240 -> 200, shots 7.49 -> 8.56 (10.7
in hard via `$if mode hard`), Baby still (mode 0), Angelic mode 2's fan (1, 0), .9 (.961, +-.276) boosted.
## b_licker: NpcAI::ENTITY_LARRYJR 0046a0f0 (89.0). Changed
- Head: MoveRandomlyAxisAligned(2) (variant 0 of the routine), friction *.8 at the end; segments FollowParentSegment
(1, 18, 20); sound 0x43d with a 120 delay on 119 / 120 ticks; damages the grid cell 40 ahead.
- Override: move corridor -> roam 2 (as Grub, 239), corridor_retry removed. Left: the 40-ahead grid hit.
## vis / double_vis / chubber: NpcAI::ENTITY_VIS 0052c720 (39.0 / 39.1 / 39.2). Changed
- MoveRandomlyAxisAligned(.7), friction *.8; no splat. IsFrame(3, index): within 20 on an axis, < 400, on camera:
V1 = ToCardinal, state 9 (state 10 for the Chubber); a laser warning SpawnFollowingEffect198(V1, 0x1c = 28 ticks,
.8, 4) along each beam (none for the Chubber).
- Shoot (Rep frame 29 of 79 for Attack01, 31 of 82 for Attack02, 19 of 69 for Attack03): Entity_Laser::ShootAngle
(1, pos + 6 V1, timeout 32): 39.0 along V1; 39.1 also -V1. Chubber: 39.22 spawned with V1 * (22.4, 16).
- Override: move corridor -> roam, splatter removed, lasers from 29 to 61 (vis) / 31 to 63 (double), warning
{28, 4}, Chubber release 19 (Flash's Spawn 18).
## mr_maw: NpcAI::ENTITY_MRMAW 00517de0 (35.0). Changed
- Body FindGridPath(.6) (Mr. Red Maw .8); while its head is out only friction *.7 (the .3 / .4 path is the
controlled one). Groan 0xa5 (variant 0, direct path). Head 35.1: IsFrame(4), Isaac + vel * 3 within 130 with
CheckLine(2): v = 14 unit / f, cooldown 30; reeled at (1.4 - .7 clamp((cd + 30) / 45)) / d, friction
*(cd * .0028 + .9); docks within 5 under 15. Body dead -> head Morph Maw; head dead -> body Morph Gusher; 1 in 1000 a
tick frees the head.
- Override: move chase .66 -> path .6, tether lead 1.5 -> 3, groan sounds. Left: the head is Flash's Maw (Rep's
35.1 has its own 25 hp).
## knight / selfless_knight: NpcAI::ENTITY_KNIGHT 005135d0 (41.0 / 41.1). Changed
- Walk MoveRandomlyAxisAligned(.75; 1.25 Selfless), friction *.8. IsFrame(3, index): target Isaac + vel * 16 rand
(clamped 20), within 20 of its cell's axis, < 200, CheckLine: charge v += unit (x 1.65 Selfless) / f under *.8, the
cross axis eased .1 to its cell; ends on a grid hit (v * .01).
- Override: lane walk corridor -> roam (as Loose Knight), speed 1 -> .75 (Selfless form keeps 1.25 / 1.65),
charge prediction 8 -> 16.
## hopper / trite / flaming_hopper / keeper / leaper: NpcAI::ENTITY_HOPPER 00526470 (29.0 / 29.1 / 54.0 / 86.0 / 34.0). Changed
- Rep's shared hop (pass5_g3.md): wait 0 (Trite 15); r = 0 (Trite 50u + 70u, Flaming Hopper 50u); range 130 + 1.3 r;
Isaac + offset * r / 200 (Flaming Hopper + his velocity * 5) else a random spot r + 95 away; pull offset * .05 / f
(.1 of it before Jump), unit / f within 30, friction *.7; ends within 10 or slow. Land: sound 0x45 only for these.
Flash's hop_walker pushes min(3 + .075 r, .1 d) instead (capped): replaced by the scripted spring hop.
- Keeper: idle, no target, cooldown < 1, Isaac within 200 with CheckLine(3): Shoot (Rep frame 6), FireProjectiles
mode 1 at 7 (two at (.961, +-.276), fall -3 / .1, unboosted); cooldown 2 = two hops before the next shot.
HP 36 (Flash 40 x .475).
- Leaper: rand%7 at every clear target -> BigJumpUp (friction *.8; from Jump the lerp to Isaac + .02 a tick,
untouchable), BigJumpDown until Land: FireProjectiles mode 6 at 9 (12 hard).
- Override: behaviour replaced by scripted spring hops on Flash's Hop clip; Trite form variation [50, 70] and
cooldown 15, health share 1.5 -> 1 (both 10 hp); Flaming Hopper variation [50], lead 5; Keeper a Shoot attack
(release 6, fan at 7, still) chained to two hops (as Ministro); Leaper LeapUp / LeapDown with close_in .02 and a
cardinal 9 (12 hard) on Land. Left: the hard-mode eternals' hop extras (Flash only), the Hopper's ignite into a
Flaming Hopper on fire damage (the floor-hazard ignite stays), the Keeper's shot pose by facing.
## embryo: NpcAI::ENTITY_EMBRYO 0050a6b0 (77.0). Changed
- Friction *.8; MoveRandomly (.5 / f) until the "Walk Sad" clip's Landed event (frame 18 of 24), then no push and
friction *.7 more; sound 0xcd on Landed. MoveRandomly keeps its target until it arrives.
- Override: move wander -> hop, idle_cycle brake .6 from Brake (20) -> .7 from 18 with new field `held` (no move
from the brake frame, target kept across loops).
## host / red_host: NpcAI::ENTITY_HOST 005111b0 (27.0 / 27.1). Changed
- IsFrame(7, index) while closed: cooldown < 1, Isaac within 240, CheckLine -> state 8 (Shoot), cooldown 7 (counted
down on those ticks): 49 ticks. Shoot: FireProjectiles(unit * 7, mode 2 (Host) / 5 (Red Host)), FallingAccel -.05,
VelocityMulti 1.07: boosted. Hurt while closed delays opening (stateFrame += dmg / 2, cap 10).
- Override: firemode cooldown 10 -> 7; Host fan (1, 0), .9 (.961, +-.276); Red Host mode 5's (1, 0), (.978, +-.208),
(.914, +-.407); HP 15 -> 14 (Red Host share 1.0714 keeps 15). Left: the opening's 3-px knockback within 120.
## brain: NpcAI::ENTITY_BRAIN 00512110 (32.0). Changed
- MoveRandomlyAxisAligned(.75), then velocity * (.85, .8). IsFrame(7, index): Isaac + vel * 16 rand, aligned 20,
< 200, CheckLine: charge unit / f under *.8, eased to the cell; red creep scale 1.23 every 12 ticks (24 with 5+
alive), also at the half-period while faster than 3; splat .2 + .39 rand every 3 ticks.
- Override: lane walk -> roam, charge prediction 8 -> 16, splatter scale_random .5 -> .39.