Jump to content
  • 0

Protected Dome


evilhomer2

Question

hi guys im trying to get the protected dome working on our admin base with no luck im using the tut in http://dayz.st/w/Protected_Dome. the problem im having is that i put the pbo back on the server run the server and get stuck with waiting for host.

 

it is running the latest epoch version on a hfb server using bungle custom pack

 

below is the code out of mission.sqm lines 1170-1190 the co-ords im setting them for are [136,[13198.2,10713.2,0.001]].

 

 

class Sensors

{
items=1;
class Item0
{
position[]={13198.2,100,10713.2};
a=130;
b=97;
rectangular=1
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};

as for dome.sqf

 

this is the file with the uid edited.

 

 

// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome

if ((getPlayerUID player) in ["123456789" , "987654321"]) exitWith { 
titleText ["Welcome to admin base", "PLAIN DOWN", 3];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Are you blind? GET OUT", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, huh?", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 5;
titleText ["Good night.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

as you can see i need it for myself and another admin. so where have i gone wrong?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

also if i remember correctly you should have other sensor classes and so you need to add it into them. post your whole mission.sqm file and ill let you know for sure as i cant find mine at the moment from when i used it

Link to comment
Share on other sites

  • 0

If you replace everything in your mission.sqm file from "class sensors" to just before "class intro" with this code it should work. Your location was slightly wrong as you had 100 instead of 0.001 so i corrected that for you as well.

 

Personally i prefer a circle dome so would change "a" and "b" to be the same value and then remove the "rectangular=1" line but that's just my preference.

	class Sensors
	{
		items=4;
		class Item0
		{
			position[]={6325.6772,304.99033,7807.7412};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonestary";
			expCond="(player distance zonestary) < 100;";
			expActiv="TitleText[""Now entering trader city Stary"",""PLAIN DOWN""]; canbuild = false;";
			expDesactiv="TitleText[""Now leaving trader city Stary"",""PLAIN DOWN""]; canbuild = true;";
			class Effects
			{
			};
		};
		class Item1
		{
			position[]={4063.4226,365.00577,11664.19};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebash";
			expCond="(player distance zonebash) < 100;";
			expActiv="TitleText[""Now entering trader city Bash"",""PLAIN DOWN""]; canbuild = false;";
			expDesactiv="TitleText[""Now leaving trader city Bash"",""PLAIN DOWN""]; canbuild = true;";
			class Effects
			{
			};
		};
		class Item2
		{
			position[]={11447.472,317.26886,11364.504};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zoneklen";
			expCond="(player distance zoneklen) < 100;";
			expActiv="TitleText[""Now entering trader city Klen"",""PLAIN DOWN""]; canbuild = false;";
			expDesactiv="TitleText[""Now leaving trader city Klen"",""PLAIN DOWN""]; canbuild = true;";
			class Effects
			{
			};
		};
		class Item3
		{
			position[]={13198.2,0.001,10713.2};
			a=130;
			b=97;
			rectangular=1;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="dome";
			expCond="(vehicle player) in thislist;";
			expActiv="dome = [] execVM ""dome.sqf"";";
			expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
			class Effects
			{
			};
		};
	};
};
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
  • Discord

×
×
  • Create New...