Режим змеи: выход по R только когда тело уже лежит

В первые RagdollDelay секунд после входа игра ещё обрабатывает ввод:
можно было взять ствол, и R разом перезаряжало его и выводило из змеи.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
AlexCube
2026-09-29 09:05:31 +03:00
co-authored by Claude Opus 5.5
parent 888cf1ee7e
commit b737dd43d0
3 changed files with 4 additions and 1 deletions
+4 -1
View File
@@ -271,8 +271,11 @@ namespace NecromancerTome
{ {
player.emodel.DoRagdoll(EModelBase.RagdollMode.Default, 999999f, EnumBodyPartHit.None, Vector3.zero, Vector3.zero, false); player.emodel.DoRagdoll(EModelBase.RagdollMode.Default, 999999f, EnumBodyPartHit.None, Vector3.zero, Vector3.zero, false);
} }
// Выход по R - только когда тело уже лежит. В первые RagdollDelay секунд игра ещё
// обрабатывает ввод: можно взять ствол, и R разом перезарядило бы его и вывело из змеи.
PlayerActionsLocal input = player.playerInput; 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); Exit(player);
} }
Binary file not shown.
Binary file not shown.