Files
isaac-port/notes/characters/characters_11.md
T

9.1 KiB

Characters pass 11 (isaac-classic rif/characters-11)

What the port took from the code. Reprint any function with ./decompile.sh 0xADDR; Entity_Effect::Update cases are read with ./decompile.sh --asm from the case address (variant jump table at 0x606f8c, index = variant - 1).

Dark Arts snare pitch (FUN_00794e50 Entity_Player::update_effects)

  • Each snare (1000.194) made: SOUND 507 (tooth_and_nail_tick) at pitch subtype * 0.05 + 1.5; the first snare's subtype is 0, each next one previous + 1 (FUN_00435cd0 after SetChild/SetParent).

Dark Esau (NpcAI::ENTITY_DARK_ESAU 0x5542e0, type 866) the rest

  • State 0: with spawn flag 4 (his first coming: FUN_007b0070's spawn) plays Appear, shadow 0, spawns his pit 866.1 at his place (entityRef +0xbec, the pit's +0x3c0 = him), collision class 0, state 0x10; else Idle, collision class 4, state 3. AddPersistentEntity: later rooms bring him in idle.
  • State 0x10: friction x0.8; on Appear's Shoot (frame 46): SOUND 305 ghost roar, ShakeScreen(10), collision class 4, shadow back, stateFrame 12; then each interval tick while stateFrame > 0: FireProjectiles(pos, (8, 8), mode 9 = ring of 8 at speed 8, params Variant 2 (fire), BulletFlags 0x80 (HIT_ENEMIES), FallingAccelModifier 0.3; subtype 1 gets a Color(1.2, 1.2, 1, ...) tint), stateFrame--. Animation over: state 3, Idle. While entityRef is a 866 (the pit) his velocity = pit - him (+-10 with a partner).
  • Pit (variant 1): state 0 SOUND 616 (dark_esau_open), HoleOpen, invincible, no collisions, sorting layer 0; state 3 ShakeScreen(6) on HoleOpen's Shoot events (frames 2, 23, 44), HoleIdle when HoleOpen ends, stateFrame > 150: HoleClose, state 0x10; finished: removed.
  • Pre-update pass (b74 1), states 8/9 while the dash animation (looping) plays: QueryRadius(pos, 10): vulnerable enemies (not him, not flag 0x20000000) TakeDamage(9 + stage, countdown 30) + AddBurn(150, 5.0); projectiles (type 9, alive, not flag 0x80000000) killed (velocity 0, +0x173 = 1).
  • Collision pass (b74 3): unless the spawner player's +0x20a9: an NPC collider not in his hit list is added and takes 30 (0x41f00000), countdown 30; his +0xb80 = 0.
  • Birthright (0x26b) on the spawner: no child yet and in the room: state 0 without the appear flag spawns 866.0 subtype 1 at +10 (child/parent linked); during Appear before frame 6 it is spawned playing Appear in sync (state 0x10); otherwise state 0xd "Split": when Split ends, the child spawns, both take Charge's last frame, state 8 with stateFrame -8 and dash apart ((-1, 0) / (1, 0)), ground poof, SOUNDs 305, 483, 592 at pitch 0.6.
  • Partner terms in state 3: the goal distance 80 when he is "far", 20 near the partner, accel 4 past 300 px; a Charge needs the partner idle (state 3, i1 < 1) and within 200 of the goal; the partner charges with him.

Umbilical baby past the fling (FUN_00431be0, rope force FUN_00434e70)

  • updateTime <= 10 (the fling): the cord points are the Bezier + sine (characters_10); hits only ticks 5..10.
  • Past tick 10 with fire held: velocity = 0.85 * velocity (timescale-corrected) + 0.2 * max(0, (d - 160) / d) * (player - baby) + aim * 2 (local_e0/uStack_108 = the aim); reeling (fire let go): state 1 keeps the offset, state 2 eases in over 5 (puVar7[0x51] 5 -> 0), removed when it goes under 0.
  • The rope (points x, y, z with velocities, n = UmbilicalBabyData +0x14 = 10): RK4 with dt = speed multiplier, each point's acceleration = -0.1 v - 0.7 * (stretch past 90 / n) * offset to each neighbour, z += 0.05 - max(0, 0.5 z); point 0 pinned to the player (+ body move dir * (6, 2), z -13), the last to the baby (z -20), velocities 0.
  • Reeling rope: u = i / (n - 1), base = lerp(player, baby, u), side = normalized(baby - player) turned 90 degrees, goal = base + side * sin(2 pi u c) * (5 - c) * 4 (c the reel counter), z goal = -20 u - 15 (1 - u); mixed in by f = 1 - (c / 5) * 0.8.
  • Hit pass: damage = collision damage (GetTearHitParams(10, 1.0)) * 3; T.Lilith (0x20) with Birthright and a child chain: p = min(1 + links, 30), radius 16 + p, damage + 3 a link (at most 29); BFFS! (0xf7) radius x1.5. Grid cells in the capsule's box: GridEntity::Hurt (vtable 4). Entities in query_player_capsule_hits: NPCs (not friendly, hit list, types 0xf5 and 0x124 not listed): fire places (33 not variant 11) TakeDamage(1000), shopkeepers (17) skipped, else velocity += dir(player -> it) * 900 / (mass + 50) / friction (unless flag 0x4000000), TakeDamage(damage), on a hit SOUND 77 at pitch 1.5 + ApplyTearFlagEffects; the cord point nearest the baby kept for the splash. Bombs (4, not her own carried ones, hit list): velocity += dir(player -> it) * 18. Projectiles under 50 high: Reflect at 18. Her own tears with some flags: velocity = dir(baby -> it) * 18 * 1.25. Pickups (not 100, alive, collidable, not flag 0x4000000, hit list): velocity += dir(baby -> it) * 18. First hit of a fling: SOUND 0x1ef + 1000.2 subtype 2 at the nearest point, velocity * 6, offset (0, -15). The same 1000.2 bursts where the baby first shows.
  • Entity_Familiar::FollowParent (00612bb0), IsLilithBirthrightIncubus (00612af0: T.Lilith + Birthright + weapon 0xf + follower): followers cling to the whip's baby: random angle (from their init seed) * (detached count + 5, x1.5 BFFS!, + baby size * 0.3), turned by the baby's facing (UmbilicalBabyData +0x154), velocity = target - position; the first links itself as the baby's child (+0x3c0 chain).

