EntityReplacer
О материале
«EntityReplacer» — материал мастерской DayZ. Оружие, транспорт, территории и моды для серверов. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
This mod can be used to replace specific items or vehicles on the map on server start and transfers all attachments (as long as compatible slots are on the replacement), complete inventory, current global health, quantity (in case of stacks, liquid containers or magazines), and in case of vehicles, also fuel and coolant (if you are using Expansion, it also transfers key pairings for vehicles).
This can be useful to (e.g.) get rid of bugged items, or to replace items from one mod with items from another mod.
WARNING WARNING WARNING READ THIS!
NO GUARANTEE CAN BE MADE THAT THIS ALWAYS WORKS CORRECTLY.
CAVEATS: Replacing vehicles in this way takes them out of the events spawners, so vehicles that were originally spawned by events WILL respawn as well which can lead to an unwanted increase of vehicles on the map. Also make sure vehicle lifetimes in your types XMLs are set sensibly (set them to 3888000 to be on the safe side).
How to use this mod:
- Subscribe and add it to your server command line (-servermod=@EntityReplacer)
- Create a text file EntityReplacer.cfg in your server profile directory. For an example of what to put in this file see below.
- After editing EntityReplacer.cfg, start server.
Example EntityReplacer.cfg that will replace all Sedan_02 (Sarka) with Hatchback_02 (Gunther):
Sedan_02 = Hatchback_02
Sedan_02_Door_1_1 = Hatchback_02_Door_1_1
Sedan_02_Door_1_2 = Hatchback_02_Door_1_2
Sedan_02_Door_2_1 = Hatchback_02_Door_2_1
Sedan_02_Door_2_2 = Hatchback_02_Door_2_2
Sedan_02_Hood = Hatchback_02_Hood
Sedan_02_Trunk = Hatchback_02_Trunk
Sedan_02_Wheel = Hatchback_02_Wheel
It will also work for modded vehicles (if both vehicle types are coming from a mod, both mods need to be loaded during replacement).
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.