Start here

↑ ↓ to move, Enter to openKeyword search
Engine reference

Area damage: how an explosion finds what it hurts

Rendered from the repository, where it is written as the work happens: it keeps its history, and a status line above says when it describes a design rather than something shipped.

Part of the engine reference. This page covers how the simulation applies an explosion's damage: which objects a blast considers, the limit on how many, and how the objects' own tag data decides whether they take up a place in that list.

SubsystemArea-of-effect damage (grenades, fusion coils, rockets, any damage effect with a radius)
Tag datadamage_effect > radius (the blast's reach); object > bounding radius and bounding offset (each object's reach)
Simulation codeHaloSimulation_tag_release.dll, CU4 (build pin below)
Our codetools/level/build_spawn_point.sh, tools/level/build_ctf_flag.sh (MARKER_RADIUS)
Toolsmjolnir values --group scenery --tag <name> (a tag's bounding radius as the game mounts it), mjolnir live objects
StatusSearch and limit traced; cause of #526 seen live and fixed in the runtime's marker tags; checked in game on one PC, solo (2026-12-01).

Every claim carries one of four labels, defined in how to research and verify: [traced] read from the simulation's code, [data] measured on shipped tags, [live] seen in the running game, [inferred] a reading that fits the rest and has not been tested on its own.

The idea in one paragraph

An explosion does not test every object in the game. It asks the world for the objects whose bounding spheres reach its own sphere, keeps the first 64 the search returns, and then works through those 64: distance, line of sight, damage. Anything past the 64th is never considered, however close it is. So an object that cannot be damaged but has a large bounding sphere takes a place in the list of every blast near it, and enough of them crowd the players, crates and props out. That is what silenced explosions on most converted maps until 2026-12-01 (#526): MJOLNIR's invisible multiplayer markers each reached 30 wu.

The tag data

FieldWhereRole here
radius (upper bound)damage_effectThe blast sphere's radius: 2.5 wu for a frag grenade, 3.0 for a fusion coil [live] (the probe below reads it from the search call).
bounding radiusobject (every object group)The radius of the object's sphere in the world. The search tests this sphere, not the object's collision or model [live].
bounding offsetobjectMoves the sphere's centre off the object's origin.

The search compares spheres, so an object is a candidate when the distance between its sphere's centre and the blast's centre is within the sum of the two radii [inferred] from the live lists: with a 2.5 wu frag, markers up to about 32 wu away were returned, and none further.

What our markers carried

Every multiplayer marker MJOLNIR builds is cloned from objects\cinematics\cinematic_anchor, which binds no Unreal asset and so draws nothing. The anchor's bounding radius is 30 [data] (mjolnir values --group scenery --tag cinematic_anchor). Until the fix the clones kept it:

TagBuilt byPlaced
objects\multi\spawning\player_spawnbuild_spawn_point.shat every player start
objects\multi\teleporters\teleporter_sender, _receiver, _2waybuild_spawn_point.shat every teleporter end
objects\multi\ctf\flag_standbuild_ctf_flag.shat CTF flags, and at King hills, Oddball spawns and other labelled points
objects\multi\powerups\health_pack_spotbuild_ctf_flag.shwhere Halo CE put a health pack

None of them can be damaged, and none collides. Their sphere was used by nothing else we could find (see "What else reads the sphere").

How many reached a blast [data]: for each installed map, the markers within 32.5 wu (a frag's 2.5 plus 30) of each player start, from the level files (blam.objects), on 2026-12-01. A start where 64 or more markers reach is one where a frag at a player's feet could find nothing else.

Starts with 64 or more markers in reachMaps
all or nearly allBattle Creek, Boarding Action, Chill Out, Chiron TL-34, Damnation, Derelict, Hang 'em High, Longest, Prisoner, Rat Race, Wizard; Halo 2's Lockout, Ivory Tower, Foundation, Headlong, Turf, Gemini, Elongation, Burial Mounds, Beaver Creek, Warlock, Tombstone, Ascension
someWaterworks (133 of 204), Relic, District, Colossus, Backwash, Yoyorast, Sanctuary, Containment, Danger Canyon, Terminal
noneMidship (57 markers in all), Zanzibar, Coagulation, Desolation, Uplift, Blood Gulch, Sidewinder, Ice Fields, Infinity, Gephyrophobia, Timberland, Death Island, and the maps whose level files say halo1 (Pelican Warfare, Roadworks and others)

Below 64 markers a blast can still lose targets, because placed weapons, scenery and crates take places too; the search order (below) decides which.

How the simulation uses it

Build pin

FileMeteorite/Binaries/Win64/HaloSimulation_tag_release.dll
Game buildCU4 (config/hce-build.lock.json)
Size14,668,560 bytes
SHA-256C8C144404ADF61A9DE821C996682A7E66ABADD7E530397D3BBDE31C123203BF7
PE timestamp0x6a7a740a
Image base0x180000000 (addresses below are RVAs: add the base for Ghidra)

Code map

RVARoleLabel
0x679560Applies one area-of-effect damage: runs the search, then hands each candidate to the per-object handler.traced
0x679709Its call to the sphere search, with a cap of 0x40 (64) results.traced, live
0x679ca7Its call to the per-object handler, once per candidate.traced, live
0x3e3d10Objects in a sphere: gathers candidates (up to 2,048) from the BSP's object partition, then copies the first cap to the caller's array. Ten callers (projectiles, AI, respawn checks and others) each pass their own cap.traced
0x3e3860Its gather over one structure BSP: a box test against the partition, then the per-object walk.traced
0x67a3f0The per-object handler: distance to the object, then the obstruction test, then damage.traced, live
0x67adeeThe handler's call to the obstruction test 0x67c100 (non-zero: blocked).traced, live
0x67ae95The handler's call to 0x5b8cb0, which applies the damage to the object.traced, live
0x1b3f90HS damage_new's evaluator: builds damage data (0x65cf00), sets its location (0x198800) and calls 0x679560. A way to make a blast from the console.traced

The damage data passed down the chain holds the blast's location at +0x20 (byte 0 the BSP index) and its origin point at +0x24 [traced, live]. An object's sphere is in its datum: centre at +0x20, radius at +0x2c [live]: the radius read there is the tag's bounding radius, 30 for an old marker, 0.25 for a new one.

The behaviour, step by step

area_damage(damage, blast_radius):
    candidates = objects_in_sphere(damage.origin, blast_radius,
                                   all object types, cap = 64)
    for object in candidates:
        handle_one(damage, object)

handle_one(damage, object):
    point = the point of the object nearest the blast
    if distance(point, damage.origin) > blast_radius:
        return                                  # in the list, out of range
    if obstructed(damage.origin, point):
        return
    apply_damage(damage, object)                # scaled by distance

The cap is applied after the gather: the search finds everything in reach, then the first 64 are kept [traced]. "First" is the partition's order, not distance: on Damnation (before the fix) the 64 were all markers, listed by descending object index, and the player standing on the blast was not among them [live].

Seen with the probe below, a frag at the player's feet, before and after the fix [live]:

MapBefore: resultsPlayer hurtAfter: resultsPlayer hurt
Foundation64, every one a markerno5yes: shield 0, health 67%
Turf64nonot rerun
Damnation64, every one a markerno14 (two frag pickups on the floor went off too)yes: shield 0, health 68%
Midship (57 markers)59yes

On Foundation after the fix, a frag beside one fusion coil found 8 objects and damaged that coil; its blast (radius 3.0) found 14 and set off the coil 2.1 wu from it, whose blast found 10; the player, hit by all three, died and respawned [live].

What else reads the sphere

Checked before shrinking the markers, so that nothing that worked with a 30 wu sphere stops working with a small one:

  • Teleporters test whether an object stands in a placement's boundary shape, not its sphere (0x3e5d40, 0x3e6030, 0x3e6340, which call 0x66b610 and 0x66b790) [traced]. A sender on Chill Out moved the player to its receiver with the new markers [live].
  • CTF capture is a Megalo boundary test on the stand's shape [traced]. On Chill Out with the new stand the player grabbed the blue flag, scored at the red stand (flag_scored, red 1), and the flag went home [live].
  • Spawning worked: a first spawn and a respawn after a coil killed the player both landed on spawn points [live]. The respawn check at 0x3f7620, one of the search's other callers, looks only for vehicles [traced].
  • Forge picks a marker by its origin (soft_target) [traced]. Placing scenery asks the engine for room, a search sized by the tag's bounding radius (native/forge/mjolnir_forge.c, phase_in_forge), so a smaller sphere can only make placing easier [inferred].
  • Health pack spots take no part: the Megalo script creates the pack at the spot and heals by distance between origins (ce_map_conversion.md, "Health packs"). All four packs on Chill Out stood on their spots [live].

What a writer must get right

  • Size an object's bounding radius to what it is. It is not only for culling: every area search the simulation runs, explosions first, tests it. An invisible marker needs a token radius (MJOLNIR uses 0.25 wu).
  • Never clone a large-sphere donor for something placed in numbers without setting object.bounding radius. The anchor's 30 wu is right for a cinematic anchor, of which a scene has a few.
  • Count against 64, not against "nearby": a few dozen objects within reach of one spot is enough to hide players from a blast there, whatever their distance.
  • Read the field from what the game mounts, not from the script: mjolnir values --group scenery --tag <name> prints the winning container's tag.

Our implementation and how to run it

MARKER_RADIUS=0.25 in tools/level/build_spawn_point.sh (spawn point and the three teleporters) and tools/level/build_ctf_flag.sh (flag stand and health pack spot), passed as --set "object.bounding radius=$MARKER_RADIUS" to each new-tag. The containers ship in the runtime pack; map packs do not carry them, so one runtime release fixes every map at once. No map's level changes.

To check a blast by hand: host a map solo, then throw a frag at your own feet, or from the console run damage_new with a damage effect at a cutscene flag; read the player's shield and health from mjolnir live objects --group bipd before and after.

The probe that produced the tables above was a scratch DLL that rewrote the four call sites' targets to logging wrappers; it is not committed. Rebuilding it takes the four call sites in the code map.

Open questions

QuestionWhy it mattersHow to settle it
What exactly is the partition's order?Decides who is lost when a spot is crowded.Trace the per-object walk in 0x3e3860's callee 0x3e3310.
Why is the player sometimes handled without being in the list?On Damnation a frag 4.3 wu away logged a handler call for the player, who was not among the 8 results.Log the handler's caller and arguments for that case.
Do other tags we generate carry inflated spheres?Machines, lifts, crates and Forge pieces are cloned from donors too.Print bounding radius for every tag the conversion and Forge packs build, and flag any much larger than the model.
Is the 64 cap shared by other searches that matter?Projectile and AI searches call the same function with their own caps.List the ten callers' caps from their call sites.

History

  • 2026-12-01: frags found doing no damage on Lockout, Ivory Tower, Tombstone, Foundation, Headlong and Colossus while testing breakable props (#525); filed as #526.
  • 2026-12-01: the search, its 64 cap and the markers' 30 wu spheres traced and seen live; the markers rebuilt at 0.25 wu and checked in game on Foundation, Damnation and Chill Out (blasts, a coil chain, spawns, a teleporter, a CTF capture, health packs).