DayZ
29 个评价
EntityReplacer
   
奖励
收藏
已收藏
取消收藏
Type: Mod, Server
文件大小
发表于
更新日期
29.330 KB
2020 年 11 月 21 日 上午 5:20
2024 年 5 月 10 日 下午 12:17
18 项改动说明 ( 查看 )

订阅以下载
EntityReplacer

描述
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:

1. Subscribe and add it to your server command line (-servermod=@EntityReplacer)
2. Create a text file EntityReplacer.cfg in your server profile directory. For an example of what to put in this file see below.
3. 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).
30 条留言
NEO 2023 年 4 月 22 日 下午 10:40 
Does the mod replace things only when server start or constantly replacing, ex: admin spawn an item that's in the replace list
Jez 2022 年 3 月 12 日 下午 12:25 
Great mod, thanks for this very handy to get rid of the unwanted crud on the map.
pennybelle 2022 年 1 月 29 日 下午 5:14 
Error with 1.16: entityreplacer.c(657): Can't find variable 'CZ527StableStateID'

Causes server crashes. Love this mod, hope to see it transfers over <3
Dublonen und Moneten 2022 年 1 月 13 日 下午 2:38 
any1 know how to play it tho?
Blake Raz al Ghul 2022 年 1 月 13 日 下午 1:37 
how do we do command line thingy majiger
SRR-Viper 2022 年 1 月 13 日 下午 1:37 
your description explains how to add it to a server start not a game start???
◣ ▲▼▲  [作者] 2022 年 1 月 13 日 下午 1:26 
It would help if people would read the description of this mod...
76561199086920825 2022 年 1 月 13 日 下午 1:20 
???
k9cerenaa 2022 年 1 月 13 日 下午 1:14 
wht da hell man
SRR-Viper 2022 年 1 月 13 日 下午 12:52 
not loading :-(