{
  "schema": 1,
  "game": "X2",
  "actor": "HangedReploid",
  "eventId": 17,
  "romSha1": "637079014421563283CDED6AEAA0604597B2E33C",
  "sourcePacket": "x2/11-hanged-reploid",
  "spans": [
    {
      "address": "01BDED",
      "length": 98,
      "sha256": "504AE88EC9AB115079884B6A624B4BE51AE0085B0E8B9667134766276835020F",
      "purpose": "Initialization and initial one HP"
    },
    {
      "address": "01BE4F",
      "length": 290,
      "sha256": "EC00F017F47C5F26988EE3BC50EA145BA5D1DF8AF3CD4FE0BDF16E71FBE67C9D",
      "purpose": "Chain allocation, sway and proximity release"
    },
    {
      "address": "01BF71",
      "length": 284,
      "sha256": "8D775FC78D73A234132743DED7CC728AD3AF0DD2C02C7F83365D413765A7D901",
      "purpose": "Uninfected release and three-hop cycle"
    },
    {
      "address": "06C2D8",
      "length": 69,
      "sha256": "355F6BACD63038BC9642E789E24D48FB0B174C01EE9A894633E6B9E44DF9BDBC",
      "purpose": "Collision descriptors, sway and hop tables"
    },
    {
      "address": "08CDE4",
      "length": 25,
      "sha256": "001AA5D799DFB16645E9ABE2935E9F3F7A29CC2A5D57A33BCBA90976E4E9A055",
      "purpose": "Default floor probe tolerance"
    },
    {
      "address": "01BE45",
      "length": 10,
      "sha256": "46B7322FBB86B5A1DD085EF1B9A36A75F730393748817C7681F6E1DD3C870909",
      "purpose": "Ordered state dispatch: 6=headless body C08D, 8=surviving head C0EE"
    },
    {
      "address": "01C08D",
      "length": 483,
      "sha256": "7A6C576BC54E6F5A9E46A98D508CC668FF6E80246357216947305BF3BEC50C23",
      "purpose": "Head/body loss, head facing, animation-triggered projectile allocation and destruction"
    },
    {
      "address": "01C298",
      "length": 94,
      "sha256": "038BF3406CFCEA437FD3CE8519F2601A159BCCD3FECD3DE6D57B4E60A39C2855",
      "purpose": "Ordered damage-zone selection, chain removal and five fragment allocations"
    },
    {
      "address": "02D74F",
      "length": 204,
      "sha256": "A24C251BBD07807CACE22E848D742DC35942C67C9832AA755B7E400B3376587A",
      "purpose": "Projectile 03 initialization, flight, terrain burst, command 41 and cleanup"
    },
    {
      "address": "06EB88",
      "length": 20,
      "sha256": "2D4309B9178D54E6F2D3F493DA93C0C52838A64C4F93249591FFBDA8B8216F02",
      "purpose": "Masked fragment subtypes 94..98: graphics 11, animation group 0D, selectors 0C/0D/0E/10/11"
    }
  ],
  "controller": {
    "scope": "Intact hanging, ordered support/head/body weapon zones, proximity release, normal three-hop loop, headless body fall and surviving-head attack; full native adapters remain pending.",
    "initialHealth": 1,
    "releasedHealth": 8,
    "swayOffsets": [
      1,
      0,
      -1
    ],
    "warningDistanceExclusive": 64,
    "releaseDistanceExclusive": 16,
    "gravitySubpixels": 64,
    "hops": [
      {
        "horizontalSubpixels": 384,
        "upwardSubpixels": 512,
        "wait": 0
      },
      {
        "horizontalSubpixels": 384,
        "upwardSubpixels": 512,
        "wait": 0
      },
      {
        "horizontalSubpixels": 768,
        "upwardSubpixels": 896,
        "wait": 120
      }
    ],
    "direction": "Initially left; faces the current player at the beginning of each three-hop cycle.",
    "floorProbe": "$06:C2FE defines half extents 5/16; $08:CDE4 and D14E add four pixels to the floor probe. Preserve subpixel fractions on integer collision snaps.",
    "sounds": [
      {
        "command": 8,
        "action": "Each takeoff after windup",
        "address": "01C001",
        "bank": "Common"
      },
      {
        "command": 9,
        "action": "Landing after a normal hop; initial release fall is silent",
        "address": "01C02D",
        "bank": "Common"
      }
    ],
    "damageZones": [
      {
        "selector": 0,
        "descriptor": "06C2E0",
        "box": [
          -6,
          -49,
          12,
          30
        ],
        "reaction": "Detach intact actor; detach surviving head when still suspended"
      },
      {
        "selector": 2,
        "descriptor": "06C2EA",
        "box": [
          -5,
          -18,
          10,
          10
        ],
        "reaction": "Destroy head and release remaining body; destroy surviving head"
      },
      {
        "selector": 4,
        "descriptor": "06C2F4",
        "box": [
          -5,
          -8,
          10,
          24
        ],
        "reaction": "Destroy torso, leave one-HP suspended head in state 8"
      }
    ],
    "headAttack": {
      "state": 8,
      "entry": "01C0EE",
      "distanceExclusive": 48,
      "selectors": [
        7,
        6,
        8
      ],
      "projectile": "03",
      "velocitySubpixels": [
        256,
        512
      ],
      "direction": "Horizontal sign faces X when the watching state executes; not a continuous aiming vector",
      "spawnOffset": [
        5,
        -5
      ],
      "burstSelector": 10,
      "impactCommand": 65,
      "launchSound": null,
      "fragmentSubtypes": [
        152,
        151,
        150,
        149,
        148
      ]
    }
  },
  "validation": {
    "captureScript": "../../../tools/bizhawk/MMX2_HangedReploid_Capture.lua",
    "route": "Load native Stage Select, press Up and Start for Morph Moth, approach through normal Right/B input; no scene/VRAM/palette/actor RAM writes.",
    "capturedRecords": 1013,
    "comparedFields": [
      "position X/Y",
      "velocity X/Y",
      "state",
      "step",
      "health",
      "animation address",
      "animation timer",
      "pose",
      "animation flags",
      "direction",
      "hop index",
      "wait",
      "sound command"
    ],
    "suppliedInputs": [
      "captured player X",
      "captured native controller tick cadence",
      "solid collision grid from imported X2/01.xlevel"
    ],
    "boundary": "All compared records match for this uninfected opening capture. This is not full level, RNG, camera, entity-pool or complete actor parity.",
    "headless": "Three focused tests pass; complete suite 2374 passed and 31 existing failures.",
    "runtime": "DX9 imported Morph Moth smoke passes hanging/alert silence, release, cached 08/09 audio, normal hop sequence and 180-frame state replay.",
    "headCapture": {
      "script": "tools/bizhawk/MMX2_HangedReploid_DamageCapture.lua",
      "route": "Stage Select -> Morph Moth checkpoint zero -> normal Right/B traversal -> one Y press -> normal approach; no actor/camera/palette writes.",
      "bodyRecords": 733,
      "projectileRecords": 570,
      "projectileSpawns": 12,
      "impactCues": 12,
      "bodyComparedFields": [
        "position",
        "velocity",
        "state",
        "step",
        "HP",
        "animation pointer/timer/frame/flags",
        "facing"
      ],
      "projectileComparedFields": [
        "position",
        "state",
        "animation pointer/timer/frame/flags"
      ],
      "suppliedContexts": [
        "captured controller cadence",
        "captured player X",
        "accepted native torso hit result",
        "native flat-floor contact update for projectile fixtures"
      ],
      "boundary": "Fixture equivalence is conditional on supplied contexts; not full-stage collision, weapon, slot, camera or RNG parity."
    },
    "headRuntime": "Passed DX9 imported Morph Moth: explicit real-weapon torso/head receivers, five native fragment sprites, leftward red shot (-1,+2), cached 41 impact, single 23 final explosion, no new audio cache entries and 180-update save-state body/projectile/RNG/cue replay. Not an ordinary-input paired-stage proof."
  },
  "pending": [
    "Separate chain/support entity and native allocation failure/retry",
    "Slope, water and region-specific gravity modifiers; full native collision resolver",
    "Native entity-pool and lag cadence; complete actor and level parity",
    "Complete native weapon-index damage/drop tables, per-weapon zone scheduling and native collision edge cases"
  ],
  "adapterNotes": [
    "The ordinary uninfected loop does not fire projectiles. Generic spread shots have been removed.",
    "Motion state is serialized in a linked controller entity to preserve the older actor field layout.",
    "The earlier infection label for C0EE was incorrect. Native dispatch and an ordinary-input body-shot capture confirm the surviving-head branch.",
    "Weapon overlap is routed through the engine notification path and queued to the actor update. Native per-weapon slot scheduling and special reaction entries are not fully reproduced.",
    "Projectile collision uses imported solid tiles and flat-floor snapping; native slope/region helper parity is not established.",
    "Transient native zero HP marks dismemberment; the engine entity remains alive until the surviving part is initialized."
  ],
  "captures": [
    {
      "path": "docs/enemies/native/captures/hanged-reploid-opening.csv",
      "sha256": "B96BF9AD400D85C48D1BA84C21FF3EEAC733638A42FEF8FB6B24E5CFCD115F65"
    },
    {
      "path": "docs/enemies/native/captures/hanged-reploid-opening-cues.csv",
      "sha256": "20A850E22DDAE9F05BD9DB653312A65CFD8D2E42CF6A3DD63BB43644355BBE43"
    },
    {
      "path": "XSharp.Tests/Fixtures/Enemies/hanged-reploid-maps.txt",
      "sha256": "B01D788E1B90A4342ABD573FC9B71E98631DEAA6823FDA8D3A2FCB9A40C2DAB2"
    },
    {
      "path": "docs/enemies/native/captures/hanged-reploid-head-actors.csv",
      "sha256": "34DD08DD6BC8901CE5EAA57BA786700FD3D83F1B4A587F9C3F82DF97477CACEE"
    },
    {
      "path": "docs/enemies/native/captures/hanged-reploid-head-zones.csv",
      "sha256": "21D4516FD4AC4D20BF7DAC513672A74FDBDC6BE9FC71F1BCCBB5D3CFD7800119"
    },
    {
      "path": "docs/enemies/native/captures/hanged-reploid-head-cues.csv",
      "sha256": "473065284439F05DF5852FE6958E4AC362E1C62ABF4BF3FA75D6529C82992C70"
    }
  ]
}
