From 330314327a7b8f6fadd878399d54aa6de5774586 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Wed, 28 Oct 2026 06:30:14 +0100 Subject: [PATCH 1/2] Give a mounted spear charge its mount's speed The charge read the rider's own last move, which a rider never sends, so on horseback it had no speed and hit nothing. ServerPlayer.getKnownSpeed gives a rider its vehicle's movement. --- crates/horizon-client/src/game/spear.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/crates/horizon-client/src/game/spear.rs b/crates/horizon-client/src/game/spear.rs index f7d1b5e4e..9bef4a23a 100644 --- a/crates/horizon-client/src/game/spear.rs +++ b/crates/horizon-client/src/game/spear.rs @@ -44,8 +44,16 @@ impl Game<'_> { } /// `ServerPlayer.getKnownMovement` of the acting player: what they moved - /// in the last tick. A guest's comes with their moves. + /// in the last tick. A guest's comes with their moves. A rider's is its + /// mount's move (`getKnownSpeed`: the vehicle's, or the move the driver's + /// client sent for it), so a charge on horseback carries the horse's speed. fn known_player_movement(&self) -> Vec3 { + if let Some(i) = self + .riding + .and_then(|v| self.mobs.iter().position(|m| m.id == v)) + { + return self.mob_speed(i).scale(1.0 / 20.0); + } if self.lan_acting.is_some() { return self.known_movement; } From 4a1c5fc54c02502df1bd6233f913c20a16822ca9 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Wed, 28 Oct 2026 06:57:48 +0100 Subject: [PATCH 2/2] Stop sprinting after a spear stab with knockback Player.causeExtraKnockback stops the attacker's sprint, as the melee path already does. --- crates/horizon-client/src/game/spear.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/horizon-client/src/game/spear.rs b/crates/horizon-client/src/game/spear.rs index 9bef4a23a..6954fc61d 100644 --- a/crates/horizon-client/src/game/spear.rs +++ b/crates/horizon-client/src/game/spear.rs @@ -247,6 +247,8 @@ impl Game<'_> { self.mobs[index].knockback(0.4, xd, zd); let (strength, _) = self.extra_knockback(&kind, 0.0); self.mobs[index].knockback(f64::from(strength), xd, zd); + // ...and the attacker stops sprinting. + self.stop_sprint_after_extra_knockback(); } let dismounted = dismounts && self.mobs[index].extra.mount.is_some(); if dismounted {