DayZ
SFE: AutoClose Barrel
Showing 1-4 of 4 entries
Update: 6 Apr @ 12:19am

🛢️ AutoClose Barrel System — Changelog

🔄 v1.1 – Большое обновление (оптимизированный режим)

- 🧠 Добавлен оптимизированный режим автозакрытия бочек:
- Закрытие всех открытых бочек происходит при запуске(рестарте) сервера;
- Больше не нужны таймеры, скрипт выполняется один раз без нагрузки.

- ⚙️ Новый конфигурационный JSON:
- Путь: `profiles/Setting_CloseBarrel/Setting_CloseBarrel.json`
- Настраиваемые параметры:
- `EnableTimerAutoClose` | 0/1 | Включает/выключает таймер на закрытие после открытия
- `AutoCloseDelay` | int | Время в секундах, через которое бочка будет закрыта
- `CheckPlayersNearby` | 0/1 | Проверка: если рядом есть игрок — не закрывать
- `PlayerDistanceToPreventClose` | float | Радиус, в пределах которого игрок мешает автозакрытию (в метрах)
- `UseOptimizedMode` | 0/1 | Включает одноразовое закрытие бочек при запуске(рестарте) сервера

- ✅ Работает как серверный мод (`-servermod=...`)

📢 Спасибо за поддержку и фидбек!
💬 Все предложения — в наш Discord: https://discord.gg/tJ3S6pkuNv


🛢️ AutoClose Barrel System — Changelog

v1.1 – Big update (optimized mode)

- 🧠 An optimized automatic barrel closing mode has been added:
- All open barrels are closed when the server is started (restarted);
- Timers are no longer needed, the script is executed once without load.

- ⚙️ New configuration JSON:
- Path: 'profiles/Setting_CloseBarrel/Setting_CloseBarrel.json`
- Configurable parameters:
- 'EnableTimerAutoClose` | 0/1 | Turns on/off the timer for closing after opening
- `AutoCloseDelay` | int | The time in seconds after which the barrel will be closed
- `CheckPlayersNearby` | 0/1 | Check: if there is a player nearby, do not close
- `PlayerDistanceToPreventClose` | float | The radius within which the player prevents auto-closing (in meters)
- `UseOptimizedMode` | 0/1 | Enables one-time closing of barrels when starting (restarting) the server

- ✅ Works as a server mod (`-servermod=...`)

All offers are in our Discord: https://discord.gg/tJ3S6pkuNv

Update: 3 Apr @ 8:36am

🛠️ Обновление AutoClose Barrel — стабильная версия
Проблема с автозакрытием бочек решена полностью.

Ранее мод автоматически закрывал бочки, находящиеся внутри транспорта, стеллажей, палаток или других контейнеров. После закрытия доступ к ним был невозможен, особенно если слот не отображался в UI.

✅ Что исправлено:
Бочка не будет автоматически закрыта, если она находится внутри любого объекта (машина, стеллаж, ящик, палатка и т.д.).
Автозакрытие теперь срабатывает только если бочка стоит свободно на земле.
Механика проверки игроков рядом (2.5 м) осталась без изменений — если игрок рядом, таймер перезапускается.


💬 Спасибо всем, кто помог протестировать мод и указал на баги!
Если найдёте ещё что-то — пишите!

🛠️ AutoClose Barrel Update — stable version
The problem with auto-closing barrels has been completely solved.

Previously, the mod automatically closed barrels located inside vehicles, racks, tents or other containers. After closing, access to them was impossible, especially if the slot was not displayed in the UI.

✅ What has been fixed:
The barrel will not be automatically closed if it is inside any object (car, rack, box, tent, etc.).
Auto-closing is now triggered only if the barrel is free on the ground.
The mechanics of checking nearby players (2.5 m) remained unchanged — if a player is nearby, the timer restarts.


speech_balloon: Thanks to everyone who helped test the mod and pointed out the bugs!
If you find anything else, write!

Update: 2 Apr @ 11:01am

Ранее в моде AutoClose Barrel возникала проблема:
бочки, находящиеся внутри транспорта (например, M3S), также автоматически закрывались.
После этого их невозможно было открыть или достать содержимое, особенно если слот в машине не отображался визуально.

Теперь эта проблема полностью устранена.
Мод больше не закрывает бочки, если они находятся внутри транспортного средства.

Что изменилось:
- Добавлена проверка: если бочка находится в инвентаре транспорта, она не будет автоматически закрыта.
- Бочки, стоящие на земле, продолжают закрываться по таймеру (если рядом нет игроков).

Спасибо всем, кто помог выявить проблему и протестировал мод.
Если найдёте ещё баги — пишите!

Previously, there was a problem in the AutoClose Barrel mod:
barrels located inside vehicles (for example, M3S) were also automatically closed.
After that, it was impossible to open them or get the contents, especially if the slot in the machine was not visually displayed.

This problem has now been completely fixed.
The mod no longer closes barrels if they are inside the vehicle.

What has changed:
- Added a check: if the barrel is in the transport inventory, it will not be automatically closed.
- Barrels standing on the ground continue to close on a timer (if there are no players nearby).

Thanks to everyone who helped identify the problem and tested the mod.
If you find any more bugs, please write!

Update: 2 Apr @ 8:55am