Categories: Gaming

Creating custom spawn locations for DayZ Standalone server

Creating new custom locations for DayZ player spawns is a simple task, so simple you don’t even need to go in-game to get positions.

The DayZ Standalone player spawn system is a lot more complex than just spawning in at a set position. Checks are done for min and max distances to players, zombies and buildings, plus there is also a grid system which will calculate a position from the stated position to spawn at.

You can of course refine this back to make the system spawn essentially right at your stated position.

Player spawn location file

The configuration XML file that handles the player spawns is

DayZServer\mpmissions\map.chernarusplus\cfgplayerspawnpoints.xml

The first half contains these spawn placement “checks” as stated above.

Make your way towards the bottom half of the file where the opening tag is:

<generator_posbubbles>

Inside this is each individual spawn position bubble that you get a chance of spawning at given the parameters stated above in the file.

spawn locations

<pos x="15017.80" z="13892.40" />

x is left/right and z up/down on a 2d plane.

You can delete the existing ones, or just add more custom ones onto the existing.

Getting spawn positions

Getting the position for a spawn position can be done several ways, the easiest and quickest would be going to iZurvive.

Zoom in and hover the location you want for a spawn point and press ctrl + c to copy it.

The position string will be in a format like this:

6884.00 / 11435.70

You can now work this into a <pos tag like:

<pos x="6884.00" z="11435.70" />

alternatively use code like PHP:

<?php
$copied_pos = '';

$arr = explode(' / ', $copied_pos);
echo "<pos x='$arr[0]' z='$arr[1]' />";

Saving

Work this newly created spawn point into cfgplayerspawnpoints.xml like so (i added two more examples):

<generator_posbubbles>
<pos x="6884.00" z="11435.70" />
<pos x="7146.20" z="18224.05" />
<pos x="1288.60" z="24133.15" />

</generator_posbubbles>

Now you have custom spawn locations that players have a chance of getting.

Share
Tags: DayZHow to

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago