aorecomp

Anarchy Online classic in the browser

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


commit cc5caadd84d5025ec1866d47637cec111485696a
parent 9947ccf7fef60c2c87db91dbd6c233f3392d1406
Author: anon <anon@example.com>
Date:   Thu, 22 Oct 2026 16:32:27 +0000

docs: record native miss and critical outcome semantics

Diffstat:
Mdocs/combat-client-protocol.md | 36+++++++++++++++++++++++++++++++++++-
Mdocs/combat-rules.md | 21+++++++++++++++++++++
2 files changed, 56 insertions(+), 1 deletion(-)

diff --git a/docs/combat-client-protocol.md b/docs/combat-client-protocol.md @@ -124,7 +124,7 @@ which can differ from object-field order. | Class / class-derived ID | Serialized payload in order | Activation and coverage | | --- | --- | --- | | AttackInfo / `0x46002f16` | i32 damage `+24`, i32 ammo `+28`, i32 weapon slot `+20`, target identity `+2c`, i32 death reason `+34`, i32 result `+38` | `0x100aec00` / `0x100aecb0`. Routes hit/result to the actor's weapon holder; missing-actor fallback updates a local target. Exact layout and health/chat effects. | -| MissedAttackInfo / `0x5c654b28` | i32 ammo `+24`, i32 slot `+20`, identity `+28`, identity `+30` | Reader `0x100b1460`, activation `0x100b14f0` -> `0x1007c050`. Emits miss feedback and delivers zero damage/result 3 through the attack path. | +| MissedAttackInfo / `0x5c654b28` | i32 ammo `+24`, i32 slot `+20`, attacker identity `+28`, target identity `+30` | Reader `0x100b1460`, activation `0x100b14f0` -> `0x1007c050`. Emits miss feedback and delivers zero damage/result 3 through the attack path. | | HealthDamage / `0x3710256c` | i32 absolute health `+20`, i32 signed change `+24`, i32 damage type `+28`, i32 death reason `+2c` | `0x100b09c0` / `0x100b0a50`. Sets stat 27 to the supplied absolute value; negative change displays damage, positive change displays healing for the local character. | | ReflectAttack / `0x1c3a4f77` | i32 amount `+28`, identity other `+20`, i32 death reason `+2c` | Shared reader `0x100b1ef0`, activation `0x100b1df0`. Subtracts amount from the envelope actor's health and emits reflect feedback. | | ShieldAttack / `0x25192476` | Same layout as ReflectAttack | Activation `0x100b1f40`. Subtracts amount from envelope actor's health; separate shield-feedback categories. | @@ -155,6 +155,40 @@ hits use **4**. Other result values and the original server's selection probabilities remain unresolved. Do not turn these three values into an invented complete enum. +For a miss, the envelope actor is the attacker and the complete payload is +`ammo, slot, 50000, attackerID, 50000, targetID`. The miss handler supplies +zero damage, result 3 and death reason 0 to the weapon path. It immediately +prints miss feedback for the local attacker or defender; an uninvolved +observer does not receive that chat message from this handler. Misses still +enter the attack animation queue. Critical result 5 only selects feedback; +the server must supply the entire critical damage amount. + +With a known attacker, AttackInfo routes to that actor's current weapon holder. +Its queue retains only `(damage, result)` pairs, and impact processing uses +the holder's current opponent. It does not retain the packet's target identity. +WeaponBase `+0x10` points to the vector whose `+4` points to 50 eight-byte +entries; `+0x14` and `+0x18` are the wrapping write and read indices. Weapon +swaps and target changes must account for pending results rather than moving +them onto a replacement weapon or opponent. + +When the attacker is absent, AttackInfo immediately damages a local payload +target with generic hit feedback, even for result 5. MissedAttackInfo has no +equivalent missing-attacker fallback. Both handlers assign the supplied ammo +to a bound weapon's stat 26 immediately; `-1` is assigned literally rather +than meaning "leave unchanged". A ranged miss therefore needs the correct +remaining ammunition. Do not send HealthDamage for the same queued hit: its +absolute assignment can precede a second subtraction at animation impact. + +The focused static follow-up is retained in +`local/reports/combat-outcomes-1491-evidence.json`: miss layout and routing +`ev_f2c0df36fc8998e347500a7b6aa2cf23b3193d6d576102c125bf173bf5917e2f` +and `ev_cf4486baf0e2583092b6fc82c2e69a2b296402a0d5ea332333c92dad174e9424`, +critical feedback +`ev_16fbb07444de249fd19ed14114c99abb43239d8f64214cc0e4494b36dc8a7c77`, +and queue consumption +`ev_520ea6a76399b14f885b060bd23c6ddafd4226878686f08217ba4da81894dba1`. +These paths consume server outcomes and do not establish their probabilities. + Reflect and shield results apply damage to the **envelope actor**, while SpecialAttackInfo applies it to its **payload target**. HealthDamage supplies an absolute value; NanoAttack supplies a signed delta. Treating these as one diff --git a/docs/combat-rules.md b/docs/combat-rules.md @@ -191,6 +191,27 @@ probability formula is unknown. This supports the broad pre-Shadowlands damage model, but not exact integer ordering, minimum-damage treatment in every case, hit probability, critical probability, or NPC attack stats. +The [July 2002 weapon guide](https://forums-archive.anarchy-online.com/showthread.php?37266-How-to-Choose-A-Weapon-Guide-for-the-MP=) +independently gives a weapon `100-200(400)` at AR 800: ordinary damage +300-600 and critical damage 1800. Its example scales both maximum and critical +bonus, supporting `(maximum + bonus) * (1 + AR/400)` before armor. The shipped +QL 1 axe 209283 has maximum 20 and critical bonus stat 284 equal to 5; +QL 1 fists 43712 have maximum 5 and bonus 3; Leet weapon 120910 has maximum +8 and bonus 4. These catalog values do not supply a critical probability. +All three use 100% EvadeClose stat 155 for defense. + +[Vampi's September 2001 guide](https://martin.brenner.de/ao/vampiguide/weapeval.html#whynocrits) +attributes a minimum 3% critical chance, plus one percentage point per 10% +that attack rating exceeds evade, to Sybex. This is a contemporary secondary +claim: the original book was not inspected, the guide excludes criticals from +its calculator, and no 14.9.1 experiment establishes its caps or roll ordering. +It remains a hypothesis. Subconscious Guidance 95526 authors an additive +CriticalIncrease stat 379 modifier of 8; the native default for that modifier +is 0. Neither fact establishes a hidden baseline or the total chance equation. +The bounded source ledger is `local/combat-outcomes-smoke/source-ledger.json`; +native outcome layouts and their limits are in the +[combat protocol](combat-client-protocol.md#result-messages-and-their-effects). + The [May 2003 timing discussion](https://forums-archive.anarchy-online.com/showthread.php?138367-Weapon-Attack-Recharge=) also records initiative reducing attack by 1 second and recharge by 2