[PR #682] [MERGED] Fix shield poses, held-item rendering and blocked-hit feedback #2727

Closed
opened 2026-11-02 15:58:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/682
Author: @Online5277
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: fix/blocked-hit-animation


📝 Commits (4)

  • e0364da Avoid hurt animation for fully blocked shield hits
  • cfed77c Pose shields in the active hand and preserve local held item data
  • 1a6fd4e Merge remote-tracking branch 'origin/main' into fix/blocked-hit-animation
  • 41a0b3a Use the exact standard shield yaw constant

📊 Changes

9 files changed (+171 additions, -20 deletions)

View changed files

📝 crates/horizon-client/src/game/fov.rs (+1 -1)
📝 crates/horizon-client/src/game/item_draw.rs (+1 -1)
📝 crates/horizon-client/src/game/mob_blocks.rs (+23 -6)
📝 crates/horizon-client/src/game/perspective.rs (+10 -1)
📝 crates/horizon-client/src/health.rs (+11 -2)
📝 crates/horizon-client/src/hunger.rs (+7 -2)
📝 crates/horizon-client/src/mobs.rs (+2 -0)
📝 crates/horizon-client/src/mobs/anim.rs (+56 -5)
📝 crates/horizon-client/src/motion.rs (+60 -2)

📄 Description

Shield use was missing from offhand item rendering and from the player's arm poses. Fully blocked hits also drove the camera and skin through the combat cooldown's hurt timer.

  • Resolve the active offhand stack and apply the pinned blocking pose to its physical arm, including left-handed players.
  • Use the local player's actual held stacks in third person and inventory, preserving shield colors/patterns and handedness.
  • Animate hurt only for accepted damage; retain combat cooldowns, ordinary damage and starvation feedback.

Fixes #720 #277

Addresses #615 in this PR. The inventory equipment depth/scissor fix is already on main and passes its regressions. Arrow reflection physics are unchanged: 35 focused collision/refusal scenarios, including moving targets, match both pinned 26.3 jars exactly (4,646 output lines per jar). Native frontal-arrow checks while holding W/A/S/D retain 20 health, consume shield durability and show no velocity impulse; the reported intermittent moving knockback was not reproduced.

Validation: damage/blocked-hit regression with prepared resources, blocking-arm/head-limit regression, existing flight/swimming and inventory-preview tests; native raised/lowered captures in both hands and both dominant-arm settings, including patterned shields; fast client build, all-target client Clippy with warnings denied, formatting and whitespace checks pass. Current main is merged, preserving its trident and swimming changes.

Draft for user testing of melee blocks, first/third-person poses, inventory overlap and the original reflection/movement scenario. Remote-server/LAN behavior is untested; this does not establish exhaustive shield parity or close #615 pending those checks.


🔄 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/682 **Author:** [@Online5277](https://github.com/Online5277) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/blocked-hit-animation` --- ### 📝 Commits (4) - [`e0364da`](https://github.com/horizon-rust/horizon/commit/e0364da4ebe9ad2bb4e3f309a03e30cd2b9e430d) Avoid hurt animation for fully blocked shield hits - [`cfed77c`](https://github.com/horizon-rust/horizon/commit/cfed77c227b87f7066e1e86b85ee118aaba119a9) Pose shields in the active hand and preserve local held item data - [`1a6fd4e`](https://github.com/horizon-rust/horizon/commit/1a6fd4e17d76f36248711827f834a2d6bc38df71) Merge remote-tracking branch 'origin/main' into fix/blocked-hit-animation - [`41a0b3a`](https://github.com/horizon-rust/horizon/commit/41a0b3a9e894307f665fb77a371beaecc856a81a) Use the exact standard shield yaw constant ### 📊 Changes **9 files changed** (+171 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/fov.rs` (+1 -1) 📝 `crates/horizon-client/src/game/item_draw.rs` (+1 -1) 📝 `crates/horizon-client/src/game/mob_blocks.rs` (+23 -6) 📝 `crates/horizon-client/src/game/perspective.rs` (+10 -1) 📝 `crates/horizon-client/src/health.rs` (+11 -2) 📝 `crates/horizon-client/src/hunger.rs` (+7 -2) 📝 `crates/horizon-client/src/mobs.rs` (+2 -0) 📝 `crates/horizon-client/src/mobs/anim.rs` (+56 -5) 📝 `crates/horizon-client/src/motion.rs` (+60 -2) </details> ### 📄 Description Shield use was missing from offhand item rendering and from the player's arm poses. Fully blocked hits also drove the camera and skin through the combat cooldown's hurt timer. - Resolve the active offhand stack and apply the pinned blocking pose to its physical arm, including left-handed players. - Use the local player's actual held stacks in third person and inventory, preserving shield colors/patterns and handedness. - Animate hurt only for accepted damage; retain combat cooldowns, ordinary damage and starvation feedback. Fixes #720 #277 Addresses #615 in this PR. The inventory equipment depth/scissor fix is already on main and passes its regressions. Arrow reflection physics are unchanged: 35 focused collision/refusal scenarios, including moving targets, match both pinned 26.3 jars exactly (4,646 output lines per jar). Native frontal-arrow checks while holding W/A/S/D retain 20 health, consume shield durability and show no velocity impulse; the reported intermittent moving knockback was not reproduced. Validation: damage/blocked-hit regression with prepared resources, blocking-arm/head-limit regression, existing flight/swimming and inventory-preview tests; native raised/lowered captures in both hands and both dominant-arm settings, including patterned shields; fast client build, all-target client Clippy with warnings denied, formatting and whitespace checks pass. Current main is merged, preserving its trident and swimming changes. Draft for user testing of melee blocks, first/third-person poses, inventory overlap and the original reflection/movement scenario. Remote-server/LAN behavior is untested; this does not establish exhaustive shield parity or close #615 pending those checks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:36 +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#2727
No description provided.