Jump to content

Graphical Spawn Select for Taviana


Darce

Recommended Posts

 

jrcx06.jpg

 

Heres my version of the spawn selector for Chernarus: https://dl.dropboxusercontent.com/u/14937351/spawnselect.zip

 

Install instructions:

 

-) Unpack the files in the archive to your mission folder.

 

1) In the end of !isDedicated block in your MPMissions init.sqf file ->

 

if (!isDedicated) then {

   ...jadajada... //just an example, don't change to this :D

   <--Place code-->

};

 

Place this code:

	waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; 
	if (dayzPlayerLogin2 select 2) then {
		[] execVM "custom\spawn_select\Spawn.sqf"; 
	}; //After this comes the !isDedicated condition ending bracket!

2) Open your description.ext and paste this to the end:

#include "custom\spawn_select\dialogs.hpp"

3) Unpbo your dayz_server.pbo and open file dayz_server\compile\server_playerSetup.sqf and change this (around line 236):

dayzPlayerLogin2 = [_worldspace,_state];

to this:

dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];

4) Repbo your dayz_server and enjoy :)

 

 

 

I did everything like you said to a T, However whenever i click where i want to go I die as soon as i spawn...any clue as to why?

Link to comment
Share on other sites

Maybe you put WaitUntil...etc..etc  code inside isDedicated ..  correct like this

 

if (!isDedicated) then {
//Conduct map operations
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
 
//Run the player monitor
_id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
_playerMonitor =     [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
    
    //refuel rearm repair
    execVM "service_point\service_point.sqf";
 
//Bus Route
[] execVM "busroute\player_axeBus.sqf";
 
};
 
//Start Dynamic Weather
execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
 
 
#include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { [] execVM "custom\spawn_select\Spawn.sqf"; };
 

 

 

 

try in my Chernarus server in signature , is little bit different but working for my players..

Link to comment
Share on other sites

I did everything like you said to a T, However whenever i click where i want to go I die as soon as i spawn...any clue as to why?

What does your server .rpt say when this happens?
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

At first, thank you guys! These scripts are a great improvement to the aditional maps.

We have used te fn_selfaction spawnselect on one of our vserver, till an antihack update destroys

our changes to it (wasent easy to change something a the ah.sqf, now it this backdoor closet by the hoster).

But the graphical Spawnselect doesent work for an nonadmin on a server witch antihack on, no matter if we set

the backspawn flag. the Menu doesent show up, like the other ones sayed.

You wil baiscly get an black screen, the map shows up for 1 second and disapears, the black screen stays.

Thought it was the debug monitor, it wasent.

 

We have something here[

disable antihack.sqf (Just before the includes section) or place a fixed version of antihack.sqf with line 89 checking for SPM=1 e.g if ((_speed > _topSpeed) && (alive player) && (SPM=1) etc etc

]

on the pantherea github readme; https://github.com/Gezzunder/Panthera-Spawn-Select

 

"checking for SPM=1" spm=spawnmenu? there is no SPM defined in the whole ah.sqf. Should i just ad these code to make shure the SPM,

wich is defined in the spanwselectscript has a "free to go" by antihack? An if so;

if ((_speed > _topSpeed) && (alive player) && (SPM=1)) else (SPM=1); would do the job?

Link to comment
Share on other sites

  • 4 weeks later...

At first, thank you guys! These scripts are a great improvement to the aditional maps.

We have used te fn_selfaction spawnselect on one of our vserver, till an antihack update destroys

our changes to it (wasent easy to change something a the ah.sqf, now it this backdoor closet by the hoster).

But the graphical Spawnselect doesent work for an nonadmin on a server witch antihack on, no matter if we set

the backspawn flag. the Menu doesent show up, like the other ones sayed.

You wil baiscly get an black screen, the map shows up for 1 second and disapears, the black screen stays.

Thought it was the debug monitor, it wasent.

 

We have exactly the same problem ! 

 

Does anyone have an idea about it ?

Link to comment
Share on other sites

  • 2 weeks later...

 

from array of adg  
 
class btnChe: RscButton
{
    idc = 1609;
    text = "Cherno";
    x = 0.447265 * safezoneW + safezoneX;
    y = 0.726875 * safezoneH + safezoneY;
    w = 0.0431419 * safezoneW;
    h = 0.0145 * safezoneH;
    action = "closeDialog 0;drnspawn = 9;";
};
class btnELE: RscButton
{
    idc = 1610;
    text = "Elektrozavodsk";
    x = 0.527265 * safezoneW + safezoneX;
    y = 0.726875 * safezoneH + safezoneY;
    w = 0.0551419 * safezoneW;
    h = 0.0145 * safezoneH;
    action = "closeDialog 0;drnspawn = 10;";
};
 
 
Petrovka  idc=1600
 
Krutov     idc=1612

 

I must be missing something here, but this makes little sense to me. I want to edit the buttons on the map but have no idea what the X & Y values mean. If anyone can point it out, thanks in advance

 

EDIT:

Realised now it's pretty much the distance across and down the screen, with 1.0 being all the way. Thanks anyway

Link to comment
Share on other sites

  • 3 weeks later...

hi,

so ive got the original script working now, i got the spawn selection but when i press a button it doesnt change my location? possible that infistar blocks something?

 

thanks for your help, waTTe

 

EDIT: i worked it out with the newer version, i even removed the base spawn button and classes stuff

Link to comment
Share on other sites

  • 1 month later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...