! Fix head rotation not showing on other players
This commit is contained in:
parent
e092de711e
commit
1210a75fb7
@ -1021,16 +1021,16 @@ void Player::update(float dt, uint64_t) {
|
|||||||
|| m_humanoid->danceCyclicOrEnded() || m_movementController->running())
|
|| m_humanoid->danceCyclicOrEnded() || m_movementController->running())
|
||||||
m_humanoid->setDance({});
|
m_humanoid->setDance({});
|
||||||
|
|
||||||
|
bool isClient = world()->isClient();
|
||||||
|
if (isClient)
|
||||||
|
m_armor->setupHumanoidClothingDrawables(*m_humanoid, forceNude());
|
||||||
|
|
||||||
m_tools->suppressItems(suppressedItems);
|
m_tools->suppressItems(suppressedItems);
|
||||||
m_tools->tick(dt, m_shifting, m_pendingMoves);
|
m_tools->tick(dt, m_shifting, m_pendingMoves);
|
||||||
|
|
||||||
if (auto overrideFacingDirection = m_tools->setupHumanoidHandItems(*m_humanoid, position(), aimPosition()))
|
if (auto overrideFacingDirection = m_tools->setupHumanoidHandItems(*m_humanoid, position(), aimPosition()))
|
||||||
m_movementController->controlFace(*overrideFacingDirection);
|
m_movementController->controlFace(*overrideFacingDirection);
|
||||||
|
|
||||||
bool isClient = world()->isClient();
|
|
||||||
if (isClient)
|
|
||||||
m_armor->setupHumanoidClothingDrawables(*m_humanoid, forceNude());
|
|
||||||
|
|
||||||
m_effectsAnimator->resetTransformationGroup("flip");
|
m_effectsAnimator->resetTransformationGroup("flip");
|
||||||
if (m_movementController->facingDirection() == Direction::Left)
|
if (m_movementController->facingDirection() == Direction::Left)
|
||||||
m_effectsAnimator->scaleTransformationGroup("flip", Vec2F(-1, 1));
|
m_effectsAnimator->scaleTransformationGroup("flip", Vec2F(-1, 1));
|
||||||
@ -1100,7 +1100,8 @@ void Player::update(float dt, uint64_t) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_humanoid->setHeadRotation(headRotation);
|
m_humanoid->setHeadRotation(headRotation);
|
||||||
setSecretProperty("humanoid.headRotation", headRotation);
|
if (isMaster())
|
||||||
|
setSecretProperty("humanoid.headRotation", headRotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user