Provides extra spawn options for DayZ Epoch and vanilla DayZ Mod:
- Choose air or ground spawn
- Spawns and loadouts can be restricted by humanity and UID
- Spawns within x meters of the player's body can be blocked
- Optional spawn near plot pole or group
- Optional spawn in back seat of a plane for HALO
- Loadouts can be preset or random
- Compatible with vanilla anti-teleport
- Config formats are backwards compatible with V2 configs
Improvements over V2:
- Minimization was removed, files were restructured for readability and code was optimized.
- UID lists are now kept server side and never sent to clients.
- Private classes, loadouts, spawns and bases are now kept server side. The player is only sent what they have access to.
- Added support for dayz_onBack
- Added localization and stringtable for others to submit translations
-
In mission\init.sqf find
execFSM "\z\addons\dayz_code\system\player_monitor.fsm";
Add directly above:call compile preprocessFileLineNumbers "spawn\init.sqf";
-
At the bottom of description.ext add:
#include "spawn\dialogs.hpp"
-
Put the \spawn\ folder and stringtable.xml in your mission root. For vanilla DayZMod put the \custom\ folder in your mission root too.
-
In
dayz_server\compile\server_playerSetup.sqf
findPVCDZ_plr_Login2 = [_worldspace,_state,_randomKey];
Change to:PVCDZ_plr_Login2 = [[0,respawn_west_original],_state,_randomKey,_worldspace,_randomSpot,([_randomSpot,_playerID] call spawn_config)];
-
If using body check, in
dayz_server\compile\server_playerDied.sqf
find_newObject setVariable ["bodyName",_playerName,true];
Add below:_newObject setVariable ["bodyUID",_playerID,true];
-
Copy
spawn_config.sqf
to thedayz_server\init\
folder. At the bottom ofdayz_server\init\server_functions.sqf
add:#include "spawn_config.sqf"
-
Edit the settings in both config files to your liking. See DOCUMENTATION.md for detailed information.
-
Add the needed exceptions to BattlEye\scripts.txt. See SCRIPTS EXAMPLE.txt.
This work is licensed under the DAYZ MOD LICENSE SHARE ALIKE (DML-SA). The full license is here:
https://www.bistudio.com/community/licenses/dayz-mod-license-share-alike