Team loot
Accepted teams can select All, Leader or Alpha loot order. Damage from current teammates counts toward one team total, independently of solo players and other teams. The greatest total wins; the final hitter need not belong to that team. Current members can open All remains and take items under the ordinary visibility, session, life, playfield, range and expiry checks. Both Use and pickup recheck membership. Leaving, being kicked or dissolving a team revokes open handles; a newly formed team cannot inherit the old team's remains. Leader and Alpha remains also require their designated player to remain a current member. Team money splitting and the historical edge policies below remain unresolved.
Original contract
The shipped 14.9.1 cd_image/text/tips/OnSelectRemains.txt assigns rights to
the player or team doing the majority of damage. help/Team Commands.txt and
help/TeamHelp.txt establish All as the default, Leader as leader-only, and
Alpha as a repeating alphabetical order.
Original kkr.dll, SHA256
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0,
reads the corpse's team DWORD, mode DWORD and looter identity at
100af9c0. Activation 100afcb0 passes them to 1008c740. With mode3 and
a matching local team stat6, it prints the native All-team entitlement message.
A null designated looter is accepted without the missing-looter warning.
The server supplies the awarded team ID, mode3 and null looter for All remains.
Leader/Alpha remains use mode4/5 and the designated player's identity. Solo
remains retain their individual identity. The short three-client check confirms
the native All, named Leader and named Alpha entitlement messages.
Retained Ghidra observations, using original image-base addresses:
| Function | Evidence ID |
|---|---|
Corpse reader 100af9c0 |
ev_f8c10d1214ccfec5696ea6f52779bf8b4db2445af4e1c3b45f6d45e01ccd70f6 |
Activation 100afcb0 |
ev_3e82ececa597561761499a97017d95500c20e2976780cfbfb7443a09a9354c90 |
Entitlement 1008c740 |
ev_5b7ba2e86cb9e8f2f9b09548779950b959cad1f341bf8bb7c66014c9dbab7f78 |
These are static observations, not observations of the original live server.
Indirect call coverage is incomplete; the retained dossiers preserve those
limitations in local/team-loot-research/native-evidence.json.
The independent original-code audit also recovered /team loot action145
and /team loot MODE action127 on CharacterAction 5e477770. Set uses the
first identity's instance; query feedback uses the second. All=3, Leader=4,
Alpha=5. The source/address ledger is
docs/research-notes/team-loot-research/wire-audit.md. Queries now answer only their owner;
accepted setters notify ready members. Only the current leader can set modes,
and the server whitelists3/4/5 and zero unused arguments. Failed or ignored writes
publish neither configuration nor success. These recipient choices are current
server policy; the client audit alone does not prove the original recipient set.
Selected allocation policy
The core order descriptions above are shipped rules. The following edge choices are explicit reconstruction policy, pending period server/capture evidence:
- Capture mode and designated player when an awarded corpse is committed. Subsequent mode changes and leadership transfers do not reassign old remains.
- Leader captures the leader at death. Alpha selects from the entire current roster, including offline, dead or remote members. Current visibility, life, range and membership checks still apply when that player tries to loot.
- Alpha sorts names using SQLite's ASCII case-insensitive collation, then player ID for ties. It selects the member after the last assigned ID, wrapping. If that ID has left the roster, selection starts at its first member. Roster and name changes are read afresh for each award.
- Every awarded corpse advances Alpha, including an empty one. Opening, refusals, cash collection and item pickup do not advance it. Switching away from Alpha and back preserves its cursor.
- Departure revokes designated access without assigning a substitute. Those remains can become inaccessible until expiry under the current policy.
The team stores its live order and last Alpha assignee. The corpse stores its captured order, team and designated player. Alpha advancement shares the same transaction as corpse state and generated items, plus ranged ammunition, nano cost or a special lock when applicable. There is no separate in-memory cursor to advance after a failed commit. Routine simulation keeps its existing checkpoint cadence. The broader original-policy TODO remains open.
Accounting and durability
Each hit credits the attacker's team at that moment, or that individual when unteamed. Player and team IDs occupy separate namespaces. Leaving or joining does not retroactively move earlier damage. Equal totals retain the first beneficiary to reach the tied total. Applied damage excludes overkill; stopped attacks and NPC regeneration retain contributions for this NPC life.
Hit-time membership, greatest-total plurality, ties and retention are explicit reconstruction policies. The shipped help does not settle those details. Authorization uses current membership, so later accepted members may loot old All remains. If the team dissolves, its old remains become inaccessible until expiry. Disconnect alone retains membership under the existing team policy. No public unlock timer or fallback to an individual owner is inferred.
Routine damage and simulation state use periodic checkpoints. Corpse creation and its rights are saved immediately before normal/nano death packets. Failed saves retain the live HP and contribution state; a failed nano result refunds its reserved cost. Fling commits damage, ownership and its skill lock together. Corpse state, outstanding contributions and untaken items survive restart. Historical team IDs are scalar awards, without a cascading reference to a live team row. Respawn starts a fresh life and damage ledger.
Ordinary ranged attacks commit ammunition and any resulting NPC death in one transaction. Failure at a row write or COMMIT preserves the round, live HP and contributions. Nonlethal simulation stays on periodic checkpoints. The focused failure, concurrency and write-count cases are described in pistol ammunition.
Item pickup and cash collection retain the existing atomic inventory transactions. Competing members can receive only one durable item owner and one cash collection. A committed pickup refreshes other eligible open windows without reopening them. The taker retains the ordinary native transfer ACK. The first eligible successful Use receives the whole cash amount; team money splitting is unimplemented, and this unsplit policy is not claimed as original team cash behavior. Native deferred cash ordering remains as described in corpse credits.
Verification
TestTeamLoot* covers aggregate competition, solo/team ID collisions, ties,
competing teams, concurrent Use and pickup, stale outsider handles, departure,
replacement teams, failed saves, restart during combat, immediate durable death,
and normal/nano/Fling awards. Broader verification and runtime captures are
retained in local/team-loot-research/.
TestTeamLootOrder* additionally covers the original query/set pair layouts,
mode persistence, invalid modes/owners/arguments, ignored writes, alphabetical
rotation, empty remains, roster/leader/mode changes and absent members. Cursor,
corpse and COMMIT failures cover ordinary, ranged, Fling and nano kills with
unchanged live/cold outcomes and exact retry. These tests verify the selected
policies above, not their historical provenance.
TestBrowserTeamLootOrders types real commands into three WASM clients and
checks native queries, both members' notifications, foreign/undesignated Use
refusal and actual pickup. Five controlled killing blows yield item assignments
2/1/2/1/2 across All, Leader and three Alpha turns. Both page reconnects and a
fresh database reader retain those exact instances and cash. This is controlled
fixture evidence, not earned progression. Captures and current validation logs
are under local/team-loot-modes/.
TestBrowserColdAlphaCorpsePickup resumes a controlled prior Alpha cursor,
commits the next awarded corpse, closes the database and starts a fresh server.
Three fresh WASM clients query the retained mode, reject the unassigned leader
and outsider, and let the designated non-killer collect and reopen the empty
corpse without its former living actor. Collection leaves the stored cursor
unchanged. Its captures are referenced by the current evidence report.
The earlier All-only full-suite results are retained with their original
local/team-loot-research/ evidence. They do not validate the new modes.
Current related Go checks pass 180 roots/641 results. Focused race checks pass
9 roots/45 results, including simultaneous deaths. Vet and both native checks
pass; all 24 saved native traces have no errors or dropped events. Exact scopes,
source hashes, controlled-fixture limits and terminal results are recorded in
local/team-loot-modes/verification.json.
Three WASM clients used the GPU/OpenGL renderer against the single HTTPS preview. An ordinary production-server combat kill immediately persisted team 14 and printed the native All entitlement message for members 21/22, not outsider 23. A temporary build overlay then supplied two fixture Monster Parts and 123 credits at death, with a one-hour observation window. It did not change authorization, native packets, cash collection or pickup. Both members opened the same corpse; their native Use results were success 1 while the outsider received failure 2. Member 22 received 123 credits exactly once. Item 194 went to member 22 and item 195 to leader 21; both open windows changed from two entries to one to none. SQLite and both native inventories agreed after restart with the ordinary server binary. No page errors or adapter failures occurred in these verification runs.
All original 192 item records/placements, fixture-player profiles, ammunition,
cash and NPC state were restored; team 14 was removed and owned browsers closed.
The production preview remains on HTTPS 8443. Assertions and limits are retained
in local/team-loot-research/verification.json.
The earlier reconnect pass could not locate clickable remains at its original camera/fixture placement. The maintained flat-ground cold checks now pick All and Alpha remains without their former living actors. Broader corpse placement and slope conformance remain separate native audit work.
Remaining work includes original allocation edge policies, team money splitting, original membership/disconnect and public unlock rules, and production drop tables. Team XP additionally requires verified share arithmetic and historical base rewards; the existing solo kill-XP path uses explicitly provisional reward values.