[GH-ISSUE #2289] no shield animation #626

Closed
opened 2026-11-02 15:40:37 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ilikewhitegooses on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2289

yeah

Originally created by @ilikewhitegooses on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2289 yeah
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

@ilikewhitegooses thanks for the report! A fix is up in #2310: the shield goes up in first person, and other players show the blocking pose. It's waiting for review.

<!-- gh-comment-id:6422839489 --> @kacpherek commented on GitHub (Oct 26, 2026): @ilikewhitegooses thanks for the report! A fix is up in #2310: the shield goes up in first person, and other players show the blocking pose. It's waiting for review.
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: Fixed in PR #2807. A shield's use animation is the BLOCK one, so the arm goes up and stays up while the shield is used; Horizon neither raised the arm for another player holding a shield nor gave the shield a use duration, so there was no shield animation to show.

The pull request merges kacpherek's PR #2310 (the fix, with its authorship) and adds the tests it lacked:

  • game/lan.rs and game/remote.rs: another player's blocking flag now follows the used item's blocks_attacks component - the vanilla's rule, Item.getUseAnimation gives an item with blocks_attacks the BLOCK animation and AvatarRenderer.getArmPose turns that into HumanoidModel.ArmPose.BLOCK.
  • game/item_draw.rs: the shield's use duration is the vanilla's 72000 ticks (Item.getUseDuration), so the first-person use animation runs instead of ending at once.

Checks:

  • cargo test --locked -p horizon-client --lib -- a_raised_shield -> 1 passed: while the shield is used the arm goes across the body (-0.9424779 radians, turned -PI / 6, the vanilla's HumanoidModel.poseBlockingArm), and an item that does not block attacks leaves the arm holding it.
  • cargo test --locked -p horizon-client --bin horizon-client -- a_shield_is_used -> 1 passed: the shield's use duration is 72000, food keeps its consume time, the bow keeps 72000 and anything else 0.
  • Negative control: with the blocks_attacks case taken out of use_duration, the new test fails - left: 0, right: 72000, the shield's use animation would end at once.

Vanilla (26.3): AvatarRenderer.getArmPose, Item.getUseAnimation, Item.getUseDuration, HumanoidModel.poseBlockingArm and FirstPersonHandsAndItemsRenderer (the first-person hand).

<!-- gh-comment-id:6443063315 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: Fixed in PR #2807. A shield's use animation is the BLOCK one, so the arm goes up and stays up while the shield is used; Horizon neither raised the arm for another player holding a shield nor gave the shield a use duration, so there was no shield animation to show. The pull request merges kacpherek's PR #2310 (the fix, with its authorship) and adds the tests it lacked: - `game/lan.rs` and `game/remote.rs`: another player's `blocking` flag now follows the used item's `blocks_attacks` component - the vanilla's rule, `Item.getUseAnimation` gives an item with `blocks_attacks` the BLOCK animation and `AvatarRenderer.getArmPose` turns that into `HumanoidModel.ArmPose.BLOCK`. - `game/item_draw.rs`: the shield's use duration is the vanilla's 72000 ticks (`Item.getUseDuration`), so the first-person use animation runs instead of ending at once. Checks: - `cargo test --locked -p horizon-client --lib -- a_raised_shield` -> 1 passed: while the shield is used the arm goes across the body (-0.9424779 radians, turned -PI / 6, the vanilla's `HumanoidModel.poseBlockingArm`), and an item that does not block attacks leaves the arm holding it. - `cargo test --locked -p horizon-client --bin horizon-client -- a_shield_is_used` -> 1 passed: the shield's use duration is 72000, food keeps its consume time, the bow keeps 72000 and anything else 0. - Negative control: with the `blocks_attacks` case taken out of `use_duration`, the new test fails - `left: 0, right: 72000`, the shield's use animation would end at once. Vanilla (26.3): `AvatarRenderer.getArmPose`, `Item.getUseAnimation`, `Item.getUseDuration`, `HumanoidModel.poseBlockingArm` and `FirstPersonHandsAndItemsRenderer` (the first-person hand).
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#626
No description provided.