Spawn selection screen

fouc

Well-Known Member
Hi,

I would like to know where are located the files which are giving players the choice of the spawn location ?
I would like to modify one if possible...

Many thanks !
 
@Dayz\Addons\dayz_code\Configs\RscDisplay\RscDisplaySpawnSelecter.hpp

It's called from
@Dayz\Addons\dayz_code\system\player_monitor.fsm
Code:
 /*%FSM<STATE "Region_Selection">*/
    class Region_Selection
    {
      name = "Region_Selection";
      init = /*%FSM<STATEINIT""">*/"dayz_selectRegion = 9;" \n
      "1 cutText ["""", ""BLACK"",0];" \n
      "endLoadingScreen;" \n
      "createDialog ""RscDisplaySpawnSelecter"";"/*%FSM</STATEINIT""">*/;
      precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
      class Links
      {
        /*%FSM<LINK "Selected">*/
        class Selected
        {
          priority = 0.000000;
          to="Process_1";
          precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
          condition=/*%FSM<CONDITION""">*/"!dialog"/*%FSM</CONDITION""">*/;
          action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
        };
        /*%FSM</LINK>*/
      };
    };
    /*%FSM</STATE>*/
    /*%FSM<STATE "Process_1">*/
    class Process_1
    {
      name = "Process_1";
      init = /*%FSM<STATEINIT""">*/"_spawnSelection = dayz_selectRegion;"/*%FSM</STATEINIT""">*/;
      precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
      class Links
      {
        /*%FSM<LINK "Hive_Ok">*/
        class Hive_Ok
        {
          priority = 0.000000;
          to="Phase_One";
          precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
          condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
          action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
        };
        /*%FSM</LINK>*/
      };
    };

And if you change the number of spawnpoints you will also have to edit server pbo\compile\server_playerSetup.sqf
Code:
if (_spawnSelection == 9) then {
 
@Dayz\Addons\dayz_code\Configs\RscDisplay\RscDisplaySpawnSelecter.hpp

It's called from
@Dayz\Addons\dayz_code\system\player_monitor.fsm
Code:
 /*%FSM<STATE "Region_Selection">*/
    class Region_Selection
    {
      name = "Region_Selection";
      init = /*%FSM<STATEINIT""">*/"dayz_selectRegion = 9;" \n
      "1 cutText ["""", ""BLACK"",0];" \n
      "endLoadingScreen;" \n
      "createDialog ""RscDisplaySpawnSelecter"";"/*%FSM</STATEINIT""">*/;
      precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
      class Links
      {
        /*%FSM<LINK "Selected">*/
        class Selected
        {
          priority = 0.000000;
          to="Process_1";
          precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
          condition=/*%FSM<CONDITION""">*/"!dialog"/*%FSM</CONDITION""">*/;
          action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
        };
        /*%FSM</LINK>*/
      };
    };
    /*%FSM</STATE>*/
    /*%FSM<STATE "Process_1">*/
    class Process_1
    {
      name = "Process_1";
      init = /*%FSM<STATEINIT""">*/"_spawnSelection = dayz_selectRegion;"/*%FSM</STATEINIT""">*/;
      precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
      class Links
      {
        /*%FSM<LINK "Hive_Ok">*/
        class Hive_Ok
        {
          priority = 0.000000;
          to="Phase_One";
          precondition = /*%FSM<CONDPRECONDITION""">*/""/*%FSM</CONDPRECONDITION""">*/;
          condition=/*%FSM<CONDITION""">*/"true"/*%FSM</CONDITION""">*/;
          action=/*%FSM<ACTION""">*/""/*%FSM</ACTION""">*/;
        };
        /*%FSM</LINK>*/
      };
    };

And if you change the number of spawnpoints you will also have to edit server pbo\compile\server_playerSetup.sqf
Code:
if (_spawnSelection == 9) then {


any way to port this to another MOD of DayZ for example DayZ Epoch ?
 
Back
Top