Jump-loot: host tests, and the ACE note at the jump call

LootJumpTests covers the jump-loot port: a two-item corpse sends the keyboard jump
(TapJump) first and the move second and never JumpNonAutonomous; a corpse's only
match jumps once; the setting off and stamina of 5 or less send no jump. FakeHost
gains an Order list (tapjump, jump, move:XXXXXXXX) so the order is checkable. The
single-item case fails if a "more than one item left" gate is put back.

The comment at the jump call says why the skip works on ACE: the server's pickup
reads IsJumping (Player_Inventory GetPickupMotion) and is gated by the server
setting allow_jump_loot (default true).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Wallace 2026-10-30 20:14:29 -07:00
commit f78a96fb3e
4 changed files with 167 additions and 6 deletions

View file

@ -1686,8 +1686,10 @@ public sealed partial class RynthAiPlugin
LootDiag($"[RynthAi] {LootTag}: picking up 0x{(uint)firstMatchId:X8} '{matchItemName}' from corpse 0x{(uint)corpseId:X8}.");
// Jump-loot: jump, then the move while the character is still in the air, so the server
// skips the pickup bend-down. The jump is the keyboard one (TapJump, 0xF61B Jump, which
// ACE handles); JumpNonAutonomous (0xF7C9) has no handler on ACE and did nothing. The
// skips the pickup bend-down (on ACE the pickup reads IsJumping in Player_Inventory's
// GetPickupMotion, gated by the server setting allow_jump_loot, default true). The jump is
// the keyboard one (TapJump, 0xF61B Jump, which ACE handles); JumpNonAutonomous (0xF7C9)
// has no handler on ACE and did nothing. The
// jump goes FIRST: ACE's jump handler stops any walk-to in progress, so a jump after the
// move would cancel the pickup. Every pickup, a corpse's only match included (most
// corpses hold one match, so a multi-item gate meant jump-loot almost never ran), with