91 lines
7.8 KiB
Markdown
91 lines
7.8 KiB
Markdown
# Pass 6 engine work and audits (2026-10-25)
|
|
|
|
isaac-classic branch rif/monster-fidelity-9. The pass-5 (monster-fidelity-8) proposals built as generic engine
|
|
fields, the two cross-group audits, and what the pass-6 forks (pass6_h1..h5.md) asked for that was cheap. The data
|
|
side of each record is in that record's own notes; here: what the engine now does, with the Rep numbers it carries.
|
|
|
|
## Speed convention, rechecked: PathFinder::FindGridPath 007e33c0, PathFinder::MoveRandomly 007e6300
|
|
- FindGridPath: friction *= .7, then velocity += dir * min(2, d / 10) * speedMult * speed / friction (the friction at
|
|
the call). The physics step multiplies by the friction afterwards, so the net push is speed when the AI's own
|
|
friction multiplier ran before the call (Leper, Shady: none at all). isaac-classic's ground navigator does the same
|
|
(v = .7 v + dir * min(2, d / 10) * acceleration after the scripted brake): path speed = the call's argument holds.
|
|
- MoveRandomly: velocity += dir * .5 * speedMult / friction, same shape: hop speed .5 when the AI's friction came first
|
|
(Dinga, Dead Meat: *.8 at the top of the AI), .5 / f_call * f_tick otherwise (Mega Clotty: .5 / .9 * .765 = .425).
|
|
- AddVelocity / v += x / friction pushes in the AIs: the engine brakes first and then pushes, so its speed is the net
|
|
push x (the code's x / f times f). Data that took x / f as the speed was too fast; fixed: Oob hover 1.25 -> 1,
|
|
One Tooth (a lerp v += (3u - v) * .1, no friction: hover .333 -> .3; dash 3.5 / .6 -> 3.5), Tumor bounce .649 -> .45
|
|
(ENTITY_SWARMER 00518e20: +-.45 per axis / f, f = .77 * .9), Fat Bat diagonal .45 -> .36 (pushed before its .8).
|
|
- Audit of every scripted path/chase mover with retention < 1 against its notes or decompile: only Shady was off
|
|
(NpcAI::ENTITY_SHADY 005522d0: FindGridPath(.3, 900, 1) with no friction change while walking; data chase .45/.8 ->
|
|
path .3/1). Leper's subtypes (00547b60: .5 / .7 / .9 under *.9) and Begotten (homunculus routine 00539b90: 1.5 /
|
|
2.0) already matched. Dust (00503af0) keeps its mid value .7 of a distance- and alpha-scaled speed.
|
|
- Projectiles: isaac-classic's enemy shots already fall as Entity_Projectile::Update 00653070 does (fall speed * .9 +
|
|
.1 + accel each tick: player.json/entities.json fall_retention .9), so ported fall values need no rescale.
|
|
|
|
## level_2_fly / full_fly: NpcAI::ENTITY_FLY 00506bd0 (0xd6, 0xf9). Changed
|
|
- The steering push min((|a| - 25) * .08, 1.2) is doubled for 0xd6 / 0xf9 / 0x333 (not under Skatole): acceleration
|
|
2.4, gain .16 as Fly Bomb. Every fly draws V1 = (RandomVector * .6 + V1) * .4 on frame % 4 == 1: drift .6 / .4 (the
|
|
records had the Flash attack fly's 1.2 / .8).
|
|
- The aim is turned before the y * .5: 0xd6 and 0x333 (dx - dy, dy + dx), 0xf9 (dx + dy, dy - dx). New flying_chaser
|
|
field steer_turn (+1 Level 2 Fly and Fly Bomb, -1 Full Fly).
|
|
|
|
## oob / dark_one: NpcAI::ENTITY_OOB 0053ab40, NpcAI::ENTITY_DARK_ONE 0045d7d0. Changed (engine: flyby wraps/steer)
|
|
- attacks[]/flyby now runs from lunge_from, carries over a hand-over to another flyby attack, and with wraps comes in
|
|
past the other wall instead of turning back: Oob 25 from Charge's Shoot, past 160, one wrap; Dark One 22 from the
|
|
Charge event, past 100, two wraps, steer [.01, .4] (vy += clamp(dy / 100, +-.4)), retention .8. Oob's hover pull
|
|
now weights y three times (hover_scale [1, 3]).
|
|
|
|
## one_tooth: NpcAI::ENTITY_SKINBALL 005381c0. Changed (engine: hover_orbit, hover_swoop)
|
|
- hover_orbit {share .85, period 20}: aim = Isaac + vel * 20 + V1 * .85 * distance, V1 redrawn every 20 ticks.
|
|
- hover_swoop 40: the unit's x is the facing sign, flipped once the aim lies 40 past the other way.
|
|
|
|
## crispy, fat_bat, eggy, dinga, pon, ulcer, blind_creep (pass5_g2..g4 routines). Changed (engine)
|
|
- crispy (0054a350): speed_hp {from .9, to .4, speed [.6, 1.1], retention [.8, .95]}, Rep's continuous heat.
|
|
- fat_bat (00540510): tear_dodge {100, .4}: per tear heading at it within 100, a push off the tear's line of
|
|
(1 - d^2/10000) * .5 * min(|toIsaac|^2, 10000)/10000 (.4 net of its .8), averaged; touching a grid, 1 in 2 doubled back.
|
|
- eggy (00526470): death_spawn on "Spawn" (ten anm2 events on Die at AtFrame 9, 12, 15, 18, 21, 26, 32, 38, 52, 67 =
|
|
Rep's stateFrame 2..60 after the Jump reset) with speeds [[5, 6, 5], [8, 10, 9], [10, 13, 7]].
|
|
- dinga (0051c040): attacks[]/shove {dip, 150, .1, Shoot}: every Dip within 150 pushed (150 - d) * .1 away.
|
|
- pon (ENTITY_HOPPER 0x348): spring redraws 10.
|
|
- ulcer (0053e4a0): spawn_when [{seen_chance .75, enemies_below 7}] and its shot gated unless_spawned. Its DigOut, like
|
|
the Tube Worm's, had a teleport and no release: both now take a Teleport event on DigOut's first frame.
|
|
- blind_creep (0053c0d0): wall_wander_flip 2 (end to end, turning back on rand & 1 after each Shoot).
|
|
|
|
## round_worm family / wizoob: NpcAI::ENTITY_ROUND_WORM 0053e4a0, NpcAI::ENTITY_WIZOOB 005374a0. Changed (engine)
|
|
- teleport mode room: room centre + RandomVector * (60 + 250 rand), clamped 20, free, on rand & 1 when 100-1000 from
|
|
Isaac (round, night crawler, roundy, ulcer, tube and the tainted worms).
|
|
- teleport mode player: free_spot_find from 120 off Isaac at a random angle (Room::FindFreePickupSpawnPosition(Isaac,
|
|
120)) for Wizoob.
|
|
|
|
## fat_sack / evis: NpcAI::ENTITY_FAT_SACK 00530a80, NpcAI::ENTITY_EVIS 004df3f0. Changed (engine)
|
|
- untouchable true (the whole clip) and open-ended windows: Fat Sack's Jump, and Land until Hit.
|
|
- tether hold_next + while_tethered: Evis' Pull only after its guts caught Isaac, looping while they hold him.
|
|
|
|
## little_horn / rag_man: NpcAI::ENTITY_LITTLE_HORN 00490680, NpcAI::ENTITY_RAG_MAN 00493200. Changed (engine)
|
|
- attacks[]/rest {ticks, random, attacks}: counted from the attack's end back to idle, only the listed attacks wait.
|
|
Little Horn's chain-ending Returns rest the teleports 75; Rag Man's shots rest each other 90, the head throws free.
|
|
- flee_drift {radius 190, gain .03, wander 1.2, redraw 50, cap .8, margin 100}: Little Horn's state-3 drift.
|
|
- spawn_ring 8.75: the teleport pitfalls i/n turns from Isaac's heading.
|
|
- shots[]/along_motion + burst wait [40, 20]: headless Rag Man's homing shot at 5 along its velocity every 40 + rand%20.
|
|
|
|
## portal: NpcAI::ENTITY_PORTAL 00543720. Changed (engine)
|
|
- spawn_cap capped_cooldown [60, 30]: capped, the retry waits 60 + rand%30 (Portal, Lil Portal).
|
|
|
|
## adult_leech / dead_meat / the_matriarch / min_min / the_adversary (pass6_h1, h2, h4). Changed (engine)
|
|
- adult_leech (004d9000): charge_ramp {from .5, step .2, cap 5, steer [.12, 2, 10]} under .86 replaces charge_speed 12.
|
|
- dead_meat (0051c040 v2): shots[]/angle 22.5 (CircleAngle .3927) on its eight.
|
|
- the_matriarch (004c59d0): spawn_speed may be negative: flinch Fistulas thrown away from Isaac.
|
|
- min_min (004cf690): a single spit rests the Spin 45 (ProjectileCooldown 45); the_adversary (0045e050) Scream:
|
|
chance .75, rest 180 (no new scream while its darkness lasts).
|
|
- dogma_angel_baby (004b0200): its 500-health shield as spawn_armor {470, drain 3.5}.
|
|
|
|
## Left from the pass-5 / pass-6 proposals
|
|
- Rotten Gaper's line-of-sight hover and partner follow (g1 #2, #3); Cultist's cooled spot round Isaac (h1 #1);
|
|
hit-count health, rubble, pit-on-contact, timed vulnerability (h1 #2-5); own-spawn cap on a landing shot (h1 #7);
|
|
wall-hit shots (h2 #2); spawn health cost (h2 #3); distance-scaled hover (h2 #5, g1 speed_near); underground travel
|
|
(h2 #7); lunge_keep (h2 #8); walk-axis shot lines and per-shot jitter (h3 #1); chain health pools and chained
|
|
surfacing (h3 #2); damaging underground trail (h3 #4); Sub Horf spin-slide (h3 #5); projectile flag 1 << 54 (h3 #7);
|
|
seek_point (h4 #1); player_below gate (h4 #2); offset-spot hover (h4 #3); partner command (h4 #5); Visage freed
|
|
phase (h4 #6); steer at Isaac with eased speed (h5 #1); turning orbit point + path fallback (h5 #2); top-wall
|
|
attack (h5 #3); even death spawn spread (h5 #4); heading bounce (h5 #5); partner-distance range (h5 #7).
|