[GH-ISSUE #4278] Spear Lunge cuts the jump: the server's velocity for a player ignores their moves #1256

Closed
opened 2026-11-02 15:45:27 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @hhamaj on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4278

Originally assigned to: @hhamaj on GitHub.

🤖 Filed by hhamaj's AI agent (Claude Code, Opus 5.5), not by hhamaj personally. The in-game comparison is hhamaj's own.

What I did: Used a spear with Lunge while sprint-jumping, on vanilla 26.3 and on Horizon.

What happened: In Horizon the jump is cut every time. In vanilla it is cut only when the jab lands in the same tick as the jump; a jab later in the jump keeps the player's vertical motion.

What I expected: Same as vanilla.

Measured

ClientboundSetEntityMotionPacket sent to the player after a jab with Lunge III, on a vanilla and a Horizon dedicated server, with a vanilla-protocol client sending one position a tick. Yaw 0.

Jab Vanilla (x, y, z) Horizon (x, y, z)
Standing 0, -0.0784, 1.3740 0, -0.0784, 1.3740
Same tick as the jump 0, -0.0784, 1.3740 0, -0.0784, 1.3957
Rising, tick 3 of the jump 0, 0.1648, 1.3740 0, -0.3043, 1.3740
Falling, tick 8 of the jump 0, -0.2277, 1.3740 0, -0.6517, 1.3740

The client replaces its velocity with this packet, so the wrong y is the push down.

Vanilla's y follows the client's jump: 0.1648 is what the client's own next move is. Horizon's y looks like plain gravity from rest, ignoring the player's moves: -0.0784, -0.1552, -0.2305, -0.3043 at tick 3. That matches the server copy of the player falling on its own.

The impulse itself is fine: apply_piercing_effect gives the same horizontal 1.374 as vanilla, and lunge.json's coordinate_scale has no vertical part. The extra 0.0217 of z in the same-tick row is unexplained so far.

Not looked at yet: how vanilla's server copy takes on the client's movement, and which other SetEntityMotion pushes to a player in the air are affected by the same velocity.

Originally created by @hhamaj on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4278 Originally assigned to: @hhamaj on GitHub. > 🤖 Filed by hhamaj's AI agent (Claude Code, Opus 5.5), not by hhamaj personally. The in-game comparison is hhamaj's own. **What I did:** Used a spear with Lunge while sprint-jumping, on vanilla 26.3 and on Horizon. **What happened:** In Horizon the jump is cut every time. In vanilla it is cut only when the jab lands in the same tick as the jump; a jab later in the jump keeps the player's vertical motion. **What I expected:** Same as vanilla. ## Measured `ClientboundSetEntityMotionPacket` sent to the player after a jab with Lunge III, on a vanilla and a Horizon dedicated server, with a vanilla-protocol client sending one position a tick. Yaw 0. | Jab | Vanilla (x, y, z) | Horizon (x, y, z) | |---|---|---| | Standing | 0, -0.0784, 1.3740 | 0, -0.0784, 1.3740 | | Same tick as the jump | 0, -0.0784, 1.3740 | 0, -0.0784, 1.3957 | | Rising, tick 3 of the jump | 0, 0.1648, 1.3740 | 0, -0.3043, 1.3740 | | Falling, tick 8 of the jump | 0, -0.2277, 1.3740 | 0, -0.6517, 1.3740 | The client replaces its velocity with this packet, so the wrong y is the push down. Vanilla's y follows the client's jump: 0.1648 is what the client's own next move is. Horizon's y looks like plain gravity from rest, ignoring the player's moves: -0.0784, -0.1552, -0.2305, -0.3043 at tick 3. That matches the server copy of the player falling on its own. The impulse itself is fine: `apply_piercing_effect` gives the same horizontal 1.374 as vanilla, and `lunge.json`'s `coordinate_scale` has no vertical part. The extra 0.0217 of z in the same-tick row is unexplained so far. Not looked at yet: how vanilla's server copy takes on the client's movement, and which other `SetEntityMotion` pushes to a player in the air are affected by the same velocity.
Author
Owner

@DUzzL commented on GitHub (Oct 30, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6518310040 --> @DUzzL commented on GitHub (Oct 30, 2026): 🤖 Agent: /claim
Author
Owner

@github-actions[bot] commented on GitHub (Oct 30, 2026):

🤖 Claims: refused, You hold 5 open issues: finish or /unclaim one first. (asked by @DUzzL)

<!-- gh-comment-id:6518312882 --> @github-actions[bot] commented on GitHub (Oct 30, 2026): 🤖 Claims: refused, You hold 5 open issues: finish or `/unclaim` one first. (asked by @DUzzL)
Author
Owner

@hhamaj commented on GitHub (Oct 30, 2026):

/claim

<!-- gh-comment-id:6518454506 --> @hhamaj commented on GitHub (Oct 30, 2026): /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1256
No description provided.