Skip to content

Активные СЦП без игрока в теле - #1124

Open
666XxttimurkaxX666 wants to merge 2 commits into
space-sunrise:masterfrom
666XxttimurkaxX666:add-bot-scp
Open

Активные СЦП без игрока в теле#1124
666XxttimurkaxX666 wants to merge 2 commits into
space-sunrise:masterfrom
666XxttimurkaxX666:add-bot-scp

Conversation

@666XxttimurkaxX666

@666XxttimurkaxX666 666XxttimurkaxX666 commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Краткое описание

так сцп будут более реалистичными и живее

Ссылка на багрепорт/Предложение

Медиа (Видео/Скриншоты)

Changelog

🆑 timur

  • add: Добавлен ИИ SCP-131. Теперь каплеглазики будут следовать и наблюдать за встречным человеком
  • add: Добавлен ИИ SCP-939. Теперь рептилия будет слушать, бродить и атаковать людей
  • add: Добавлен ИИ SCP-999. Теперь слайм будут следовать и общаться со встречным человеком

Summary by CodeRabbit

  • Новые возможности
    • Добавлено автономное поведение для SCP-999: поиск ближайшего гуманоида, следование, ожидание и локализованные реплики.
    • SCP-131A получил возможность самостоятельно перемещаться и взаимодействовать с объектами в ближнем радиусе.
    • SCP-939 получил автоматическое обнаружение целей, преследование и ближний бой.
    • Для SCP-247 и SCP-999 настроена корректная принадлежность к фракции SCP.
    • SCP-999 и SCP-939 теперь самостоятельно выбирают действия с учётом окружающей обстановки.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Добавлены HTN-конфигурации для SCP-999 и подключены HTN-компоненты с перемещением к SCP-131A, SCP-939 и SCP-999. Для SCP-247 изменена фракция на SCPs.

Changes

HTN-поведение SCP

Layer / File(s) Summary
Поиск целей и поведение SCP-999
Resources/Prototypes/_Scp/Entities/Mobs/NPCs/compound.yml
Scp999Compound выбирает следование или бездействие. Scp999FollowNearbyCompound ищет доступную гуманоидную цель, перемещается к ней, ожидает и произносит локализованную реплику. NearbyHumanoidTarget учитывает расстояние, доступность и линию видимости.
Подключение HTN к SCP-прототипам
Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp131.yml, Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp939.yml, Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp999.yml, Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp247.yml
Для SCP-131A, SCP-939 и SCP-999 добавлены HTN с постоянным перепланированием и компоненты перемещения. Для SCP-247 изменена фракция на SCPs.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant SCP999
  participant Scp999Compound
  participant NearbyHumanoidTarget
  participant Movement
  participant Speech
  SCP999->>Scp999Compound: запуск HTN с постоянным перепланированием
  Scp999Compound->>NearbyHumanoidTarget: поиск ближайшей доступной гуманоидной цели
  NearbyHumanoidTarget-->>Scp999Compound: цель в зоне видимости
  Scp999Compound->>Movement: следование к цели
  Scp999Compound->>Speech: скрытая локализованная реплика после ожидания
Loading

Possibly related PRs

Suggested labels: 📦 YAML | Прототип 📦, 🧊 Нет C# 🧊

Suggested reviewers: wardexofficial


Important

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

❌ Failed checks (1 error)

Check name Status Explanation Resolution
Ss14 Yaml/Ftl Rules ❌ Error В новом utilityQuery объявлен ID NearbyHumanoidTarget без префикса Scp; правило требует префикс для уникального fork-контента. Переименуйте ID в ScpNearbyHumanoidTarget и обновите ссылку operator.proto в compound.yml.
✅ Passed checks (10 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Ss14 Bridge Sync ✅ Passed В диапазоне PR изменены только файлы Resources и Content.Server; канонические файлы и мосты в .agents/.agent/.claude/.cursor/.github не изменены.
Ss14 Fork/Project Folder Selection ✅ Passed Remote имеет slug project-fire; все пять изменённых прототипов размещены в Resources/Prototypes/_Scp, а Fire-идентификаторы отсутствуют в _Sunrise.
Ss14 C# Rules ✅ Passed Проверка не применима: в diff PR изменены только YAML-файлы, изменённых файлов .cs нет.
Ss14 Prototype ↔ Ftl Parity ✅ Passed Итоговый diff добавляет только технические HTN-прототипы и меняет поведение существующих Scp131A, Scp247, Scp939 и Scp999; их ID и suffix не менялись, а ent-* ключи есть в ru-RU и en-US.
Ss14 Prediction Safety ✅ Passed Проверка не применима: diff содержит только 5 YAML-файлов в Resources/Prototypes; код Content.Shared и predicted input не изменён, HTN выполняется в Content.Server.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Заголовок точно описывает основную цель изменений: добавление активного ИИ для SCP без игрока в теле.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Resources/Prototypes/_Scp/Entities/Mobs/NPCs/compound.yml`:
- Around line 68-71: В запросе ComponentQuery, используемом
Scp999FollowNearbyCompound и Scp096FollowNearbyCompound, удалите фильтр species:
Human, сохранив проверку только на компонент HumanoidAppearance, чтобы
выбирались ближайшие гуманоиды всех видов.

In `@Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp939.yml`:
- Around line 111-123: Update the HTN blackboard value for MeleeRange in the
SCP-939 configuration to 2 so it matches the weapon’s effective range; leave the
existing melee weapon range unchanged.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c2de0d01-ea35-47cd-a4eb-86fd58c68475

📥 Commits

Reviewing files that changed from the base of the PR and between ae326eb and 4ae51fb.

📒 Files selected for processing (6)
  • Resources/Prototypes/_Scp/Entities/Mobs/NPCs/compound.yml
  • Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp096.yml
  • Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp131.yml
  • Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp247.yml
  • Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp939.yml
  • Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp999.yml

Comment thread Resources/Prototypes/_Scp/Entities/Mobs/NPCs/compound.yml
Comment thread Resources/Prototypes/_Scp/Entities/Mobs/Player/Scp/Main/scp939.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant