From 39fcc10dd83f98c0736546b349606dbe8adc6a51 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 29 Jan 2025 06:51:07 +0300 Subject: [PATCH] fix player rotation --- res/content/base/scripts/components/player_animator.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/content/base/scripts/components/player_animator.lua b/res/content/base/scripts/components/player_animator.lua index 8862c6c22..78049a2ce 100644 --- a/res/content/base/scripts/components/player_animator.lua +++ b/res/content/base/scripts/components/player_animator.lua @@ -19,7 +19,7 @@ function on_render() return end - local rx, ry, rz = player.get_rot(pid, true) + local rx, ry, rz = player.get_rot(pid, pid ~= hud.get_player()) rig:set_matrix(headIndex, mat4.rotate({1, 0, 0}, ry)) rig:set_matrix(bodyIndex, mat4.rotate({0, 1, 0}, rx))