Jump to content
  • 0

Custom Spawn Locations


Strikes

Question

Curious if anyone can point me toward an older discussion regarding this; if there was one. Searched around for a bit and came up kinda empty.

 

I was able to do Custom Spawns in the plain-old DayZ Mod on private servers... pretty easily... but doesn't seem to match up exactly the same here in Epoch. It sort of looked close.. but I wasn't going to jack around with it, haha.

 

Could someone point me in the right direction; or has it maybe not been addressed/posted?

 

I'm hoping to have it down via some kind of 'respawn.sqf' or something where I can just set teams/groups and then add Player UID's to them. It would be even better if it was in the Mission files so I don't have to repack the server pbo over and over for each change. 

 

I think this was the reference post from back in the day: http://opendayz.net/threads/release-custom-spawn-locations-based-on-uid-no-db-triggers.14279/

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

These are good in regards to Epoch? It doesn't seem to be... only because my server_playerSetup.sqf isn't lining up with that walk through.

 

Just being certain before I have a closer look... seems like that one is more toward Vanilla DayZ?

Link to comment
Share on other sites

  • 0

They work. It's similar to the Player2 spawn system which I use. 
 

They don't have to be similar. Look at around line ~236 in the server_playerSetup.sqf and you'll find:

​dayzPlayerLogin2 = [_worldspace,_state];

change to:

dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];

and in server_playerLogin.sqf at around line 89:

if (!(_model in AllPlayers)) then {

change that to:

if (!(_model in ["SurvivorW2_DZ","Survivor2_DZ","Sniper1_DZ","Soldier1_DZ","Camo1_DZ","BanditW1_DZ","Bandit1_DZ","Survivor3_DZ","TK_INS_Soldier_EP1","CZ_Soldier_DES_EP1","US_Soldier_EP1","Rocket_DZ","BAF_Soldier_MTP","BAF_Soldier_L_MTP","BAF_Soldier_Officer_MTP","BAF_Soldier_Sniper_MTP","Worker1","Soldier_Crew_AllWeaponSlots_PMC","Villager1","Citizen3","TK_CIV_Takistani05_EP1","TK_CIV_Takistani01_EP1"])) then {

or use the lines in this post:

http://opendayz.net/threads/release-scroll-menu-pick-your-own-spawn-point-class-and-loadout.13143/#post-89459

I had problems using the Player2 spawn script for a while before I realized that the variable for epoch was 

PVDZE_plr_LoginRecord

and not

PVDZ_plr_LoginRecord

as in this example:

Works for epoch:

p2_newspawn = compile preprocessFileLineNumbers "newspawn\newspawn_execute.sqf";
waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
if (dayzPlayerLogin2 select 2) then
{
    player spawn p2_newspawn;
};

This is not a full guide, just an example on how you can do it.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...