Jump to content

[Release] Spawn Selection Dialog Menu - v1.0


sparrow8332

Recommended Posts

The only difference i see is the [] execVM "Spaz_Spawn.sqf";

 

if (isNil "inSpawnPoint") then
{
    inSpawnPoint = false;
};
uiSleep 5;
waitUntil { inSpawnPoint };
createDialog "spaz_spawn";
[] execVM "Spaz_Spawn.sqf";
noesckey = (findDisplay 8332) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 1) then { true }"];
Link to comment
Share on other sites

Ok this is my instructions for getting this working. Took me a while with a few prompts (Thanks Richie) and its running now

 

1) Download the zip from Sparrow's GIThub

 

2) Edit the map in the images folder in an art program with your spawn locations (the map that corresponds to your server) and save it over the original file (don't change the name)

 

3) Download your PBO from the server (or open the one you have on your PC) I like to grab the open from the server so I know it’s up to date)

 

4) Extract the PBO into the map file Epoch.Altis for example

 

5) Copy from the GIThub download

        - Spaz_Spawn.sqf

        - Spaz_spawn.hpp

        - onPlayerRespawn.sqf (or merge it with yours if you have one)

                + Read point 7) in a minute

        - Images folder (you should have edited your map and saved it over the original that sits in that folder)

 

6) Open Spaz_Spawn.sqf and put in your spawn locations. (Example)

            Bornholm_Spawn_North                             = [3516.31,17886.3,0.00151825];

            Bornholm_Spawn_South                             = [15296.9,163.178,0.00105];

            Bornholm_Spawn_East                               = [13281.8,12691.9,0.00137055];

            Bornholm_Spawn_West                              = [792.478,7133.28,0.00152135];

            Bornholm_Spawn_Central                           = [9367.02,8402.27,0.00139618];

   

 

7) Open onPlayerRespawn.sqf and make sure it looks like this

if (isNil "inSpawnPoint") then

{

                inSpawnPoint = false;

};

uiSleep 5;

waitUntil { inSpawnPoint };

createDialog "spaz_spawn";

[] execVM "Spaz_Spawn.sqf";

noesckey = (findDisplay 8332) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 1) then { true }"];

 

 

8) Go into your mission sqm and look for the number in green for respawn_west below and note it down

  

  class Markers

    {

        items = 10;

        class Item0

        {

            position[] = {14939.934,0.053499073,15083.272};

            name = "center";

            type = "Empty";

        };

        class Item1

        {

            position[] = {23600.639,3.19,18000.72};

            name = "respawn_east";

            type = "Empty";

        };

        class Item2

        {

            position[] = {23600.611,3.19,18000.768};

            name = "respawn_west";

            type = "Empty";

        };

 

9) put the red text below above Markers in your mission.sqm (i put it after and it did not work) and make sure the number you noted in green in point 8 and make sure it matches the blue text below

 

        class Item99

        {

            side = "CIV";

            class Vehicles

            {

                items = 1;

                class Item0

                {

                    position[] = {23605.094,3.19,17998.143};

                    azimut = 130.016;

                    special = "NONE";

                    id = 99;

                    side = "CIV";

                    vehicle = "VirtualMan_EPOCH";

                    player = "PLAY CDG";

                    leader = 1;

                    skill = 0.6;

                };

            };

        };

    };

        class Sensors

{

        items=1;

        class Item0

        {

            position[] = {23600.611,3.19,18000.768}; //respawn_west Location

            a = 10;

            b = 10;

            activationBy = "ANY";

            repeating = 1;

            interruptable = 1;

            age = "UNKNOWN";

            name = "SPAWNPOINT";

            expCond = "(player distance SPAWNPOINT) < 10;";

            expActiv = "hint ""You are in the clone room""; inSpawnPoint = true;";

            expDesactiv = "inSpawnPoint = false;";

