Combat protocol in the 14.9.1 client
This is a static inventory of the selected original client, not a capture of the historical Funcom server. It records what the client can send, decode, and apply. Combat rules covers the current reconstruction and timing formulas; starting stats covers health and Agg/Def. The state-machine investigation covers scheduling, weapon selection, reload clocks, and dual wielding.
Evidence and boundaries
The target is anarchy-vanilla-14.9.1/kkr.dll, SHA-256
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
Addresses below use its original image base 0x10000000. Generated C in
client/game/kkr.dll/ uses base 0x36000000; subtract 0x26000000.
The inventory follows exact class-name references through registration
factories or request constructors into their vtable stores. Original PE
vtable slots 2, 6, and 7 identify activation, payload reading, and payload
writing respectively. The local retained inventory is
local/reports/combat-client-protocol-vtables.json. Export-name discovery
and all 88 exact ASCII IIR class names are retained in
combat-export-inventory.json and combat-iir-name-inventory.json in the
same directory. Export names alone do not establish behavior.
The numeric keys in the tables are class-derived IDs: the class-name XOR calculation reproduces the already exercised attack, stop, and Agg/Def IDs. Finding a class and its serializer does not establish that its ID appeared in a live session. Do not describe the other IDs as captured traffic.
Payloads below exclude the common N3 prefix: big-endian message key, actor
identity (u32 type, u32 instance), and byte pass-on flag. An identity is
eight bytes. i32, u32, and byte widths describe serialized values, not
the size of the containing C++ object. Integer signedness is stated only
when the receiver uses it. TCP padding is outside the payload.
Coverage is deliberately narrower than a complete combat implementation:
| Area | Wire coverage | Effect coverage |
|---|---|---|
| Attack, stop, Agg/Def, generic special | Complete subclass layouts | Target/stop/stat/weapon routing traced; server eligibility policy unresolved. |
| Nine damage/result families | Complete subclass layouts | Health, ammo, miss, critical, death-reason and feedback effects traced. Other result enum values unresolved. |
| Reload, equipped-weapon list | Complete subclass layouts | Handler routing traced; clocks detailed in the state-machine document. |
| Skill, Action, Resurrect, LookAt | Complete subclass layouts | Direct stat assignment / dispatch / no-op traced; individual action and resurrection lifecycle partial. |
| CharacterAction | Complete envelope layout | Combat branches below traced; the full action enum remains partial. |
| SpellList, ApplySpells | Container framing, outer layouts and six combat argument layouts complete | Add/remove mode and actual lock notification recovered; other variable effect bodies remain outside the documented subset. |
That is 22 class families: 20 complete subclass layouts, plus two spell-container families whose combat encoding subset is detailed in the spell-stream contract. "Complete layout" does not imply historical traffic was observed or that all rules behind that message have been reconstructed.
Request and state surfaces
C -> S means a client sender was traced. S -> C means a client activation
handler was inspected; it does not assert that the original server emitted
the message in a particular situation. A class can support both directions.
| Surface | Class-derived ID | Direction | Payload / coverage |
|---|---|---|---|
| Start attack | AttackIIR_t, 0x28494070 |
C -> S and S -> C | identity target, byte mode. Exact layout and target activation. |
| Stop attack | StopFightIIR_t, 0x4a41203e |
C -> S and S -> C | u32 boolean. Exact layout; stop activation inspected. |
| Agg/Def | SetAggDefIIR_t, 0x76793f0d |
C -> S and S -> C | i32 value, validated -100..100, applied to stat 51. |
| Secondary special | CharSecSpecAttackIIR_t, 0x51492120 |
C -> S and S -> C | identity target, i32 special StatEnum. Exact layout and WeaponHolder routing. |
| Character action | CharacterActionIIR_t, 0x5e477770 |
C -> S and S -> C | i32 action, identity A, identity B. Shared cast, abort, death, parry, and special-feedback envelope. |
| Target selection | N3Msg_SelectedTarget, 0x10023110 |
Local path inspected | Updates camera/selected-target state; can call item interactions. It is not itself proof of an attack request. |
| Assist | N3Msg_AssistFight, 0x1002cc30 |
Local path inspected | Rejects missing/self/non-fighting target, then selects the assisted character's fighting target. No separate assist packet was found in this path. |
| Look at | LookAtIIR_t, 0x2252445f |
Constructor/reader inspected | identity plus i32 mode validated 0..2; its activation slot resolves to a no-op. This does not establish combat authorization. |
| Equip / unequip | N3Msg_MoveItemToInventory, 0x1002a1f0 |
C -> S | Checks wear/unwear locally, prepares inventory move through 0x100425c0, sends IIR. Full inventory-message layout is outside this combat inventory. |
| Use / reload | N3Msg_UseItem, 0x1002acd0 |
C -> S | Includes CharacterAction 106 with null identities. Other branches route item use and inventory moves; branch eligibility belongs to item/equipment state. |
Attack payload reader/writer: 0x10087700 / 0x10087740; activation
0x100876a0 selects the target through the actor's WeaponHolder. Stop reader
0x10084330 converts a u32 to boolean; writer 0x10084310 writes a u32.
Its activation 0x100842f0 calls the stop virtual method with argument 1
without consulting that decoded boolean.
Secondary-special reader 0x1007d9f0, activation 0x1007da30, and sender
N3Msg_SecondarySpecialAttack at 0x1002c090 establish a generic special
request. Separate Brawl, Burst, and Full Auto request classes were not found
among the 88 class-name strings. This bounded search does not prove there
are no other request paths.
The secondary-special sender checks existing fighting/selected target, skill-lock state, available weapons, special availability, and range before sending. These checks improve the UI; the server must perform its own validation and own the resulting locks and recharge.
The special argument is a skill stat ID, not an action enum. Native skill-name
initializer 0x10036490 in lifted-0019.c establishes:
| Special | Stat ID | Special | Stat ID |
|---|---|---|---|
| Brawling | 142 | Dimach | 144 |
| Riposte | 143 | Parry | 145 |
| Sneak Attack | 146 | Fast Attack | 147 |
| Fling Shot | 150 | Aimed Shot | 151 |
| Burst | 148 | Full Auto | 167 |
Exact store/string addresses and independent short/long-name matches are
retained in local/reports/combat-client-special-stat-names.json. This mapping
does not establish that every skill can be requested with every weapon.
The GUI also has distinct state. ddr.dll!0x10057740 dispatches the attack
button's action 11; eer.dll!0x10002e00 obtains a GUI event target before
calling the engine attack entry. Range-indicator handlers in ddr at
0x10063970 / 0x10063980 only toggle a targeting-module byte. A lit range
indicator is not a server-side range or line-of-sight decision.
N3Msg_GetDistrictFightMode at 0x10026ae0 is a local district-resource
query through 0x100534c0. It returns -1 without a client character and
uses numeric fallback 2 when its resource/district lookup fails. This path
does not recover the server's PvP permission rules, suppression-gas timing,
NPC hostility, hate list, taunts, or aggro target selection. The visual fight
states and client line-of-sight checks are described in the state-machine
document and likewise do not establish authoritative server permission.
Result messages and their effects
Offsets such as +0x24 name C++ object fields. They prevent an unknown field
from acquiring a speculative semantic name. Payload order follows the reader,
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, 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. |
Absorb / 0x264e5f61 |
i32 absorbed amount +20, i32 damage type +24 |
Shared reader 0x100b08d0, activation 0x100ae990. Emits absorb feedback; this activation does not subtract health. |
FullAuto / 0x5c4a493a |
i32 bullet count +20, i32 unresolved +24 |
Shared reader 0x100b08d0, activation 0x100b0910. Prints the bullet-count message. This activation does not apply weapon damage. |
SpecialAttackInfo / 0x754f1115 |
i32 slot +28, i32 damage +2c, i32 ammo +30, target identity +20, i32 special StatEnum +34, i32 death reason +38 |
0x100b2c00 / 0x100b2cb0. Emits named-special feedback, subtracts damage from target health, processes death, updates the selected slot's ammo. |
NanoAttack / 0x4727213e |
i32 signed health change +24, i32 damage type +20 |
0x100b1590 / 0x100b1600. Adds signed change to envelope actor's health; displays its absolute magnitude through nano-hit feedback. Unlike HealthDamage, it carries no absolute health. |
Reload / 0x26515e61 |
identity +20, identity +28, i32 +30, i32 +34, u32 boolean +38 |
0x10080bf0 / 0x10080ca0 -> 0x1007bca0. Exact wire widths; weapon/ammo/timer interpretation traced in the state-machine investigation. |
SpecialAttackWeapon / 0x1d3c0f1c |
encoded weapon list, five i32 values +24..+34 |
Reader 0x10083f00. Activation 0x10083fb0 initializes an empty weapon map and applies stats 118,119,120,149,51 (initiatives and Agg/Def) for a nonlocal actor. List layout described below. |
Skill / 0x3e205660 |
i32 count, then count pairs (i32 stat, i32 value) |
0x10083d30 -> 0x10008c90; activation 0x10083d80 assigns each stat. This is not evidence that a plain stat assignment starts a skill-lock countdown. |
Action / 0x2049527c |
i32 version 1, i32 action +20, identity argument +24 |
Reader 0x100aea40; activation 0x100aeaa0 dispatches to the actor/item action handler. Receiver rejects another version. Individual action contracts remain partial. |
Resurrect / 0x445f2a0b |
two i32 values +20,+24 |
Reader 0x100b08d0; activation 0x10080e20 assigns these to stats 27 and 214, then calls 0x10053230. The server handles native action-152 return and one saved scanner; insurance fees, reclaim and historical resource amounts remain unresolved. See player resurrection. |
SpecialAttackWeapon uses 0x100767d0: an encoded count of
1009 * (count + 1), then four i32 values per entry. The reader stores these
at object offsets 0,4,12,8, respectively: low template, high template,
skill/map key, and an unresolved parameter. 0x1007b9a0 constructs the initial
item with actor Level 54 rather than the final row word. Key 100 may bind that
item to weapon-controller slot 0; it is not the controller slot number itself.
See fist selection research for the constructor,
modifier-refresh stub and evidence boundaries.
The result field is not an independently rolled client attack outcome.
0x1007a660 queues damage and result; 0x100ab5a0 consumes that queue when
processing the weapon effect. 0x1001d0b0 appends the critical-hit text when
the result equals 5. The miss path supplies 3, and exercised normal
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 generic damage packet would change the wrong character or apply damage twice. AttackInfo can apply damage through an animation queue; its fallback behavior when the attacker is absent is also significant for observer interest.
Nano actions, interruption, and death
N3Msg_CastNanoSpell at 0x10022180 first calls a local nano validation path,
then constructs CharacterAction 19 with target identity A and nano
identity B. N3Msg_TryAbortNanoFormula at 0x10027e60 reaches
0x100667b0, which sends CharacterAction 108 with null identities when
its local-character condition holds. A client request is not authoritative
proof of successful casting, interruption, resource consumption, or effect
application.
The CharacterAction receiver 0x1007d640 routes to SimpleChar action handler
0x1006fa30. Confirmed combat branches include:
| Action | Client effect | Remaining boundary |
|---|---|---|
| 18 | Calls nano success/application path 0x10064bc0 with nano ID from identity B's instance and target A. |
Server must select successful effects and authoritative costs. |
| 20 | Calls nano failure path 0x10064d70; reason 2 displays insufficient nano energy, reason 6 insufficient level; 3 and 4 suppress this generic failure text. |
Other reasons and exact server failure ordering unresolved. |
| 65 | Calls nano termination/removal path 0x10064ee0 using identity B. It emits termination text, can reduce used NCU stat 180, and removes the effect. |
Exact server expiry, dispel and replacement policies remain unresolved. |
| 77 | Displays parry feedback, with different text for attacker and defender. | Does not establish parry probability or server availability rules. |
| 80 | Displays Brawl when identity B's type is 142 and Dimach when it is 144. | Presentation feedback is separate from the generic special request and damage result. |
| 99 | Sets corpse/death presentation, using identity B's instance for animation. | Does not implement corpse rights, reclaim, XP loss, resurrection sickness, or respawn. |
| 106 / 108 | Outgoing reload / abort requests found in client senders. | Do not echo them as successful completion without tracing the reply/effect contract. |
| 170 | Starts a skill lock from identity B (skill ID, raw seconds), through 0x10073ae0. |
Duplicate starts do not refresh the lock. The client counts it down separately from weapon and nano timers; server eligibility remains authoritative. |
Death-reason handling 0x10072340 sets health to zero. Its local-character
messages distinguish 1 self termination, 2 reflected damage, 3 shield damage,
4 weapon damage, 5 nano damage, 6 falling, and 7 liquid damage. A death reason
inside a damage result and CharacterAction 99's presentation are distinct
effects.
Two further classes carry persistent spell/effect state:
| Class / class-derived ID | Recovered contract | Coverage |
|---|---|---|
SpellList / 0x4d450114 |
Reader 0x100c3350 allocates a spell container, decodes through 0x100bd000; activation 0x100c33f0 applies it to the actor's stat/effect holder in addition mode. |
Six combat argument layouts and an exact Modify plus SkillTime payload are documented in the spell-stream contract. |
ApplySpells / 0x342c1d1d |
Reader 0x10156b40 decodes spell container, identity, and one-byte boolean; activation 0x10156ae0 looks up its payload identity and applies the container. Wire byte 1 adds; 0 removes. |
Same documented combat argument subset; other variable bodies remain unreviewed. |
The common spell-container decoder 0x100bd000 requires a positive i32
divisible by 1009 and obtains count = value / 1009 - 1, with count below
1000. Each entry begins with an identity, followed by a variable effect body
decoded by 0x100b9530. That decoder contains a large effect-kind dispatch;
the outer count and identity must not be mistaken for the full per-effect
layout. Invalid container framing marks the stream bad. The
spell-stream contract now specifies common
headers, requirements, native reader/writer branches and the six relevant
argument layouts. SkillTime decoding is distinct from actual CharacterAction
170 lock creation.
Nano success action 18 calls 0x10064bc0, which resolves the nano template
and target and routes execution through 0x100650f0 in mode 1. Failure
action 20 calls 0x10064d70, which routes the same template path in mode 3.
Action 65's 0x10064ee0 is termination, not a cast-start notification.
Server responsibility contract
The client owns target selection UI, tentative eligibility feedback, weapon animation, local timers, effect presentation, and interpretation of received state. These are useful compatibility obligations, not trusted combat results. The server must own:
- Current actor/target identities, visibility, life state, zone, attack eligibility, range and line of sight, fighting target, and session lifetime.
- Weapon and special selection, authoritative attack/recharge and skill/action locks, ammo, reload completion, equipment transitions, and cancellation.
- Hit/miss/critical/parry outcomes, damage type, defenses, armor, absorbs, reflect and shields, resource changes, and exactly one authoritative health change for each result.
- Nano validation, costs, execution and recharge, interruptions and abort outcomes, effect durations, stacking, removal, and replication to observers.
- Death and corpse lifecycle, opponent cancellation, ownership, reclaim, resurrection and respawn. Presentation packets alone do not supply these.
Send participant spawns before fighting/results, preserve packet order within a connection, and replay current state for a late observer. Replaying historical damage or replaying a subtractive result after an absolute-health update can corrupt client health. Preserve the difference between current-health state and one-time combat effects.
Retained evidence and remaining work
The earlier portable bundle local/reports/combat-1491-evidence.json contains
exact attack, hit, health, death, and CharacterAction decoding. In particular:
ev_8687fd6e603c302e4ab3fee7b405ea3e5c9a615e0f56bff18dd20ff949da8d4c: AttackInfo, HealthDamage, attack effect routing, character update.ev_991bfd8cce8e805d213a8eacd30750d0ec75ec71d96721a722e4ea4eff928c7a: CharacterAction and SimpleChar action switch.ev_eb20a4ca58374e72da2f8326ccfd51f83f77758fcff01da9626fa192429b926d: attack target activation, damage application, death reasons, critical text.
New REA batches retained as local/reports/combat-client-decompiles-*.json:
- Batch 7,
ev_065aec48e84d7bcfd376705ec06f50ef9f1ffd1b50711ff79c65ede2a927eec6: miss, reflect, shield, absorb, Full Auto, special result, nano delta, reload, weapon-list and action readers/activations. - Batch 12,
ev_a063bfcb51a54d2dc54c5b4be9e190258148e173c7fd0217122b8b417527af80: common two-int reader, miss effects, ammo update, fight-result lookup, CharacterAction abort, spell-list reader, and generic special activation. - Batch 14,
ev_9b6945a8f0e6e5dbb13ee803a3d432352ef04c48d131fc12032c7c52941d74ef: ApplySpells/Skill readers, Skill activation, cast/special/assist/selected-target and equipment-move senders. - Batch 19,
ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d: spell-container framing, counted stat pairs, nano success, failure, and termination helpers.
Ghidra did not resolve procedures at 0x10083fb0, 0x100aeaa0,
0x100842f0, 0x100c33f0, or 0x10156ae0 in these batches. Their generated
C boundaries and original-instruction comments were inspected directly
(lifted-0038.c, lifted-0051.c, lifted-0057.c, lifted-0099.c). This
is a stated decompiler limitation, not absence of their handlers.
This pass does not exhaust InventoryUpdate/InventoryUpdated, full nested spell effects, every CharacterAction code, combat feedback/error codes, or every inventory use branch. It does not recover unavailable server hit rolls, NPC combat profiles, taunt/hate selection, PvP eligibility, or progression. Those gaps remain explicit implementation work, even where a compatible client-facing message shape is now known.