Jump to content

[Release] Spawn Selection Dialog Menu - v1.0


sparrow8332

Recommended Posts

SPAWN SELECTION MENU  v1.0

 

 


. AUTOMATIC WORLDNAME DETECTION + MAP IMAGE CHANGE

. AUTOMATIC CHANGES THE SPAWN BUTTONS ON THE MENU TO POINT TO YOUR MAP SPAWN LOCATIONS
. CUSTOMIZE SPAWN LOCATIONS IN CONFIG
. CUSTOMIZE MAP IMAGE + INSTALL LOCATION
. ESC KEY DISABLED WHILST MENU IS ACTIVE
 

 

 

F8c7dJ8.png

 

 

 

INSTALATION

Download and follow the instructions below. 

 

https://github.com/sparrow8332/A3-Epoch-Spawn-Menu

 

 

 

description.ext

#include "spaz_spawn.hpp"

onPlayerRespawn.sqf

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

Add a Sensor in your Mission.sqm

		class Item0
		{
			position[] = {8886.766,102.1,9097.741}; //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{};
		};

To change your spawn locations + map images go to Spaz_Spawn.sqf

Altis_Map = "images\map1.jpg";
Statis_Map = "images\map2.jpg";
Bronholm_Map = "images\map3.jpg";
Chernarus_Map = "images\map4.jpg";

Altis_Spawn_North = [0,0,0];
Altis_Spawn_South = [0,0,0];
Altis_Spawn_East = [0,0,0];
Altis_Spawn_West = [0,0,0];
Altis_Spawn_Centeral = [0,0,0];

Statis_Spawn_North = [0,0,0];
Statis_Spawn_South = [0,0,0];
Statis_Spawn_East = [0,0,0];
Statis_Spawn_West = [0,0,0];
Statis_Spawn_Centeral = [0,0,0];

Bronholm_Spawn_North = [3516.31,17886.3,0.00151825];
Bronholm_Spawn_South = [15296.9,163.178,0.00105];
Bronholm_Spawn_East = [13281.8,12691.9,0.00137055];
Bronholm_Spawn_West = [792.478,7133.28,0.00152135];
Bronholm_Spawn_Centeral = [9367.02,8402.27,0.00139618];

Chernarus_Spawn_North = [0,0,0];
Chernarus_Spawn_South = [0,0,0];
Chernarus_Spawn_East = [0,0,0];
Chernarus_Spawn_West = [0,0,0];
Chernarus_Spawn_Centeral = [0,0,0];

Set up for Altis / Stratis / Bornholm / Chernarus

 

 

BE Filters:

 

Scipts.txt line #40

​!"createdialog "spaz_spawn";

Scipts.txt line #53

!"(findDisplay 8332) displayAddEventHandler [\"KeyDown\",\"true\"];"

Scipts.txt line #21

!="[] execVM "Spaz_Spawn.sqf";"
Link to comment
Share on other sites

Need a couple decent grid refs for north and south chernarus spawn points. too lazy to put out editor right now. =p

 

 

 

Pretty cool system though. I was in the process of porting over a arma life spawn select system and adapting chernarus and bornholm to it, but I haven't had to the time to finish as of late.

Link to comment
Share on other sites

BTW:  Do the following full text replace in the spaz_spawn.sqf

 

Bronholm

to

Bornholm (some spawns were spelt correct and some incorrect so didn't work.)

 

Centeral

to

Central (only to correct spelling on this)

 

 

Doh lol thanks was late when i put this all together lol 

Link to comment
Share on other sites

if you don't understand this then maybe you shouldn't be modifying your mission file ..   what exactly do you want to know about the install ??

 

I can agree with that statement hehe.

 

Is there an easy way of getting the co-ordinates for Chernarus?

Link to comment
Share on other sites

I put in description.ext

#include "spaz_spawn.hpp"

I add a Sensor in my Mission.sqm

class Item0

{

position[] = {8886.766,102.1,9097.741}; //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{};

};

But... Where i have to put the file onPlayerRespawn.sqf and file onPlayerRespawn.sqf ??

Link to comment
Share on other sites

You put the onPlayerRespawn.sqf in the root of your mission.pbo

 

funnily.. I learnt exactly how onPlayerRespawn.sqf works for Arma3 as it shows the Bohemia wiki page as the first google link.  From that page too, you can also find out what many other default files you can use in your missions.  eg: onPlayerKilled.sqf, initPlayerServer.sqf, initServer.sqf, etc, etc..   This is all very valuable information if you want to be a server admin, coder, etc...

 

As for the position[] for your sensor, be sure to get the correct coords from your actual mission.sqm under the section MARKERS, and its the respawn_west one.   If the sensor is not on the correct clone room coords, the script wont fire when you spawn in the clone room.

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
×
×
  • Create New...