Summary
Ограничитель колличеества вертолетов на карте
Description
Отдельный мод для Arma Reforger. Создаёт одну открытую игровую группу пилотов с ролью `HELI_TRANSPORT` для выбранной фракции. Пустая группа сохраняется, создание второй группы с этой ролью в выбранной фракции блокируется.
Заказывать вертолёты через каталог техники и режим строительства могут только участники этой группы. Ограничение касается игроков всех фракций, как в исходной реализации ZemConflictPVEClean. Оно не запрещает садиться в уже существующие вертолёты и не заменяет остальные условия покупки техники.
При первом запуске сервер создаёт `$profile:ZemHelicopterGroup.json`:
```json
{
"GroupName": "Pilots",
"MaxMembers": 3,
"FactionKey": "USSR"
}
```
- `GroupName` — отображаемое название группы.
- `MaxMembers` — максимальное количество участников, целое число от 1. Это число мест в группе, а не количество автоматически создаваемых ботов.
- `FactionKey` — внутренний ключ фракции из сценария, например `USSR` или `US`. Регистр имеет значение.
`$profile:` обозначает папку профиля сервера. Например, при `-profile "D:\ReforgerServer"` конфиг находится в `D:\ReforgerServer\profile\ZemHelicopterGroup.json`. Файл редактируется на сервере; клиентам отдельный конфиг не нужен. Настройки применяются при следующем запуске сценария/сервера. Для изменения фракции используйте новый сеанс без восстановления прежней группы из сохранения.
Пустые строки, отсутствующие поля и недопустимый лимит заменяются значениями по умолчанию в памяти. Нечитаемый JSON тоже приводит к использованию значений по умолчанию. Существующий файл не перезаписывается, предупреждения выводятся в журнал с префиксом `[ZemHelicopterGroup]`.
Фракция должна существовать в сценарии и поддерживать игровые группы с ролью `HELI_TRANSPORT`. Если группу не удалось создать за 60 попыток, мод пишет причину в журнал; исправьте конфиг/сценарий и перезапустите сервер.
ENG
A standalone mod for Arma Reforger. It creates a single open player group for pilots with the HELI_TRANSPORT role for the selected faction. The empty group is preserved, and creating a second group with the same role for the selected faction is blocked.
Only members of this group can request helicopters through the vehicle catalog and construction mode. This restriction applies to players of all factions, as in the original ZemConflictPVEClean implementation. It does not prevent players from entering existing helicopters and does not replace any other vehicle purchase requirements.
On first server startup, the mod creates $profile:ZemHelicopterGroup.json:
{
"GroupName": "Pilots",
"MaxMembers": 3,
"FactionKey": "USSR"
}
GroupName — the display name of the group.
MaxMembers — the maximum number of members, an integer starting from 1. This is the number of available slots in the group, not the number of bots created automatically.
FactionKey — the internal faction key used by the scenario, for example USSR or US. It is case-sensitive.
$profile: refers to the server profile directory. For example, when using -profile "D:\ReforgerServer", the config file is located at:
D:\ReforgerServer\profile\ZemHelicopterGroup.json
The file is edited on the server; clients do not need a separate config file. Settings are applied on the next scenario/server startup. When changing the faction, start a new session without restoring the previous group from a save.
Empty strings, missing fields, and invalid limits are replaced with default values in memory. An unreadable JSON file also causes the mod to fall back to default values. An existing file is not overwritten. Warnings are written to the log with the [ZemHelicopterGroup] prefix.
The faction must exist in the scenario and support playable groups with the HELI_TRANSPORT role. If the group cannot be created after 60 attempts, the mod writes the reason to the log; fix the configuration/scenario and restart the server.License
Arma Public License (APL)