            class Effects{};

        };

}

    class Markers

    {

        items = 3;

        class Item0

        {

            position[] = {14939.934,0.053499073,15083.272};

            name = "center";

            type = "Empty";

10) Go into your Description.ext in your mission file and put the text in purple below right at the top of that file

 

#include "spaz_spawn.hpp"

#include "infiSTAR_AdminMenu.hpp"

author = "ASM Gamers";

class Header

 

 

......shut down your server......

11) put your epoch.Altis or epoch.Whatever folder back into a PBO and upload it to the server

 

12) Add your battleye exceptions as per Post #32 by cen

 

.......power the server on and test......

 

Azz

I have tried this way my stuff looks the exact same to the T and when i press the buttons to teleport to the citys it does not teleport.

Link to comment
Share on other sites

 

The only difference i see is the [] execVM "Spaz_Spawn.sqf";

if (isNil "inSpawnPoint") then
{
    inSpawnPoint = false;
};
uiSleep 5;
waitUntil { inSpawnPoint };
createDialog "spaz_spawn";
[] execVM "Spaz_Spawn.sqf";
noesckey = (findDisplay 8332) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 1) then { true }"];

 

thats just because i run the teleporting and loadout server-side so its auto loaded on server start and i just call it 

Link to comment
Share on other sites

yes richie more stable way of getting and using the menu 

 

i send you a pm with a way to fix this problem, just create a script that opens the menu when you press that action, that will work for any current (epoch supported) map, the scroll action will appear on the teleporter before you see the default one, so most likely players will choose that one over the default one (also it has colours).

Link to comment
Share on other sites

i send you a pm with a way to fix this problem, just create a script that opens the menu when you press that action, that will work for any current (epoch supported) map, the scroll action will appear on the teleporter before you see the default one, so most likely players will choose that one over the default one (also it has colours).

 

ok thanks will look at this and incorporate it into a gui  ( i hate scroll menus ) :-)

Link to comment
Share on other sites

ok thanks will look at this and incorporate it into a gui  ( i hate scroll menus ) :-)

 

lol, i know a scroll menu can sound modest, but depending on how it is made and who made it, it can be pretty elaborate ... ;)

 

btw i have now made a script that can find the default teleporters in any world and replace them with a custom object with an attached custom addaction, that way you can force players to not use the default spawn option at all, since you cant really get in or out of that box without teleporting and you can basicly use any object as teleporter.

Link to comment
Share on other sites

Here are 50 random coords for ALTIS, 2300 height for halo, if any use to anyone :)

 

[11872,7511,2300],
[10685,9368,2300],
[10599,12379,2300],
[8238,11757,2300],
[5538,11680,2300],
[3284,10195,2300],
[3800,12980,2300],
[5715,13164,2300],
[4132,14542,2300],
[5771,14973,2300],
[4810,16563,2300],
[6598,16380,2300],
[4025,18387,2300],
[3807,21204,2300],
[6028,21887,2300],
[6072,19825,2300],
[7422,18213,2300],
[8642,20769,2300],
[8628,23673,2300],
[10655,21518,2300],
[9890,19313,2300],
[9741,17029,2300],
[7685,14756,2300],
[10301,14653,2300],
[12197,16812,2300],
[12517,14379,2300],
[14721,16275,2300],
[12802,18731,2300],
[15578,18228,2300],
[13796,22489,2300],
[12997,20753,2300],
[15441,20181,2300],
[13201,12662,2300],
[15508,14914,2300],
[17705,16317,2300],
[20289,17739,2300],
[19994,14379,2300],
[17631,13050,2300],
[19181,11998,2300],
[16653,10540,2300],
[19828,9949,2300],
[19697,7939,2300],
[22180,16500,2300],
[23471,18800,2300],
[21546,19832,2300],
[24198,23634,2300],
[7460,24924,2300],
[26099,22132,2300],
[23893,21193,2300],
[21335,6457,2300]

 
 
edit: sorry for got to say the map ;)
Link to comment
Share on other sites

 

