[PR #2455] [MERGED] Swing a horse's tail now and then #4331

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

📋 Pull Request Information

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

Base: main ← Head: fix/horse-tail-swing


📝 Commits (1)

  • 82d2b61 Swing a horse's tail now and then

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+10 -0)
📝 crates/horizon-client/src/mobs/ai.rs (+1 -1)
📝 crates/horizon-client/src/mobs/equine.rs (+25 -1)

📄 Description

What and why

Horses never swung their tail. The server drew the 1-in-200 moveTail roll and threw it away, and the model always set the tail's yaw to 0.

Now each horse keeps a client-side tail counter. A 1-in-200 roll starts it, it runs for 8 ticks, and while it runs the tail yaw is cos(age * 0.7). A client of a server runs the same counter on its own random, as vanilla's client-side aiStep does.

Vanilla reference

  • AbstractHorse.aiStep (moveTail on nextInt(200) == 0) and AbstractHorse.tick (tailCounter counts to 8)
  • AbstractHorseRenderer (animateTail = tailCounter > 0) and AbstractEquineModel.setupAnim

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/2455 **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/horse-tail-swing` --- ### 📝 Commits (1) - [`82d2b61`](https://github.com/horizon-rust/horizon/commit/82d2b61a4a5a1eb01030a0e8516eddb39d0587da) Swing a horse's tail now and then ### 📊 Changes **3 files changed** (+36 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+10 -0) 📝 `crates/horizon-client/src/mobs/ai.rs` (+1 -1) 📝 `crates/horizon-client/src/mobs/equine.rs` (+25 -1) </details> ### 📄 Description ## What and why Horses never swung their tail. The server drew the 1-in-200 `moveTail` roll and threw it away, and the model always set the tail's yaw to 0. Now each horse keeps a client-side tail counter. A 1-in-200 roll starts it, it runs for 8 ticks, and while it runs the tail yaw is `cos(age * 0.7)`. A client of a server runs the same counter on its own random, as vanilla's client-side `aiStep` does. ## Vanilla reference - `AbstractHorse.aiStep` (`moveTail` on `nextInt(200) == 0`) and `AbstractHorse.tick` (`tailCounter` counts to 8) - `AbstractHorseRenderer` (`animateTail = tailCounter > 0`) and `AbstractEquineModel.setupAnim` ## 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:16:24 +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#4331
No description provided.