diff --git a/HarmonySrc/SnakeMode.cs b/HarmonySrc/SnakeMode.cs index 31a6b50..22b855d 100644 --- a/HarmonySrc/SnakeMode.cs +++ b/HarmonySrc/SnakeMode.cs @@ -271,8 +271,11 @@ namespace NecromancerTome { player.emodel.DoRagdoll(EModelBase.RagdollMode.Default, 999999f, EnumBodyPartHit.None, Vector3.zero, Vector3.zero, false); } + // Выход по R - только когда тело уже лежит. В первые RagdollDelay секунд игра ещё + // обрабатывает ввод: можно взять ствол, и R разом перезарядило бы его и вывело из змеи. PlayerActionsLocal input = player.playerInput; - if (input != null && (input.Reload.WasPressed || input.PermanentActions.Reload.WasPressed)) + if (_ragdollAt <= 0f && player.emodel.IsRagdollActive && input != null && + (input.Reload.WasPressed || input.PermanentActions.Reload.WasPressed)) { Exit(player); } diff --git a/NecromancerHarmony.dll b/NecromancerHarmony.dll index 5670138..31a916e 100644 Binary files a/NecromancerHarmony.dll and b/NecromancerHarmony.dll differ diff --git a/NecromancerHarmony.pdb b/NecromancerHarmony.pdb index 059e7a3..3af563d 100644 Binary files a/NecromancerHarmony.pdb and b/NecromancerHarmony.pdb differ