[PR #2524] [MERGED] Draw the guardian's swimming bubbles and the bubble trail along its beam #4394

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

📋 Pull Request Information

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

Base: main ← Head: fix/guardian-bubbles


📝 Commits (1)

  • 87b533c Draw the guardian's swimming bubbles and the bubble trail along its beam

📊 Changes

2 files changed (+56 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/creatures.rs (+55 -0)
📝 crates/horizon-client/src/game/remote.rs (+1 -0)

📄 Description

What and why

Guardians left no bubbles at all. In vanilla a guardian that is moving in water leaves two bubbles behind it every tick, and while its beam is locked on a target a trail of bubbles rises along the beam, spaced wider as the beam charges. This draws both.

The bubbles are drawn only on the client side, as in vanilla, so the guardian's own random is not used. They are added after the mobs tick, in the in-frame game and in the client of a server (server thread, LAN guest), which already has the guardian's synced moving flag and attack target.

Vanilla reference

Guardian.aiStep, the level().isClientSide() branch:

  • isMoving() && isInWater(): two BUBBLE at getRandomX(0.5), getRandomY(), getRandomZ(0.5) minus getViewVector(0) times 1.5.
  • hasActiveAttackTarget(): BUBBLE from the guardian's eye toward the target's half height, stepping 1.8 - attackScale + random * (1.7 - attackScale).

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/2524 **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/guardian-bubbles` --- ### 📝 Commits (1) - [`87b533c`](https://github.com/horizon-rust/horizon/commit/87b533c5a92ac6054c66f7320247ef27c3cae0e8) Draw the guardian's swimming bubbles and the bubble trail along its beam ### 📊 Changes **2 files changed** (+56 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/creatures.rs` (+55 -0) 📝 `crates/horizon-client/src/game/remote.rs` (+1 -0) </details> ### 📄 Description ## What and why Guardians left no bubbles at all. In vanilla a guardian that is moving in water leaves two bubbles behind it every tick, and while its beam is locked on a target a trail of bubbles rises along the beam, spaced wider as the beam charges. This draws both. The bubbles are drawn only on the client side, as in vanilla, so the guardian's own random is not used. They are added after the mobs tick, in the in-frame game and in the client of a server (server thread, LAN guest), which already has the guardian's synced moving flag and attack target. ## Vanilla reference `Guardian.aiStep`, the `level().isClientSide()` branch: - `isMoving() && isInWater()`: two BUBBLE at `getRandomX(0.5)`, `getRandomY()`, `getRandomZ(0.5)` minus `getViewVector(0)` times 1.5. - `hasActiveAttackTarget()`: BUBBLE from the guardian's eye toward the target's half height, stepping `1.8 - attackScale + random * (1.7 - attackScale)`. ## 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:50 +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#4394
No description provided.