DayZ
PvZmoD_TheDarkHorde
 This topic has been pinned, so it's probably important
Liven  [developer] Oct 2, 2020 @ 1:15pm
How to Configure Safe Zones
A safe zone is an area where the dark horde can't go.
When the horde enter the safe zone it be teleported outside it.
This is useful to securise traders.

Install the safe zone file
If you install the mod for the first time with the v0.9.k (or newer) you can skip this step, you already should have copied the files at the right place if you followed the mod installation instructions.

If you update the mod from a previous version, you have to copie the “Pvz_TheDarkHorde_SafeZones.xml” file from the default profile folder included in the mod to /YourServerProfileFolder/PvZmoD_TheDarkHorde_Profile/Coordinates/ folder.

Activate the safe zones
By default, this safe zone system is not activated.
In the Pvz_TheDarkHorde_SafeZones.xml set the “Global_Activation” Value to 1
The only safe zone already configured correspond to green mountain.

Add new safe zones
In the Pvz_TheDarkHorde_SafeZones.xml you can duplicate the “SafeZone_Other” section at the end of the list (before the last </types>).

On “type name” value, set the name you want
On “Activated” value, set 1 to activate this safe zone
Corner_UpperLeft Coordinates set the coordinates of the upper left corner of the zone
Corner_LowerRight Coordinates set the coordinates of the lower right corner of the zone
Use Izurvive to find the coordinates you want to set.

This system is not very resource consuming but I advise you to not create too many safe zones. You can create about 10 zones (or more) without problem but I don't recommend to create one safe zone for each player base for example (you can try but no guarantee on the result).

Global_Safe_Zones_Options :

Global_Activation :
  • [0 or 1]
  • Activate or deactivate the safe zones system.

Teleport_Distance_When_Entering_Safe_Zone :
  • [10 to Infinity] Integer (meters)
  • It is the maximum distance where the horde is teleported when entering a safe zone.

Security_Distance_To_Players :
  • [10 to Infinity] Integer (meters)
  • This value avoid dark horde been teleported too close to players.
  • I advice to keep this value inferior to the “ Teleport_Distance_When_Entering_Safe_Zone” if not it can lead the horde not finding free place to teleport (if player is too close to it) and therefore enter into the safe zone.

Also_Count_Players_In_Safe_Zone_To_Trigger_Hunting_Mod :
  • [true or false]
  • This is only useful if you use the “Hunting” deplacement configuration ("2" : 6, in the json file) and you have set a minimum number of players online to activate the hunt (value "76" in the json) to avoid players been always hunted when few players are online.
    When this value is set to false, the players that are in the safe zones are not counted by the “76” feature. For example if “76”:10 and there is 15 players online and 6 players are in safe zones, the horde will not hunt the players because there is not enough players outside the safe zones.
  • Note that the horde never hunt the players in the safe zone (it would be useless because the horde can't reach them).

Also_Count_Players_In_Safe_Zone_To_Trigger_Hunting_Mod :
  • [true or false]
  • This is only useful if you use the “Hunting” deplacement configuration ("2" : 6, in the json file) and you have set a minimum number of players online to activate the hunt (value "76" in the json) to avoid players been always hunted when few players are online.
    When this value is set to false, the players that are in the safe zones are not counted by the “76” feature. For example if “76”:10 and there is 15 players online and 6 players are in safe zones, the horde will not hunt the players because there is not enough players outside the safe zones.

Hunting_Mod_Can_Focus_On_Players_In_Safe_Zone :
  • [true or false]
  • This is only useful if you use the “Hunting” deplacement configuration ("2" : 6, in the json file)
  • When hunting mod conditions are met (enough players regarding “76” value and previous option) this value allow or not the horde to focus on players in the safe zones.
  • If enable, when the horde will focus on a player in a safe zone, the horde will approach the zone (1 km) and move randomly as normal hunt. If the horde enter in the safe zone (randomly or because master hear a player), the horde will be teleported outside.
  • It is useful if you want the horde to roam near the safe zone to “wait” the players when they exit it.

Options For Each Safe Zone :

type name :
  • You can set the name you want for the safe zone

Activated :
  • [0 or 1]
  • Active or deactive this safe zone

Coordinates :
  • [12501/15421] integers
  • Corner_UpperLeft set the coordinates of the upper left corner of the zone
  • Corner_LowerRight set the coordinates of the lower right corner of the zone
  • Use Izurvive to find the coordinates you want to set.