[PR #2310] [MERGED] Shield: hold it up in first person and show the block pose on other players #4193

Closed
opened 2026-11-03 04:15:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2310
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/2289-shield-pose


📝 Commits (3)

  • d18197a Shield: hold it up in first person and show the block pose on other players
  • 6cf5b04 Merge main into fix/2289-shield-pose
  • c7937c5 Merge main into fix/2289-shield-pose

📊 Changes

3 files changed (+31 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/item_draw.rs (+5 -2)
📝 crates/horizon-client/src/game/lan.rs (+12 -0)
📝 crates/horizon-client/src/game/remote.rs (+14 -0)

📄 Description

What and why

The shield showed no raise pose. Two causes:

  • In first person the shield's use duration was 0 (only bows, crossbows and the like were listed), so the hand never counted as "using" the shield and kept the normal swing pose instead of holding it up.
  • Other players' models (players seen on the server thread or a LAN host) never got the blocking flag, so their arm stayed in the plain "holding an item" pose while they blocked.

The use duration is now 72000 for any item with blocks_attacks, and remote player models raise the arm when the item in the used hand has blocks_attacks.

Fixes #2289.

Vanilla reference

  • Item.getUseDuration (72000 with BLOCKS_ATTACKS)
  • FirstPersonHandsAndItems (item in use)
  • AvatarRenderer.getArmPose (BLOCK animation) and HumanoidModel.poseBlockingArm

Self-check

cargo check -p horizon-client passes.


🔄 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/2310 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/2289-shield-pose` --- ### 📝 Commits (3) - [`d18197a`](https://github.com/horizon-rust/horizon/commit/d18197a17645d076b4d61e715a2150e72f8b5c97) Shield: hold it up in first person and show the block pose on other players - [`6cf5b04`](https://github.com/horizon-rust/horizon/commit/6cf5b046fa0ab5793ade3527c23fa128570d51ed) Merge main into fix/2289-shield-pose - [`c7937c5`](https://github.com/horizon-rust/horizon/commit/c7937c5c2013d77318ac8fec9be2f8f118915cf8) Merge main into fix/2289-shield-pose ### 📊 Changes **3 files changed** (+31 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/item_draw.rs` (+5 -2) 📝 `crates/horizon-client/src/game/lan.rs` (+12 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+14 -0) </details> ### 📄 Description ## What and why The shield showed no raise pose. Two causes: - In first person the shield's use duration was 0 (only bows, crossbows and the like were listed), so the hand never counted as "using" the shield and kept the normal swing pose instead of holding it up. - Other players' models (players seen on the server thread or a LAN host) never got the blocking flag, so their arm stayed in the plain "holding an item" pose while they blocked. The use duration is now 72000 for any item with `blocks_attacks`, and remote player models raise the arm when the item in the used hand has `blocks_attacks`. Fixes #2289. ## Vanilla reference - `Item.getUseDuration` (72000 with `BLOCKS_ATTACKS`) - `FirstPersonHandsAndItems` (item in use) - `AvatarRenderer.getArmPose` (`BLOCK` animation) and `HumanoidModel.poseBlockingArm` ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:22 +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#4193
No description provided.