notes: Crack the Sky 1000.19 (Entity_Effect::Update case 19 @0x5e96b5) from case decompile + asm: Spotlight/SpotlightDelayed/SpotlightDelayed2, Salvation's subtype 3 wait (playback speed 0 and rewind by time scale at state -1, re-armed by Entity_NPC::Update's set_state(1)), the target's charge-up colour (p = frame / Hit frame), Hit: sounds 0xad/0xac, ShakeScreen(5), 1000.18.1 crater, subtype 3's four variant-5 lasers at damage x0.5; damage every 3rd state tick while layer 0 is visible (2.0 to players from enemy beams, else collision damage to NPCs); timing interplay logged as a question

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-30 17:19:30 -04:00
1 parent ab22edda78
commit 2ab2d8f43d
1 file changed
+49 -2
+49 -2
View File
@@ -54,8 +54,8 @@ Read here: the item-related cases, transcribed from per-case decompiles checked
non-friendly vulnerable NPC, finds the nearest player holding 0x2b8 with distSq < (get_salvation_scale() * 70 + non-friendly vulnerable NPC, finds the nearest player holding 0x2b8 with distSq < (get_salvation_scale() * 70 +
npc size)^2 (FUN_006daa90 squares), and if the NPC has no beam yet (+0x... EntityPtr at `this[1].field_0x4`) npc size)^2 (FUN_006daa90 squares), and if the NPC has no beam yet (+0x... EntityPtr at `this[1].field_0x4`)
spawns 1000.19 (Crack the Sky) subtype 3 at the NPC, spawner/parent the player, target the NPC, spawns 1000.19 (Crack the Sky) subtype 3 at the NPC, spawner/parent the player, target the NPC,
SetCollisionDamage(3.5) (0x40600000), Update; then (also when it already had one) set_state(beam, 1). The 1000.19 SetCollisionDamage(3.5) (0x40600000), Update; then (also when it already had one) set_state(beam, 1). The beam is
case is not transcribed here. case 19 below (subtype 3).
## Trinity Shield (case 47 @0x5f2add, 1000.47, anm2 "1000.046_trinity shield": Idle, Rotation) ## Trinity Shield (case 47 @0x5f2add, 1000.47, anm2 "1000.046_trinity shield": Idle, Rotation)
@@ -260,3 +260,50 @@ Subtypes >= 1, the explosion (damage = its collision damage):
32, 33, 39, 40, 41, 43, 44, 47, 48, 49, 50, 53, 54, 56, 64, 65, 66, 67, 73, 74), its hit list = the effect's minus 32, 33, 39, 40, 41, 43, 44, 47, 48, 49, 50, 53, 54, 56, 64, 65, 66, 67, 73, 74), its hit list = the effect's minus
the pick, mass 0 (+0x37c), one hit, disable follow parent, Update; _state++. the pick, mass 0 (+0x37c), one hit, disable follow parent, Update; _state++.
- Pick: target = it, into the hit list, the effect moves onto it. No pick: _maxRadius = 0. _maxRadius <= 0: Remove. - Pick: target = it, into the hit list, the effect moves onto it. No pick: _maxRadius = 0. _maxRadius <= 0: Remove.
## Crack the Sky (case 19 @0x5e96b5, 1000.19, anm2 "1000.019_crack the sky": Spotlight, SpotlightDelayed,
SpotlightDelayed2; events 0 "Sound", 1 "Hit"; entities2 collision radius 30)
- Init (Entity_Effect::Init 0x5cdb20): collision damage 20. Spawners set their own (Salvation: SetCollisionDamage(3.5)).
- _state 0: Play "SpotlightDelayed2" (subtype 3), "SpotlightDelayed" (subtype 2), else "Spotlight"; _state 1. (Salvation's
spawner calls set_state(1) right after spawning, so its first update skips this Play.)
- **Subtype 3 (Salvation), until "Hit" has fired** (neither IsEventTriggered nor WasEventTriggered "Hit"; asm
0x5e9772..0x5e9aeb):
- _state 1: playback speed (sprite +0x104, 0x440e50) = 1.0, _state = -1.
- _state -1: playback speed 0; frame (AnimationState +0x40, 0x40a7c0) -= _speedMultiplier (the room time scale);
<= 0 -> Remove; else set the frame (0x40a740).
- Entity_NPC::Update 0x6c4b30 calls set_state(beam, 1) every tick its enemy is inside a Salvation halo. Read
together with the _state++ below (asm 0x5ea30d, every tick layer 0's current frame is visible), the rewind branch
is reached only on a tick that starts at -1, i.e. after a tick whose layer-0 frame was hidden or had no frame:
with a visible layer 0 the sequence is 1 -> -1 -> 0 (++) and next tick 0 -> Play (no restart) -> 1 -> -1 -> 0, so
the beam plays forward whether or not set_state(1) came. In the dump's SpotlightDelayed2 layer 0 is visible on
its first frames. See parity_questions/effect_update.md.
- With a target: t = the frame of the current animation's event-1 ("Hit") trigger (animation data +0x28 pairs
(event id, frame), +0x2c count; 10 if none); p = min(1, frame / t); the target gets SetColor(tint (1, 1, 1), A 1,
colorize (0.8, 1.6, 1.6, strength p), offset (0.8p, 0.5p, 0.5p), duration 2, priority 0, fadeout 0, share 1)
(Color 0x435b50; lerp(p, 0, 0.2) = 0.8p, lerp(p, 0, 0.5) = 0.5p). No target: velocity 0.
- Event "Sound" (subtype not 3): sound 0xad (173 light_bolt_delayed; vol 1, delay 2, pitch 1).
- Event "Hit": sound 0xac (172 light_bolt), ShakeScreen(5), 1000.18 Bomb Crater subtype 1 at it (seed from its drop
RNG), sprite scale 0.5, Update; _state = 1. Subtype 3 also: target dropped, velocity 0, and 4 lasers
ShootAngle(variant 5, pos, i * 90, timeout 30, offset (0, -12), spawner its parent, 0) for i = 0..3, each
SetCollisionDamage(_collisionDamage * 0.5), SetColor(tint 1, A 1, colorize (1, 1, 1, 1), offset 0; -1, 255, 0, 1),
disable follow parent, depth offset 3000 (i = 3: -10).
- Damage (subtype < 10, while layer 0's current frame (Sprite::GetLayerFrame 0x40b1a0) is visible): on ticks with
(_state - 1) % 3 == 0 (C remainder: -1 gives -2, no hit), and _state++ on every tick the frame is visible, hit or not (asm 0x5e9ee5,
0x5ea30d).
"Hit" sets _state 1, so hits land on the Hit tick and every 3rd tick after; a set_state(1) from Entity_NPC::Update
in between (Salvation, every tick the enemy is in the halo) re-arms it, so the rate depends on whether the NPC or
the beam updates first that tick (question file).
- source = its parent, else itself. enemyBeam = the source is not a player; outside deathmatch cleared when the
source has entity flag 1 << 60; in deathmatch always set.
- QueryRadius(_size, all partitions): not the source, alive, collision class != 0, max HP > 0; outside deathmatch
entities of the source's own type are skipped.
- players (type 1), only when enemyBeam: TakeDamage(2.0 (7.0 in deathmatch), flags, source, 30); in deathmatch
with tear-flag bit 100 in its +0x420 flags: flags |= 1 << 35 and that bit is cleared (FUN_005cd430 ANDs).
- NPCs (type > 9): TakeDamage(enemyBeam ? 2.0 : _collisionDamage, 0, source, 30).
- Subtype 1 becomes 10 after its first pass (one hit only).
- Remove when the animation finishes.
- Salvation beam, all together: 1000.19.3, parent/spawner the player, damage 3.5 from "Hit" on, every 3rd tick (more often
while re-armed, see above) while layer 0 is visible, to everything in its 30-radius except players; four light-beam lasers (variant 5) for 1.75
each at the hit.