Tainted Azazel the rest

  • Entity_Laser::damage_entity (0097e3c0): a hit on a FLAG_BRIMSTONE_MARKED (bit 56) NPC by a thick laser (is_thick_variant) plays SOUND 77 at volume 0.7, sets FLAG_EXTRA_GORE (bit 55) and deals damage * 2 + 3.
  • Entity_NPC::trigger_kill_item_effects (006d5400): an NPC dying with both bits marks every vulnerable enemy in reach for 150 (AddBrimstoneMark), copies its slow (its own slow value, a light blue colour), poison (its tick damage), midas freeze else petrify, shrink else fear, charm, confusion, burn, bleed (FUN_006b7280), ice and bait for 90 ticks each, and deals 10 (countdown 30), then a blood poof. TEAR_EXTRA_GORE (tear flag bit 120) also sets the gore flag in ApplyTearFlagEffects; GetTearHitParams adds it for weapon 10 under Berserk!.
  • Weapon::FireBrimstone (009f5f40): Entity_Laser::ShootAngle timeout 3 when the flags hold 0x200 without 0x80 and no Brimstone (0x76) item, else 9; scale x0.5 and mass x0.5 under 0x200 without Brimstone; variant 9 with Technology.
  • fire_hitscan (00a01020): Birthright's scale 2 only moves the capsule centre (2 * 26 + 12 ahead) and grows its spray (1000.2 subtype 3, 1000.111 velocity * 8 * scale); Capsule(centre, (1.5, 1.0), angle) itself is unscaled.

The Forgotten / The Soul

  • Weapon_Bone::Fire (009fa450 ~line 740): released with charge (+0x14) > 1: share = max(0.2, min(charge, 3 * MaxFireDelay) / (3 * MaxFireDelay)); range = player +0x1480 (260 without a player), capped 300, 100000 with Tiny Planet (0xe9), x0.9, at least 200; Entity_Knife::Shoot per knife.
  • The Forgotten Chain 1000.114 (Entity_Effect::Update case at 006040d8): subtype 0 spawns 8 links (subtype 1, +0x474 = i / 10 for i 2..9). Each tick: unless its target is The Soul (0x11) with Birthright: anchor = parent (+0x3c0, the body) + target position (+0x334); d = soul - anchor; past +0x478 (120.0: Entity_Player::room_enter 007a6c50 and FUN_007cb090 set it): soul velocity += d * (120 / |d| - 1) * 0.01; in room type 16 the body is pulled back by half of it too.

Tainted Magdalene the rest

  • The kill drop (in the death pass dumped under 006bbdc0): with any player 0x16 (not a coop baby, not +0x20a9) or a temporary effect of item 0x72: on (seed & 1) == 0, or always when the kill damage flags hold 0x20000000 (the club knife's, Entity_Knife::UpdateSwingHits adds it under entity flag bit 34), a 5.10.2 half heart at a random angle, speed 2 to 5, timeout 60.

Tainted ??? the rest

  • Death (Entity_Player::Update at the Death clip's DeathSound, push at 00789bac): SOUND 217 (not a hologram); type 0x19: Game::ButterBeanFart(pos - (10, 0), 120, player, 1, 0), an ENTITY_POOP 245 at pos - (10, 0), six 1000.99 gibs (direction (-1, 0) turned -20..20 degrees, speed 6..26), then while i < poops and i <= 18: a 5.42.0 nugget at pos - (4, 0), velocity (-1, 0) turned -20..20 at 3..9, AddPoopMana(-1). Vector::Vector (00a0fe90) takes x in XMM1, y in XMM2.
  • Liquid poop: 1000.195 subtype 1 (a spawner, parent the player at +0x3bc): every 3 interval ticks a 1000.195 subtype 0 puddle at the player (damage GetTearPoisonDamage = +0x157c melee damage, sprite scale 0.8 + 0.4 random, timeout 450) and a 1000.43 effect; parent gone or dead: removed. Its life is the spell's 36.
  • The shared player creep pass (end of that case, 005e8ee0): for each live, collidable player inside the puddle (size
    • scale + player size, the creep texel's alpha > 0.5): FUN_007d8740(creep flags +0x450, 4) (player +0x2024 = min(+4, 4), +0x2028 = the flags, EvaluateItems on a change); with creep flag 0x40 also FUN_007cbc60(4): the hallowed ground countdown (+0x1d90) = min(+4, 4); ground players (grid class 5) get the creep's footprint colour.
  • EvaluateItems: tear colour colorize (5, 6, 6, 1) for Sacred Heart (0xb6) or _hallowedGroundCountdown > 0.