notes: Dogma shots (Godhead halo, Jacob's Ladder tech dot), Scream rewrite, brimstone hits and steering
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5d1b595294
commit
d864e2a938
2 files changed
+71
No files matched your search
@@ -1449,3 +1449,4 @@
|
||||
00839b80 BeastArena::init ? no Ghidra function; called by Room::Init with ECX=Room+0x776c: active if stage 35 type 16, loads gfx/backdrop/hell/background.anm2, zeroes scroll (beast.md)
|
||||
007fe220 Room::card_against_humanity_fill Room::Update calls it while flag 0x11f4 (Room::SetCardAgainstHumanity) is set; it clears the flag and puts a poop (33% black with Meconium) on every free interior cell not under an entity; 1 in 8 an effect 1000.33 at a player (trinkets-cards)
|
||||
006b5e20 Entity_NPC::hold_set NPC field 0x3f0 = max(it, ticks), 0x3f4/0x3f8 = spot: holds it in place (Emergency Contact, 150) (trinkets-cards)
|
||||
0097e3c0 Entity_Laser::damage_entity adds the entity to the hit list, then TakeDamage: player (1 player) 1.0 DAMAGE_LASER source = spawner, countdown 30; others laser damage with tear flag effects (dogma_effects.md)
|
||||
|
Can't render this file because it contains an unexpected character in line 18 and column 80.
|
@@ -139,3 +139,73 @@ posOffset (0, -30), source Dogma)`. Fields: +0x358 DepthOffset = -50 when aiming
|
||||
eased 0.1 a tick toward the player. With that flag `HomingLaser::build_bezier_path` 0099c790 bends the beam: a bezier
|
||||
from the origin through `_targetPosition` (control points at 0.333/0.666), then straight on from it to the wall
|
||||
(CalculateEndPoint). So it is a curving brimstone that tracks Isaac, not a homing or MaxDistance laser.
|
||||
|
||||
## dogma_projectile_flags (Entity_Projectile::Update 00653070, 9.0 from 950.0)
|
||||
- Art: a 950-spawned shot with GODHEAD or LASER_SHOT (high dword & 0xc000, 006534fb) uses "DogmaElectricTear%d"
|
||||
(else "DogmaTear%d"), DepthOffset 300, field 0x158 |= 0x20.
|
||||
- Dogma's shots: JacobAttack (state 9) on each "Shoot": sound 550, 3 + (rand & 1) shots at random angles, speed 7,
|
||||
ProjectileParams FallingSpeedModifier rand * 3, FallingAccelModifier -0.096, Scale 1.5, flags high 0x4000
|
||||
(LASER_SHOT). Godhead (state 11) "Shoot": sound 549, FireProjectiles mode 9 with (7, 8) = a ring of 8 at speed 7,
|
||||
CircleAngle pi/8 on even stateFrames (0 on odd), FallingAccelModifier -0.08, Scale 2.0, flags high 0x8000 (GODHEAD).
|
||||
- GODHEAD (bit 47), at FrameCount 1 (00653d82): one 1000.123.4 "Static Halo" at the shot's pos/velocity, spawner =
|
||||
the shot's spawner, sprite scale = shot Scale (0x420) on both axes, parent = the shot.
|
||||
- LASER_SHOT (bit 46, 00657c46), only when the shot dies (inside `if (_dead)`, with its impact effects): if it has no
|
||||
target (+0x3c4), target = Game::GetNearestTargetPlayer(pos, 5000) (GetNearestEnemy when the spawner is charmed
|
||||
(EntityFlag 0x100) or the shot has CANT_HIT_PLAYER 1<<31). Spawns 1000.126.1 (Tech Dot) at the shot's pos, spawner =
|
||||
the shot's spawner, colour (1,1,1,1) + (2.5, 2.5, 2.5) offset, targetPosition = unit(target - pos) (or
|
||||
-unit(velocity) without a target). The direction is fixed then.
|
||||
|
||||
## static_halo (Entity_Effect::Update case 006064cc, 1000.123.4)
|
||||
- No parent (the shot is gone): velocity 0, play "Disappear", Remove when it ends.
|
||||
- With the parent: pos, velocity and posOffset copied from the shot each tick. Unless the halo is friendly,
|
||||
QueryRadius(pos, 40 * sprite scale x, partitions 0x21 = familiar | player); each with collision class != 0 gets
|
||||
TakeDamage(0.0, DAMAGE_POISON_BURN 1<<15, source halo, countdown 30) every tick. Entity_Player::TakeDamage 007729d0
|
||||
only logs a 0-damage record for amount <= 0 with that flag and returns 0, and Entity::Update skips records with
|
||||
amount <= 0: so it does not hurt Isaac. It never steers the shot (no homing).
|
||||
|
||||
## tech_dot (Entity_Effect::Update case 005f9b88, 1000.126.1)
|
||||
- Init: sprite rotation random * 90, random FlipX, layer 1 hidden; subtype 1: timeout 60, sound 557 (jacobs ladder
|
||||
laser) pitch 0.9 + 0.2 rand. Anims: Idle 32 loop, Disappear 14 (no events).
|
||||
- Timeout end (or a "Shoot" event, none in this anm2): play Disappear; once (state 0 -> 1), if targetPosition != 0:
|
||||
`Entity_Laser::ShootAngle(2 = thin red/tech, pos, angle(targetPosition), timeout 10, posOffset = dot's, source = the
|
||||
dot's spawner (Dogma))`, laser spawnerType/Variant copied, +0x4e4 DisableFollowParent = 1, laser colour = dot's;
|
||||
for spawnerType 950: disableInitSound and sound 551 (jacobs ladder laser_1) pitch 0.9 + 0.2 rand. No MaxDistance:
|
||||
to the wall. Subtype 1 does no contact damage. Removed when Disappear ends and it has no child.
|
||||
- Dogma's death "Sound" sets every 950-spawned 1000.126 to state 1 (no beam).
|
||||
|
||||
## dogma_scream (NpcAI::ENTITY_DOGMA case 0xd, state 13)
|
||||
- While stateFrame < 15 (reset to 0 with V2.x = 0 on "Scream"'s "Shoot": shockwave, sound 552): ShakeScreen(4),
|
||||
V2.x += 40 * ts; every projectile with type 9, spawnerType 950, subtype 0 and dist(Dogma, shot) <= V2.x is rewritten
|
||||
once (subtype := 1 marks it; i1 counts them):
|
||||
- SetColor((1,1,1,1) tint with 8 as the next component, i.e. a flash, 12 ticks, priority 255, fade);
|
||||
- 0x410 Height = -27.5, 0x414 FallingSpeed = -1, 0x418 FallingAccel = -0.085;
|
||||
- 0x428 CurvingStrength = -2, 0x42c Acceleration = 0.85, 0x3c4 target = Dogma's player target;
|
||||
- 0x438 ProjectileFlags low |= 0x8080000 (CURVE_RIGHT 1<<19, ACCELERATE 1<<27), high |= 3
|
||||
(CHANGE_FLAGS_AFTER_TIMEOUT 1<<32, CHANGE_VELOCITY_AFTER_TIMEOUT 1<<33);
|
||||
- 0x450/0x454 ChangeFlags = its old flags without ACCELERATE; 0x458 ChangeVelocity = 2.0;
|
||||
0x45c ChangeTimeout = int(entity time +0x3a4) + 20.
|
||||
- Behaviour: for 20 ticks the shot curves and slows: each tick (00658ea2) v += (-vy, vx) * |v| * CurvingStrength * ts
|
||||
then back to |v| (CURVE_RIGHT with -2: it turns the other way, counter-clockwise on screen), then v *= 0.85^ts
|
||||
(ACCELERATE). When the 20 ticks are up (GetIntervalTicks(ChangeTimeout) crosses then): velocity resized to 2
|
||||
(CHANGE_VELOCITY) and its flags swapped back to the old ones (CHANGE_FLAGS), so it carries on at speed 2 with its
|
||||
original behaviour. The player target only matters if those old flags home (it does not seek on its own).
|
||||
|
||||
## dogma_brimstone_hits (Entity_Laser::damage_entity 0097e3c0, laser 7.1)
|
||||
- Hit test (Entity_Laser::update_line_hits 00971810): along the beam's sample polyline, hit when the distance to it
|
||||
< entity Size + laser Size; laser Size = _scale (0x4e0, 1 for Dogma) * the variant's entities2 radius (16 for
|
||||
7.1, 5 for 7.2) (Entity_Laser::ResetSpriteScale 0097fc10). Hits go into the laser's hit list (+0x520, once per entity
|
||||
while it stays there; where it is cleared was not traced).
|
||||
- Player (single player): TakeDamage(1.0, DAMAGE_LASER 8, source = laser's spawner (Dogma), countdown 30), so half a
|
||||
heart and the player's own invulnerability frames. Co-op players: only when not a descendant of the source.
|
||||
- Steering: Entity_Laser::update_laser calls HomingLaser::build_bezier_path every update, which rereads the
|
||||
laser's +0x334 for TEAR_OCCULT lasers, so the curve re-aims every tick. Dogma (state 8, while it has the laser as
|
||||
child and stateFrame < 90) moves that point every tick:
|
||||
- V2.x ramps from 0 by 0.02 * ts to 1; step = (player - target) * 0.1 * V2.x, its length clamped to [2, 4];
|
||||
target += step * min(stateFrame / 20, 1) * ts;
|
||||
- if the new point's angle from the origin (Dogma + (0, -15)) differs by more than 10 degrees from the old one, it
|
||||
is rotated back to old + 10 (the code rotates by 10 - delta; for negative deltas that also lands on +10, which
|
||||
may be a sign slip: unconfirmed);
|
||||
- if it is closer than 60 to the origin it is pushed out to 60; laser +0x334 = the point.
|
||||
- After stateFrame 15: if Isaac's axis direction from Dogma differs from i1 and (rand & 3 == 0 or Isaac within
|
||||
50 of the point): remove the laser, BrimstoneStart<Dir> at its second-last frame, i2 = 4, sound 81 vol 0.5,
|
||||
V2.x = 0 (it re-fires on that animation's "Shoot").
|
||||
Reference in new issue
Block a user