From 31b7a053e699a9f804259dff82328080db2336f2 Mon Sep 17 00:00:00 2001 From: Sofia Date: Mon, 3 Aug 2026 15:45:48 +0300 Subject: [PATCH] Update weapon rotation on shoot correctly --- rust/src/player/local_player.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rust/src/player/local_player.rs b/rust/src/player/local_player.rs index 6b7aa9e..60f896f 100644 --- a/rust/src/player/local_player.rs +++ b/rust/src/player/local_player.rs @@ -202,6 +202,10 @@ impl IPlayer for LocalPlayer { fn try_shoot(&mut self, to: Vector3, deal_damage: bool) -> bool { if self.try_shoot_common(to, deal_damage) { + if let Some(weapon) = &mut self.weapon { + weapon.set_position(-Vector3::FORWARD); + weapon.set_rotation(Vector3::RIGHT * 0.5); + } if let Some(game) = &mut Game::singleton() && let Some(recorder) = game.bind_mut().recorder() {