89 lines
7.2 KiB
Markdown
89 lines
7.2 KiB
Markdown
# Pass 7 engine work (2026-10-25)
|
|
|
|
isaac-classic branch rif/monster-fidelity-10. The pass-6 leftovers (pass6_engine.md "Left from the proposals") built
|
|
as generic engine fields, the three approximations made exact, the shot-boost finding, and the cheap proposals of the
|
|
pass-7 groups (pass7_i1..i7.md, pass7_a1.md). The data side is in each record's reference note (monster-fidelity-10).
|
|
|
|
## rotten_gaper_10_3_3 / _5: NpcAI::ENTITY_ROTTEN_GAPER 004da590. Changed (engine: evade, speed_near, hover_side, hover_blind_path)
|
|
- Subtype 3 does NOT follow a partner (pass5_g1 misread it): with Isaac farther than 80 (6400 squared) it latches
|
|
(QueryRadius 60, asm 004da8f1: DAT_00baa950 = 60) the first rotten gaper of the same type and variant but another
|
|
subtype, i1 = rand%15 + 30, and while latched runs PathFinder::EvadeTarget 007e4940 from it (push 1.5 * speedMult /
|
|
f, f then *.8: net 1.2 under .8). Field evade {types, beyond 80, radius 60, retention .8, push 1.2, ticks [30, 15]}.
|
|
- Subtype 5: aiFloat .6 * 1.9 times .75 + .25 clamp((d - 80) / 100) (speed_near {80, 100, .75}); Room::CheckLine
|
|
clear: aim = Isaac + Resized(target -> (pos + Resized(rotate(v, rand*40-20 deg), d)), 60) (hover_side {60, 20}),
|
|
v += speed * unit, f *= .9; blocked: FindGridPath(Isaac, aiFloat, -1) (hover_blind_path true).
|
|
|
|
## mothers_shadow: 0056ffa0 (boss). speed_near {span 600, stop 80}, hover speed 6: Rep's 6 * clamp(d / 600) beyond 80.
|
|
|
|
## cultist: NpcAI::ENTITY_CULTIST 004ed840. Changed (engine: spot around always, spawn_vulnerable_after)
|
|
- State 3: friction *.75; v += unit(heading) * (.7 + 1.7 rand), the heading eased by approach_angle; arrival 10
|
|
(100 squared; variant 1: 24). Picks: cooldown out, rand&3 == 0 and corpses (Room+0x7300 list, not 885.0) -> their
|
|
centroid within 160 of the nearest, I1 2 (Respawn on arrival). Else: when the room's enemy list is non-empty, 50 px
|
|
past the enemy nearest Isaac (on the line from him) plus RandomVector * 40 rand (not ported); else Isaac's offset
|
|
turned rand*240-120 deg, resized 50 + 40 rand; clamped 60 into the room; variant 0 always armed (I1 1).
|
|
- Purple Ball (RAG_MEGA 00495610 state 4): only a ball whose V2.y the Cultist set (210) counts it down; below 15
|
|
(V2.y / 30 < .5) its colour goes black and _isInvicible = 0: 195 ticks. Rag Mega's balls (V2.y 0) never.
|
|
|
|
## movable_tnt / hornfel_decoy. hit_health {steps, heavy, heavy_above, blast}: a set loss a hit (TNT 1 or 2, blast 4;
|
|
decoy 1 or 2, past 10 damage 2 or 3) and remains (TNT's Blown rubble as a held look). TNT hp 4 -> 3 (Rep floors at 1
|
|
and blows at 1).
|
|
|
|
## pitfalls 291.x (00492550). grab squash 2 (SizeMulti (1, .5)), aura pull -1.5 within 40 until Swallow.
|
|
|
|
## adult_leech (004d9000). charge_ramp within 500 (push grows only within 500 along x) and wall_next_speed 10 (the ring
|
|
of 12 at 10, FallingAccel .08, fires at the wall hit; 12 ticks at .9 in MoveHori).
|
|
|
|
## the_matriarch (004c59d0, boss). spawn_cost {health 80, floors [.8, .65, .5, .35]}: never below the next mark + 1.
|
|
|
|
## the_pile: NpcAI::ENTITY_POLYCEPHALUS_the_pile 005983f0 (boss). teleport mode around (best of ten spots round Isaac at
|
|
(.8 + .2 rand) * 120, in the room, over 80 from him, scored min(d_self^2, 22500) + 2 d_isaac^2), and the dive as
|
|
GoUnder -> DirtShrink (untouchable, chase {speed 2, to_teleport}) -> ComeUp snapping on Start.
|
|
|
|
## Room::FindFreePickupSpawnPosition 00813520 (Wizoob, Red Ghost: teleport mode player). Exact now
|
|
- Arguments (pos, radius start, ...). 125 tries; each: radius += 5 (reset to 0 past 500), angle from its OWN xorshift
|
|
(s ^= s >> 1; s ^= s << 9; s ^= s >> 29) seeded 0x441c1dfd every call (the same angle sequence each time),
|
|
point = pos + (cos, sin) * radius; accepted when GetClampedPositionImpl leaves it unchanged (inside the room), the
|
|
cell's grid path value is under 600..1000 (rising as tries run out) and its collision 0, no pickup (4/5/6) or (flag)
|
|
NPC within 20. None: the clamped input. Wizoob calls it with (Isaac, 120): first spot from 125 out.
|
|
|
|
## tainted_spitty (0052db50). posed_by_facing (Attack Hori/Down/Up by its walk), shots along_facing
|
|
(GetAxisAlignedUnitVectorFromDir), turn_jitter i on shot i.
|
|
|
|
## tainted_round_worm (+ butt) (0053e4a0). shared_health "chain" (the spawn chain's one pool, one death) and
|
|
kin_attack {Next, DigOut, 4} (its butts surface one after another).
|
|
|
|
## tainted_mole (004fdf80). trail {spacing 12, a still rock bolt radius 20, 10 enemy damage, half a heart}.
|
|
|
|
## sub_horf / tainted_sub_horf: NpcAI::ENTITY_SUB_HORF 0055fb60. move spin + spin_slide
|
|
- A pending hit: velocity = unit(pos - last damage source), raised to 8 when slower, stateFrame 15. Angle V1.x (degrees,
|
|
heading (cos, sin)(V1.x + 90)); pose Shake00..11 = floor((wrap(V1.x - 180) + 180) * 12 / 360).
|
|
- Variant 1 unhit (stateFrame < 1): v += .2 unit(target) / f, V1.x = atan2 - 90, f *= .9; above 8 stateFrame 15.
|
|
- Else: V1.x += 2 * speed (negative when vx < 0); speed >= 1 keeps stateFrame 15, else it counts down; speed > .01:
|
|
i1 > 2 * max(1, int(K / speed)) (K 5 variant 1, 20 variant 0) fires FireProjectiles mode 0 heading * 10 with
|
|
VelocityMulti .7 (variant 1 Scale 1.4, FallingAccel -.1), sound 0x99; f *= .97. Knock direction ported from Isaac.
|
|
|
|
## rag_mans_head (00493200). steer at_player + ease [10, 2, 8, 60] at retention .8.
|
|
## fanatic (004faad0 via 004ec240), dogma_angel_baby (004b0200). hover_point (turning point round Isaac) and a blind
|
|
path speed (Fanatic .6).
|
|
## mother_ball / medium / small (00566810, 00567d50, boss). bounce_heading .125 / .1 (heading 2 / 1 kept along the throw
|
|
and reflected), wall_attack top (6 at 8 scale 2 accel -.08 + 6 at 6 scale 1.5), death_spawn even (8 at 45, 6 at 60
|
|
degrees, speed 10; the free-ray tests not ported).
|
|
## fetal_demon (004ea3d0). range_from_partner: its 240 is measured from its Vis Fatty.
|
|
|
|
## Every ported Rebirth monster: shots_still
|
|
- Entity_NPC::FireProjectiles (006cb2e0) spawns each projectile at exactly the velocity given (mode 0; modes 1-9 the
|
|
rotated copies); FireBossProjectiles (006ccdd0) likewise. Nothing adds the shooter's velocity, no x1.2, no extra rise.
|
|
isaac-classic's Flash ffmo() boost (entities.json boost_speed_scale 1.2, boost_shooter_velocity .4, boost_rise 1) ran
|
|
on every scripted shot without `still`: 470 of 495 Rebirth shots flew 20% fast. behaviour shots_still on 112 records.
|
|
|
|
## Second round (pass-7 group proposals built)
|
|
- swarm (00540df0): brood {4, 10} (each placed swarm makes 4 more: a cell is five), hover_swirl {.8, 5, 25}.
|
|
- flesh_maiden swing share .7; cloggy shot angle_alternate; bloaty direction_mirrored; lil_haunt lead_per_distance .5;
|
|
wrinkly_baby hover_standoff 120; small_leech hover speed_ramp {.0154, .336}; splurt/squirt along_push; needle/pasty
|
|
teleport range [120, 240] in mode room; splasher turret cooldown_random 30, first [20, 20]; willo attacks moving;
|
|
blurb/faceless transformation alternate pacer (11.1, now a create type) 1 in 3; whipper/snapper lane charge cone .9 and
|
|
stall {.5, 20}; ring_fly orbit limit [10, 6] and radius_wave [40, 70, .5].
|
|
- Engine bug fixed (pass7_a1 #1): an attack's impulse on frame 1 never fired (attack_begin plays frame 1 without the
|
|
move, the next tick is frame 2), and end_below cut the Dip family's hop on its first step. Now the impulse lands on
|
|
the first handled tick and end_below waits past it.
|