• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Modifying player spawn points (0.53 spawns)

Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
Hi guys,

This tutorial will help you change your player spawn points when they connect to the server and will remove the old 0.45 spawns.

Step 1)

Open init.sqf and find this line of code

Code:
DZ_spawnpointsfile = "spawnpoints_players.bin";

Add this after it (current 0.53 spawn points)

Code:
DZ_positions = [
[ 11788.1 , 15096.7 , 0.00196075]  ,
[ 11671.7 , 15191.7 , 0.00157166]  ,
[ 11535 , 15157.8 , 0.00193787]  ,
[ 11901.8 , 13982.4 , 0.00131226]  ,
[ 11769.3 , 13944.6 , 0.00158691]  ,
[ 12454.3 , 13967.6 , 0.00115967]  ,
[ 14837.5 , 13280.4 , 0.00121665]  ,
[ 13640 , 13276.6 , 0.00173759]  ,
[ 13696.9 , 13456.7 , 0.00154495]  ,
[ 12858.1 , 10778.4 , 0.00114441]  ,
[ 12549.5 , 10785.7 , 0.00179291]  ,
[ 12432 , 11074.2 , 0.00178528]  ,
[ 12763.2 , 10418.7 , 0.00160599]  ,
[ 13225.5 , 10409 , 0.00114822]  ,
[ 12879.2 , 9221.08 , 0.00135088]  ,
[ 12944.4 , 8539.66 , 0.00123644]  ,
[ 13070.4 , 8139.25 , 0.00147104]  ,
[ 12964.7 , 7900.82 , 0.0018158]  ,
[ 13289.5 , 7201.04 , 0.0014286]  ,
[ 13255.5 , 6929.76 , 0.00157166]  ,
[ 13488.4 , 6407.87 , 0.00106621]  ,
[ 13244.3 , 6481.51 , 0.00134087]  ,
[ 13532.2 , 6183.14 , 0.0013845]  ,
[ 13432.2 , 5360.08 , 0.00137639]  ,
[ 12261.7 , 3447.58 , 0.00132036]  ,
[ 11935.4 , 3386.71 , 0.00132573]  ,
[ 11764.4 , 3367.28 , 0.00147438]  ,
[ 11063.1 , 2778.33 , 0.00137806]  ,
[ 10852.2 , 2379.6 , 0.000910044]  ,
[ 10742.8 , 2140.39 , 0.001387]  ,
[ 10457.6 , 1920.23 , 0.00166655]  ,
[ 9348.89 , 1902.39 , 0.00126934]  ,
[ 8564.98 , 2433.12 , 0.00142574]  ,
[ 8396.94 , 2623.65 , 0.00180507]  ,
[ 8001.04 , 3072.22 , 0.00144196]  ,
[ 7833.85 , 3234.81 , 0.00148296]  ,
[ 7582.88 , 3069.26 , 0.00169873]  ,
[ 7316.51 , 2685.99 , 0.00121832]  ,
[ 7265.08 , 2206.89 , 0.00136089]  ,
[ 6485.76 , 2216.71 , 0.00122213]  ,
[ 6711.99 , 2300.48 , 0.00143862]  ,
[ 6874.39 , 2328.78 , 0.00143862]  ,
[ 7014.36 , 2445.19 , 0.00143862]  ,
[ 7138.03 , 2642.62 , 0.00144815]  ,
[ 7633.02 , 3208.7 , 0.00155067]  ,
[ 7672.13 , 3189.19 , 0.00140429]  ,
[ 8012.11 , 3224.41 , 0.00153065]  ,
[ 8398.66 , 2985.91 , 0.00144243]  ,
[ 8315.54 , 2431.81 , 0.00141525]  ,
[ 8790.86 , 2401.31 , 0.00143528]  ,
[ 9448.84 , 1939.47 , 0.00123405]  ,
[ 9932.68 , 1631.04 , 0.00130033]  ,
[ 10396.3 , 1704.26 , 0.00143528]  ,
[ 10775.2 , 2242.1 , 0.00143623]  ,
[ 11749.3 , 3472.47 , 0.00217104]  ,
[ 11951.2 , 3530.81 , 0.00143862]  ,
[ 12018.3 , 3403.21 , 0.000889421]  ,
[ 12584.1 , 3535.61 , 0.00106812]  ,
[ 13008.8 , 3673.21 , 0.00124335]  ,
[ 13227 , 4008.35 , 0.00149822]  ,
[ 13508.5 , 4424.84 , 0.00145817]  ,
[ 13536.6 , 4714.61 , 0.00152731]  ,
[ 13315.6 , 4939.19 , 0.00204754]  ,
[ 13460.5 , 5233.57 , 0.00154066]  ,
[ 13342 , 5416.41 , 0.00143862]  ,
[ 13424.9 , 5751.18 , 0.00139523]  ,
[ 13604.1 , 6036.51 , 0.00163603]  ,
[ 13449.7 , 6643.37 , 0.00135887]  ,
[ 13342.1 , 6980.27 , 0.00141311]  ,
[ 13118.8 , 7801.86 , 0.00159514]  ,
[ 13131 , 8383.96 , 0.00122643]  ,
[ 12723.8 , 8751.47 , 0.00159836]  ,
[ 13235.3 , 10388.1 , 0.00140333]  ,
[ 13489.5 , 10982.5 , 0.00147533]  ,
[ 13873.5 , 11301.5 , 0.00193787]  ,
[ 13848.8 , 11733.1 , 0.00146484]  ,
[ 14172 , 12230.7 , 0.00145102]  ,
[ 14201.1 , 12696.6 , 0.00139499]  ,
[ 14331.6 , 12984.5 , 0.00144958]  ,
[ 13102.7 , 7913.37 , 0.00137544]  ,
[ 11963.9 , 13671.1 , 0.00162506]  ,
[ 12174.9 , 13528.5 , 0.00173187]  ,
[ 12368.5 , 13982.6 , 0.00121307]  ,
[ 12664.7 , 14198.2 , 0.00144386]  ,
[ 11232.5 , 14176.4 , 0.0014267]  ,
[ 11361.1 , 14782.4 , 0.0020752]
  ];

Step 2)

Find this line

Code:
    _pos = findCachedSpawnPoint [ DZ_spawnpointsfile, DZ_spawnpass3params ];

Change it to

Code:
    _spawnPos = DZ_positions select (floor (random (count DZ_positions)));
    _pos = [_spawnPos select 0, _spawnPos select 1, _spawnPos select 2];

Congrats, you now will spawn in Chernogorsk, Elektro, etc! :thumbup:

Please reply back for saying if I helped, etc! :D:
 
Last edited:
Developer
Developer
Joined
Dec 11, 2010
Messages
2,955
Reaction score
2,688
I noticed an error in my code, it should be

Code:
    _pos = [_spawnPos select 0, _spawnPos select 1, _spawnPos select 2];

instead of

Code:
    _pos = [_spawnPos select 0, spawnPos select 1, spawnPos select 2];

Updated main post


Nice tutorial mate!

Thanks!
 
Last edited:
Newbie Spellweaver
Joined
Nov 11, 2014
Messages
14
Reaction score
2
hi man...thank you for your release!

It's possibile to specify a respawn point for only 1 UID?
 
Newbie Spellweaver
Joined
Feb 1, 2016
Messages
23
Reaction score
0
+ It's possibile to specify a respawn point for only 1 UID?
 
Back
Top