Хват для нитей - только от первого лица

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-10-16 23:05:22 +03:00
co-authored by Claude Opus 5.5
parent fc1fa53736
commit 5a05c86657
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -341,7 +341,8 @@ namespace NecromancerTome
{
Transform lh = Bone("LeftHand");
Transform m = HeldTweak.Model();
if (lh != null && m != null)
EntityPlayerLocal pl = GameManager.Instance?.World?.GetPrimaryPlayer();
if (lh != null && m != null && (pl?.emodel as EModelSDCS)?.IsFPV == true)
{
m.SetPositionAndRotation(lh.TransformPoint(KnifeLeftPos), lh.rotation * KnifeLeftRot);
}