Here are 50 random coords, 2300 height for halo, if any use to anyone :)

 

[11872,7511,2300],
[10685,9368,2300],
[10599,12379,2300],
[8238,11757,2300],
[5538,11680,2300],
[3284,10195,2300],
[3800,12980,2300],
[5715,13164,2300],
[4132,14542,2300],
[5771,14973,2300],
[4810,16563,2300],
[6598,16380,2300],
[4025,18387,2300],
[3807,21204,2300],
[6028,21887,2300],
[6072,19825,2300],
[7422,18213,2300],
[8642,20769,2300],
[8628,23673,2300],
[10655,21518,2300],
[9890,19313,2300],
[9741,17029,2300],
[7685,14756,2300],
[10301,14653,2300],
[12197,16812,2300],
[12517,14379,2300],
[14721,16275,2300],
[12802,18731,2300],
[15578,18228,2300],
[13796,22489,2300],
[12997,20753,2300],
[15441,20181,2300],
[13201,12662,2300],
[15508,14914,2300],
[17705,16317,2300],
[20289,17739,2300],
[19994,14379,2300],
[17631,13050,2300],
[19181,11998,2300],
[16653,10540,2300],
[19828,9949,2300],
[19697,7939,2300],
[22180,16500,2300],
[23471,18800,2300],
[21546,19832,2300],
[24198,23634,2300],
[7460,24924,2300],
[26099,22132,2300],
[23893,21193,2300],
[21335,6457,2300]

 

and the map is ??

Link to comment
Share on other sites

So on my BE filters question above (I went through threads under the influence of alcohol and may have missed it) but....

 

to line #53 added !"(findDisplay 8332) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 1) then { true }"];

to line #59 added !"(findDisplay 8332) displayRemoveEventHandler ["KeyDown", noesckey];"

and no wit is working as well as I had hoped it would!

Thanks @sparrow

Link to comment
Share on other sites

this is my sensor :  Bornholm

		class Item0
		{
			position[] = {8886.766,102.1,9097.741};
			a = 10;
			b = 10;
			activationBy = "ANY";
			repeating = 1;
			interruptable = 1;
			age = "UNKNOWN";
			name = "SPAWNPOINT";
			expCond = "(player distance SPAWNPOINT) < 10;";
			expActiv = "hint ""Receiving clone...""; inSpawnPoint = true; [] spawn {call SPAZ_SPAWN_lOADOUT;";
			expDesactiv = "inSpawnPoint = false;";
			class Effects{};
		};

and my onplayerrespawn.sqf

if (isNil "inSpawnPoint") then 
{
	inSpawnPoint = false;
};
uiSleep 1;
waitUntil { inSpawnPoint };
createDialog "spaz_spawn";
noesckey = (findDisplay 8332) displayAddEventHandler ["KeyDown", "if ((_this select 1) == 1) then { true }"];

compare  with yours and hopefully you will spot any difference 

Sparrow... I'm running Bornholm as well and when I  saw this post I was a bit confused.... My co-ords for the spawn marker "west" is {13812.661,80.87694,6877.9683} not the {8886.766,102.1,9097.741}  that you are listing above. Can you shed some light on this? Have you moved your spawn box? Am I pulling the wrong number? I've put an "info stand" in my spawn box and that is at 13812.7,0.0173874,6876.78 which is in the right neighborhood......

Link to comment
Share on other sites

Sparrow... I'm running Bornholm as well and when I  saw this post I was a bit confused.... My co-ords for the spawn marker "west" is {13812.661,80.87694,6877.9683} not the {8886.766,102.1,9097.741}  that you are listing above. Can you shed some light on this? Have you moved your spawn box? Am I pulling the wrong number? I've put an "info stand" in my spawn box and that is at 13812.7,0.0173874,6876.78 which is in the right neighborhood......

 

Yes i moved the spawn box mate so just use your cords 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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