fix player rotation

This commit is contained in:
MihailRis 2025-01-29 06:51:07 +03:00
parent efa5a5be2b
commit 39fcc10dd8

View File

@ -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))