aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


docs/burst.md (4896B)


Burst on starter and stocked weapons

Burst (148) now executes for a supported main-hand weapon with its original Can bit 11. This includes the issued Solar Powered Submachinegun (121571) and the QL5/10 Kerans (160476) stock. Previously the shared secondary-special handler ignored 148. Existing Fast Attack (147) and Fling (150) remain separate actions.

Evidence and explicit alpha rules

The original Solar SMG tip instructs the player to equip it and use its special from the Command View. Its item record has Burst capability and unlimited ammo; its only equip requirement is Fixer. The Kerans record has a 120-round bullet clip, PoisonAC96 damage, 145cs recharge and BurstCycle374=1500.

The original kkr.dll SHA256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. REA evidence ev_9ddecd111919ceef3733fcf70d11a5547aeab67f5f26124f4607d199ff810f2b contains focused decompilation of 100aaf10 (Can-bit selection) and 100ab060 (recharge arithmetic). The complete record is retained in local/alpha-burst/native-evidence.json. The lifted instructions in client/game/kkr.dll/lifted-0050.c, sub_360AB060, also show the Burst branch loading its 800cs floor before the integer conversion.

The server uses (RechargeDelay210 * 20 + BurstCycle374 - Burst148 * 4) centiseconds, floors at 800 and rounds up to whole seconds. It then applies the shared SkillLockModifier382 conversion. The original client helper's observed caller discards its result, so using it for authoritative server timing and the whole-second rounding are explicit provisional choices, not recovered server code. For a QL1 Kerans at effective Burst 10 this is 44 seconds; high skill reaches the 8-second floor. The Solar weapon has no BurstCycle contribution.

Damage is the sum of three independent noncritical ordinary weapon rolls, capped at target HP. Each roll uses the existing attack rating, overequipping, matching armor and damage bonuses. This distribution is explicit alpha policy; the original server's Burst distribution has not been recovered. This retains the existing pre-15.5 special policy: no defensive hit check or ammunition deduction. A finite clip must contain at least one round, including when it contains fewer than three; unlimited weapons return ammo -1 in the result. Empty-clip admission remains provisional.

Shared lifecycle

Burst uses the existing range/visibility, alive/ready-owner, equipped-weapon, reload, posture and lock checks. It does not reset normal attack/recharge or nano clocks. A matching active fight receives the native special action before the named SpecialAttackInfo result and skill lock. Idle use retains the shared special handler's existing presentation limits; dual wield remains outside the implemented main-hand path.

Lock 148, damage, contribution, corpse/loot and XP commit together before any success is sent. Failure leaves the live and durable state unchanged. Repeated requests, weapon changes and reconnect cannot bypass the deadline. Expiry uses the existing memory-only lock cleanup and native action 164 notification.

Verification scope

TestBurst* covers independent bullet rolls without critical/defense draws, native result fields, no ammo loss, recharge/skill/floor inputs, unlimited ammo, invalid requests, duplicate/reuse clocks, cold recovery, and rejected/ignored lock, damage, loot and XP writes followed by retry.

TestBrowserBurst uses real inventory equip, targeting, Q and the native M binding, then checks damage and clip state against the server. It reconnects with the lock active, waits for ordinary expiry and uses Burst again before cold loading. The Solar case uses ordinary level-one Fixer creation without training or item grants. The Kerans case uses the established cap-checked level-ten fixture and a stocked QL10 weapon with three rounds. Both use a nearby controlled Leet with 1000 HP and hold ordinary swings, isolating Burst. This is not an earned progression or purchase-affordability run.

November 5: all 35 selected server roots pass, including existing Fast Attack, Fling, special presentation and skill-lock regressions. Both native cases pass: Solar deals 18 per Burst and Kerans deals 126 under deterministic maximum rolls; their exact inventories and remaining cooldowns survive reconnect and cold loading. The browser run took 99.25 seconds. Its evidence is under local/alpha-burst/20261105-171018/{solar,kerans}/, with verification.json, screenshots and native traces. Logs are local/alpha-burst/regressions.log and browser.log. JavaScript syntax, diff checks and go vet ./server also pass. The test browser/server sessions and the REA native session were closed.

This completes the demonstrated Burst rejection within A5. It does not close the remaining Brawl/Dimach/Aimed Shot gaps or A7's faction/profession matrix.