[PR #6460] [MERGED] Swing the hand and trail your own boost with firework rockets on a server #6887

Closed
opened 2026-11-03 06:28:39 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6460
Author: @some-du6e
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/fireworks-remote


📝 Commits (5)

  • 6df52fa Show the trail of a rocket boosting this player on a server
  • 165eb0a Swing the hand when a firework rocket is used on a server
  • 6f9d929 Put a server client's own rocket at the main arm, and keep it ticking
  • c34b27e Read whether the level runs without ticking the rate manager again
  • 56be7fd Tell the spark's three motion components apart in the own-rocket test

📊 Changes

4 files changed (+281 additions, -67 deletions)

View changed files

📝 crates/horizon-client/src/game/fireworks.rs (+39 -26)
📝 crates/horizon-client/src/game/remote.rs (+29 -3)
📝 crates/horizon-client/src/game/remote_projectiles.rs (+38 -38)
➕ tests/test_remote_own_rockets.py (+175 -0)

📄 Description

Closes #6459.

On a server, which includes single player on its server thread, firework rockets were missing two things:

  • No hand swing. Using a rocket on a block, or boosting with one while gliding, didn't swing your hand.
  • No trail behind your own boost. The rocket boosting you moved before you did each tick, so its spark landed where the camera had been.

The fix, on a server client:

  • Trail. Rockets attached to your own player tick after the player's tick (tick_own_rockets, called from tick_remote), as in vanilla's ClientLevel.tickEntities. Each one:

    • boosts the glide;
    • sits at the hand holding it (getHandHoldingItemAngle, now following the main-arm setting);
    • leaves a spark.

    They keep ticking while the player waits for chunks. Every other rocket also leaves its spark. The boost and hand offset are one helper (follow_own_player), shared with the in-frame tick.

  • Swing.

    • predict_item_on_block predicts FireworkRocketItem.useOn's SUCCESS, so the hand swings and the click ends. Like vanilla, it passes while gliding, on cooldown, and in adventure mode off the rocket's can_place_on.
    • remote_use_item swings the hand for a boost while gliding, because 26.3 predicts that swing on the client (SwingSource.PREDICTED).

Testing:

  • tests/test_remote_own_rockets.py runs the real rocket_hand_angle, follow_own_player, rocket_spark and tick_own_rockets against vanilla's view vector. It covers:
    • the boost;
    • the hand offset for all four main-arm and off-hand cases;
    • the spark's position and motion;
    • other rockets left alone;
    • no boost on foot;
    • nothing while the level is frozen.
  • CI's verify passed on the fork at c34b27ef8. The commit after it only touches the Python test.
  • I haven't played the final commits in game. An earlier version of this branch was tested by hand on a vanilla server: rockets flew, but the swing and trail were still missing, which is what this PR fixes.
  • The swing paths, and the rocket ticking after the player, have no automated test; covering them would need a lan_e2e check.

Note

Filed by Opus 5.5 using Claude Code.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6460 **Author:** [@some-du6e](https://github.com/some-du6e) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/fireworks-remote` --- ### 📝 Commits (5) - [`6df52fa`](https://github.com/horizon-rust/horizon/commit/6df52fab75f92cf81639f277f1a2bc7373b2c0c8) Show the trail of a rocket boosting this player on a server - [`165eb0a`](https://github.com/horizon-rust/horizon/commit/165eb0ad3a8bee79f8ecd2910a92f60d5b02c48e) Swing the hand when a firework rocket is used on a server - [`6f9d929`](https://github.com/horizon-rust/horizon/commit/6f9d929bbd6640131ef925dbbe7ef659cdb1f315) Put a server client's own rocket at the main arm, and keep it ticking - [`c34b27e`](https://github.com/horizon-rust/horizon/commit/c34b27ef8a040a780575c37adeedbf681ef91b91) Read whether the level runs without ticking the rate manager again - [`56be7fd`](https://github.com/horizon-rust/horizon/commit/56be7fdcb8ddd89f91dc2a20448643549d97e14e) Tell the spark's three motion components apart in the own-rocket test ### 📊 Changes **4 files changed** (+281 additions, -67 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fireworks.rs` (+39 -26) 📝 `crates/horizon-client/src/game/remote.rs` (+29 -3) 📝 `crates/horizon-client/src/game/remote_projectiles.rs` (+38 -38) ➕ `tests/test_remote_own_rockets.py` (+175 -0) </details> ### 📄 Description Closes #6459. On a server, which includes single player on its server thread, firework rockets were missing two things: - **No hand swing.** Using a rocket on a block, or boosting with one while gliding, didn't swing your hand. - **No trail behind your own boost.** The rocket boosting you moved before you did each tick, so its spark landed where the camera had been. The fix, on a server client: - **Trail.** Rockets attached to your own player tick after the player's tick (`tick_own_rockets`, called from `tick_remote`), as in vanilla's `ClientLevel.tickEntities`. Each one: - boosts the glide; - sits at the hand holding it (`getHandHoldingItemAngle`, now following the main-arm setting); - leaves a spark. They keep ticking while the player waits for chunks. Every other rocket also leaves its spark. The boost and hand offset are one helper (`follow_own_player`), shared with the in-frame tick. - **Swing.** - `predict_item_on_block` predicts `FireworkRocketItem.useOn`'s SUCCESS, so the hand swings and the click ends. Like vanilla, it passes while gliding, on cooldown, and in adventure mode off the rocket's `can_place_on`. - `remote_use_item` swings the hand for a boost while gliding, because 26.3 predicts that swing on the client (`SwingSource.PREDICTED`). Testing: - `tests/test_remote_own_rockets.py` runs the real `rocket_hand_angle`, `follow_own_player`, `rocket_spark` and `tick_own_rockets` against vanilla's view vector. It covers: - the boost; - the hand offset for all four main-arm and off-hand cases; - the spark's position and motion; - other rockets left alone; - no boost on foot; - nothing while the level is frozen. - CI's `verify` passed on the fork at `c34b27ef8`. The commit after it only touches the Python test. - I haven't played the final commits in game. An earlier version of this branch was tested by hand on a vanilla server: rockets flew, but the swing and trail were still missing, which is what this PR fixes. - The swing paths, and the rocket ticking after the player, have no automated test; covering them would need a `lan_e2e` check. > [!NOTE] > Filed by Opus 5.5 using Claude Code. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:28:39 +07:00
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#6887
No description provided.