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…

1 year ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

1 year ago

FTP getting array of file details such as size using PHP

Using FTP and PHP to get an array of file details such as size and…

2 years ago

Creating Laravel form requests

Creating and using Laravel form requests to create cleaner code, separation and reusability for your…

2 years ago

Improving the default Laravel login and register views

Improving the default Laravel login and register views in such a simple manner but making…

2 years ago

Laravel validation for checking if value exists in the database

Laravel validation for checking if a field value exists in the database. The validation rule…

2 years ago