aorecomp

Anarchy Online classic in the browser

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


docs/brawl.md (11550B)


Brawl on fists and early melee weapons

Brawl now executes through the shared special-attack handler, using its own item, skill, damage, stun and persistent cooldown. Fists and Brawl-capable held weapons are admitted. The original content below establishes the contract; unrecovered server balance rules are explicitly bounded by the alpha policy.

Authored content

The 14.9.1 catalog contains two records named Brawl Item:

ID QL Minimum Maximum Critical bonus
70292 1 1 2 3
70293 500 100 500 500

Both use100% Brawling142 for attack and100% Evade Close155 for defense. AttackDelay294 is10 centiseconds, RechargeDelay210 is1500 and range287 is3. DamageType436 is omitted, retaining WeaponItem's Melee91 default. These fields do not establish a server's hit roll, critical probability or skill-to-QL rule.

Their Use action excludes the Ranged bit of WieldedWeapons274. OnUse contains HeadText53057 Brawl and CastChance53089 targeting14/program125772, with chance arguments10 atQL1 and20 atQL500. This is OnUse, not an OnHit function. The data does not by itself prove how the original server interpolates or rolls a chance.

Stunned by Brawl125772 lasts300 centiseconds and runs RestrictAction53068 with mask6. It has NCU cost100 and no authored strain75; treating it as an ordinary friendly buff would assert unsupported admission/replacement rules. The same stun is referenced by Pure Carbon Fragment, so its effect is reusable content.

Fist records43712/43713, Kinetic Axe209283 and Briefcase205736 advertise Brawl through item capability30 bit25. The Flechette Pistol123742 does not. The full catalog search found only the two named Brawl endpoints; searching attack142 also finds Bow Special Attack records and cannot identify Brawl by itself.

Eight original payloads, offsets, hashes and the bounded catalog scans are retained under local/brawl-research/content/. This is original resource evidence, not a later website dump.

Native request, result and timing

Original KKR SHA256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The native ledger and exact citations are under local/brawl-research/native/.

The implicit item map is keyed by skill. Initial construction1007b9a0 uses actor Level54 as the supplied pair's QL. It does not derive QL from Brawling. The modifier-refresh call reaches the original ret12 stub1000c310; this is not an unimplemented WASM adapter to replace. Recharge helper100ab060 reads implicit item142's RechargeDelay when present, otherwise the wielded weapon's field. Its fallback cannot establish a fixed authoritative Brawl cooldown.

Native action registration

The B key first reaches10057630 through1002c7d0. It searches the actor's local action list for the command. A missing entry produces Action not available. and returns before the special sender. This message therefore cannot establish failure of a later skill, weapon, range or cooldown check.

Implicit item insertion10078920 registers an actor-owned action through10057370. For Brawl142, Riposte143 and Dimach144, dispatch10057680 requires that actor-owned source. Equipped-weapon registration100ad0b0 adds Fast Attack147 and several ranged specials, but omits Brawl142 and Dimach144. The initializer supplies a Brawl icon mapping without creating its action. Merely setting Brawling or equipping a Brawl-capable weapon does not invoke the shown registration path.

Player spawn packets now supply implicit Martial Arts100, Brawl142 and Dimach144, with Brawl endpoints70292/70293. NPC spawn profiles retain their existing attack row. The Brawl row creates the native actor-owned action. Exact source records and heap layout are retained in docs/research-notes/brawl-research/native/action-availability.md.

Evidence limits and implementation work

Tiran's May2002 post tentatively gives MA/2 for fists and separately mentions Brawl Item. It does not give Brawl skill/2. The existing bounded Rustot emulator search recovered no verified period artifact. Current Auno70293 has matching headline values but also lists later revisions; it is not substituted for the shipped payload.

Explicit alpha policy

Effective Brawling142 divided by two, truncated and clamped toQL1..500, selects the damage item. This is a provisional server rule, not a conclusion from the MA discussion or native actor-level initializer. Existing catalog interpolation supplies damage endpoints. Brawl uses its authored Brawling attack and EvadeClose defense with the shared provisional hit curve, critical chance, attack-rating scaling, MeleeAC reduction and melee damage bonus. Held-weapon damage, its equip requirements and Martial Arts do not replace those inputs. The base cooldown is the authored1500cs, with shared SkillLockModifier handling.

The OnUse stun chance is provisionally interpolated and rounded from10% to20% over the same quality range, rolled independently even on a missed Brawl. Living creature targets receive program125772 for three seconds without a second resistance roll or NCU admission. Its mask6 stops movement and ordinary attacks. Supported creature opponents do not cast nanos, so NPC cast interruption is not claimed. The same stun refreshes its deadline; unrelated effects remain intact. Death clears it through the existing damage lifecycle. Expiry restores the remaining permissions and attack eligibility. Restart restores its checkpointed remaining duration, following existing NPC nano rules.

Range is the Brawl item's three metres plus actor extents, with shared line of sight. Supported held weapons must advertise Can bit25; sitting, driving, loading, equipping, reloading and locked requests are rejected. There is no item or ammunition cost. Results use slot0 and ammo-1, preserving held weapons. Normal attack/recharge clocks remain unchanged. Native matching-fight animation uses the existing special notification; idle animation remains a shared limit.

Damage, stun, skill lock, contributions and any corpse/loot/XP commit in the same transaction before live state or success feedback. The native proc is published through action177 only after commitment. These rules support the early-game path without claiming recovered historical server balance. Reopen historical research only for a conflicting period measurement or original server artifact that resolves one of these specific provisional rules.

Prior contract verification

client/tests/fling_result.c exercises the unchanged lifted result activation for Fling150 and Brawl142. Brawl cases cover owner, target and observer feedback, fist slot0, equipped slots6/8, no-ammo sentinel-1, death routing and either missing actor. Its15 Fling/Brawl cases and six Fast Attack cases pass in Linux and WASM with identical output. The fixture tests result activation and dispatch boundaries; it does not roll Brawl damage or prove the server's choice of a result slot. Build/run logs are retained in local/brawl-research/.

A headed Chromium run with the GPU tested the actual WASM client against the shared HTTPS preview. With a selected Leet, raw Brawling600 and the Kinetic Axe equipped in slot6, B reached the focused canvas but produced the missing action message and no special request. A read-only native heap probe found weapon-owned Fast Attack147 and no Brawl142 entry, confirming the earlier gate. The same message occurred unarmed. All17348 captured world packets contained zero outbound CharSecSpecAttackIIR requests; no browser errors occurred.

The three test items remained present and were returned to inventory before cleanup. The owned browser was closed, only its character/items were removed, SQLite integrity passed and all unrelated rows remained unchanged by cleanup. The single shared preview was restored on its default ports. Wire data, screenshots, probes and verification are in local/brawl-input-smoke/.

November5 implementation verification

The first server regression reproduced the ignored142 request: no damage, stun or lock. TestBrawl* now covers skill endpoints/rounding, fists versus a held Sledgehammer, critical and missed hits, independent stun rolls, root overlap, refresh, blocked retaliation, expiry, rejected requests, unchanged normal attack clocks, repeated use and cold recovery. Ignored/failed writes at lock, damage, active-nano, loot and XP boundaries roll back the entire outcome; retry commits it once.

Adding the implicit Brawl row exposed a fixed-size spawn-tail assumption in the14.9.1 converter. The converter now preserves the player MA/Brawl list and the NPC single attack row. The packet regression checks the entire list and preceding empty groups; both native fixtures load and reconnect successfully.

TestBrowserBrawl uses real targeting, Q and B input with newly created level-one Martial Artist fists and a cap-checked level-ten stocked Sledgehammer fixture. Under deterministic critical/proc rolls they deal9 and33 damage per Brawl respectively. Each waits for ordinary three-second stun expiry, retries while locked, reconnects, waits for native15-second unlock and uses B again. Server and native HP agree, exact inventory is unchanged and cold loading preserves damage and the lock. Ordinary swings are held to isolate Brawl; the Leet's placement/1000HP and the upgrade are controlled, not earned progression.

The two-case browser run passes in68.13seconds. Screenshots were inspected and the owned browser/server sessions were closed. Evidence is under local/alpha-brawl/20261105-172414/{fists,sledgehammer}/, including native traces, screenshots and verification.json. The broader124-root server run passes (regressions.log), as do JavaScript syntax, diff checks and Go vet. The final focused Brawl run is recorded in brawl-final.log.

This completes the Brawl rejection within A5. Dimach is now also implemented; Aimed Shot and the rest of the open A5/A7 criteria remain separate work.