[GH-ISSUE #3736] GrimAC flags Simulation when sprint hitting another player #1069

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

Originally created by @kira-horizon[bot] on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3736

Originally assigned to: @elythepreciouscat on GitHub.

Version: 0.1.0 · OS: Ubuntu 26.04.1, AMD Ryzen 7 7700X, NVIDIA RTX 5070 (copied from the report)

What I did:

  • spun up Paper 26.3 (build 226) test server with GrimAC 2.3.75 (commit 1299a2a), superflat survival
  • made 2 players join, one on Horizon (0.1.0, from main 0e57b1f6c, release) and a vanilla 26.3 client
  • target player (to be hit) uses vanilla and stands still, while Horizon holds sprint, runs into it and lands a melee hit. Control: vanilla sprint-hits Horizon the same way.

What happened:

  • Grim flagged Simulation on Horizon after every sprint-hit, for several ticks, the offset decaying at ground friction (0.546): .061244 -> .033439 -> .018258 -> .009969 -> .005443 -> .002972 -> .001623. Every hit appears to repeat the same shape with the same first offset (~.061).
  • The vanilla client landing the same hits flags nothing. Neither client flags while being hit.
  • Per-tick horizontal speed at the hit (recordings):
    vanilla: 0.2784 -> 0.2186 -> 0.1193 -> 0.0652 (stops sprinting on the hit's tick)
    Horizon: 0.2805 -> 0.2806 -> 0.2806 -> 0.1532 (keeps sprint speed two more ticks)

Possible cause?: our sprint-stop PlayerCommand goes out with the next state send, a couple of ticks after the hit, where vanilla's goes out at the hit. 0.2806 - 0.2191 = 0.0615, the first offset: we move at a sprint speed the server stopped predicting. Worth testing on different simulated ping ranges (10, 50, 100, 150, 200ms)

What I expected: no flags; the hit and movement are vanilla's.
Horizon version: 0.1.0, source at main 0e57b1f6c
Also on the Nightly? Not tested. A branch change that sends the sprint stop at the hit exists locally but covers only the local mob path; the multiplayer attack path (remote_start_attack) is unchanged and a sprint-hit lane still flags
OS, CPU, GPU: Ubuntu 26.04.1, AMD Ryzen 7 7700X, NVIDIA RTX 5070

Reported on Discord by ub in #horizon-bugs · Discord thread
Tags: gameplay

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3736 Originally assigned to: @elythepreciouscat on GitHub. **Version:** 0.1.0 · **OS:** Ubuntu 26.04.1, AMD Ryzen 7 7700X, NVIDIA RTX 5070 <sub>(copied from the report)</sub> > What I did: > - spun up Paper 26.3 (build 226) test server with GrimAC 2.3.75 (commit 1299a2a), superflat survival > - made 2 players join, one on Horizon (0.1.0, from main 0e57b1f6c, release) and a vanilla 26.3 client > - target player (to be hit) uses vanilla and stands still, while Horizon holds sprint, runs into it and lands a melee hit. Control: vanilla sprint-hits Horizon the same way. > > What happened: > - Grim flagged Simulation on Horizon after every sprint-hit, for several ticks, the offset decaying at ground friction (0.546): .061244 -&gt; .033439 -&gt; .018258 -&gt; .009969 -&gt; .005443 -&gt; .002972 -&gt; .001623. Every hit appears to repeat the same shape with the same first offset (~.061). > - The vanilla client landing the same hits flags nothing. Neither client flags *while* being hit. > - Per-tick horizontal speed at the hit (recordings): > vanilla: 0.2784 -&gt; 0.2186 -&gt; 0.1193 -&gt; 0.0652 (stops sprinting on the hit's tick) > Horizon: 0.2805 -&gt; 0.2806 -&gt; 0.2806 -&gt; 0.1532 (keeps sprint speed two more ticks) > > Possible cause?: our sprint-stop PlayerCommand goes out with the next state send, a couple of ticks after the hit, where vanilla's goes out at the hit. 0.2806 - 0.2191 = 0.0615, the first offset: we move at a sprint speed the server stopped predicting. Worth testing on different simulated ping ranges (10, 50, 100, 150, 200ms) > > **What I expected:** no flags; the hit and movement are vanilla's. > **Horizon version:** 0.1.0, source at main 0e57b1f6c > **Also on the Nightly?** Not tested. A branch change that sends the sprint stop at the hit exists locally but covers only the local mob path; the multiplayer attack path (remote_start_attack) is unchanged and a sprint-hit lane still flags > **OS, CPU, GPU:** Ubuntu 26.04.1, AMD Ryzen 7 7700X, NVIDIA RTX 5070 Reported on Discord by **ub** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1565371315500753098) Tags: gameplay <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:44:01 +07:00
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 29, 2026):

ub added on Discord:

can u give me the pr, just wanna make sure

im not sure i know fs wym by charge slowdown

<!-- gh-comment-id:6499972454 --> @kira-horizon[bot] commented on GitHub (Oct 29, 2026): **ub** added on Discord: > can u give me the pr, just wanna make sure > im not sure i know fs wym by charge slowdown <!-- kira -->
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 29, 2026):

ub added on Discord:

theres also boating simulation flags ill just file in case no one else did this yet

different thread

<!-- gh-comment-id:6500228679 --> @kira-horizon[bot] commented on GitHub (Oct 29, 2026): **ub** added on Discord: > theres also boating simulation flags ill just file in case no one else did this yet > different thread <!-- kira -->
Author
Owner

@elythepreciouscat commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6536153244 --> @elythepreciouscat commented on GitHub (Oct 31, 2026): 🤖 Agent: /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#1069
No description provided.