mirror of
https://github.com/solcloud/Counter-Strike.git
synced 2025-02-22 19:02:27 +01:00
Also rotate other players sight, so we can spectate their sight
This commit is contained in:
parent
07a9c0bf0c
commit
2acaa91dc0
@ -458,6 +458,7 @@ export class Game {
|
||||
updateOtherPlayersModels(player, data) {
|
||||
const playerObject = player.get3DObject()
|
||||
playerObject.rotation.y = serverHorizontalRotationToThreeRadian(data.look.horizontal)
|
||||
playerObject.getObjectByName('sight').rotation.x = serverVerticalRotationToThreeRadian(data.look.vertical)
|
||||
|
||||
const hand = playerObject.getObjectByName('hand')
|
||||
if (hand.children.length) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user