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

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
+3 -1
View File
@@ -62,8 +62,10 @@ namespace NecromancerTome
public static int Current(EntityPlayerLocal _player) public static int Current(EntityPlayerLocal _player)
{ {
// Только от первого лица (16.10: «В виде от третьего лица что-то страшное»): поза и перенос ножа - для рук первого
// лица; от третьего лица модель в руке - у тела, и нож улетал к невидимой руке первого лица.
if (_player != null && _player.inventory?.holdingItem?.Name == CinerariumThreads.ThreadKnifeName && if (_player != null && _player.inventory?.holdingItem?.Name == CinerariumThreads.ThreadKnifeName &&
!SnakeMode.Active && !MindPalace.Active && !Possession.Active && !_player.IsDead()) (_player.emodel as EModelSDCS)?.IsFPV == true && !SnakeMode.Active && !MindPalace.Active && !Possession.Active && !_player.IsDead())
{ {
if (_threadSince < 0f) if (_threadSince < 0f)
{ {
+2 -1
View File
@@ -341,7 +341,8 @@ namespace NecromancerTome
{ {
Transform lh = Bone("LeftHand"); Transform lh = Bone("LeftHand");
Transform m = HeldTweak.Model(); 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); m.SetPositionAndRotation(lh.TransformPoint(KnifeLeftPos), lh.rotation * KnifeLeftRot);
} }