Jump to content
Sign in to follow this  
juandayz

[extended_climatology]

Recommended Posts

The effect looks very cool, thanks for releasing. Just a quick question from my side.

Why are you transfering the whole publicEH.sqf to the client? Just make your new EventHandler in a custom file. This way, you decrease your mission file size.
So instead of replacing this line:

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";

Just put the custom one below it so it looks like this:

call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
call compile preprocessFileLineNumbers "dayz_code\init\publicEH.sqf";				//or another custom path, whatever

And then just put this single publicEH in there like this (publicEH.sqf):

if (!isDedicated) then {
	"sandstorm"                  addPublicVariableEventHandler {(_this select 1) execVM "sandstorm\player_sandstorm.sqf"};
};

That's the whole file you need.

Edit: And another small question. Do you have a clue whether the dayz_inside variable works for custom buildings that were included by the editor?

Share this post


Link to post
Share on other sites

hey @DAmNRelentless ..

Quote

Why are you transfering the whole publicEH.sqf to the client?

the most clean way is that you said. use jsut the line that you gonna use.. in my case i use a full copy of publicEh.. cuz i play a lot with this file..its just an habit... sorry for passing my bad habits :laugh:

Quote

Do you have a clue whether the dayz_inside variable works for custom buildings that were included by the editor?

i think yes cuz im using that Bunker showed in the video.

Share this post


Link to post
Share on other sites
Just now, Hooty said:

2 questions.  Could I use the no leave with the most wanted script and can i add more then one call to the pause.

Example   onPauseScript = "sandstorm\noleave.sqf","BLAH\BLAH.sqf";           

yes or include this block at bottom of your blah.sqf

if (sandstormvar) exitWith {
                _esc closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a sandstorm");
                }; 
                   //your variable about ESC key cannot be called _esc  take a look on it.

 

for example this is my whole noleave.sqf ( i use just one file to put all restrictions)

Spoiler
	[] spawn {
		private["_playerpos","_DMzone","_DMrange","_inDM","_inVehicle","_vehicle","_colorTXT","_btnTitle0TXT","_btnTitle1TXT","_btnTitle2TXT","_startTime","_display","_btnSave","_btnRestart","_btnRespawn","_btnTitle0","_btnTitle1","_btnTitle2"];
			_colorTXT =  [0.8,0.2,0,1];
			_btnTitle0TXT = "NUCLEAR WARS";
			_btnTitle1TXT = "SURVIVAL MOD";
			_btnTitle2TXT = "";
			disableSerialization;
			_startTime = time;
			while{1 == 1}do
			{
				waitUntil {uiSleep 0.1;!isNull findDisplay 49};
				_display = findDisplay 49;
				if(!isNull _display)then
				{
					_btnSave = _display displayCtrl 103;
					_btnSave ctrlShow true;
					_btnSave ctrlEnable false;
					_btnSave ctrlSetScale 0.8;
					_btnSave ctrlSetText 'PlayerUID (SteamID):';
					_btnSave ctrlCommit 0;
					
					_btnRestart = _display displayCtrl 119;
					_btnRestart ctrlShow true;
					_btnRestart ctrlEnable false;
					_btnRestart ctrlSetScale 0.9;
					_btnRestart ctrlSetText (format['%1',getPlayerUID player]);
					_btnRestart ctrlCommit 0;
					
					_btnRespawn = _display displayCtrl 1010;
					_btnRespawn ctrlShow true;
					_btnRespawn ctrlSetScale 0.9;
					if((canStand player) || (deathHandled))then
					{
						_btnRespawn ctrlEnable false;
						_btnRespawn ctrlSetText 'byJuandayz';
					}
					else
					{
						_waitTime = 180;
						_btnRespawn ctrlEnable false;
						_btnRespawn ctrlSetText format['wait %1s',round((_startTime + _waitTime) - time)];
						if(time > _startTime + _waitTime)then
						{
							_btnRespawn ctrlEnable true;
							_btnRespawn ctrlSetText 'Respawn';
							_startTime = time;
						};
					};
					_btnRespawn buttonSetAction '[player,''btnRespawn''] spawn player_death;player setHit[''Body'',1];
					';
					_btnRespawn ctrlCommit 0;
					
					_btnTitle0 = _display displayCtrl 523;
					_btnTitle0 ctrlSetText _btnTitle0TXT;
					_btnTitle0 ctrlSetTextColor _colorTXT;
					_btnTitle0 ctrlSetScale 0.9;
					_btnTitle0 ctrlCommit 0;
					
					_btnTitle1 = _display displayCtrl 121;
					_btnTitle1 ctrlSetText _btnTitle1TXT;
					_btnTitle1 ctrlSetTextColor _colorTXT;
					_btnTitle1 ctrlSetScale 0.9;
					_btnTitle1 ctrlCommit 0;
					
					_btnTitle2 = _display displayCtrl 120;
					_btnTitle2 ctrlSetText _btnTitle2TXT;
					_btnTitle2 ctrlSetTextColor _colorTXT;
					_btnTitle2 ctrlSetScale 0.9;
					_btnTitle2 ctrlCommit 0;
					
					_vehicle = vehicle player;
                    _inVehicle = (_vehicle != player);
                    if (_inVehicle) exitWith {
                    systemchat "<ANTIHACK>: You cannot log out in vehicles!";
                    _display closedisplay 0;
                    };
					_playerpos = getpos player;
					_DMzone = [3412.77,3929.4153,0];    
                    _DMrange = 150;
                    _inDM = false;
                    
                  
				  
				  if (acidrainvar) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a acidrain");
                };
                  
				  
				  
                 if (sandstormvar) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a sandstorm");
                };
				
				 if (rfogvar) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a radioactivefog");
                };
                  
				if (inBunker) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort into a bunker");
                };  
			
				};
			};
		};

 

 

Share this post


Link to post
Share on other sites
On 9/19/2017 at 6:40 PM, juandayz said:

yes or include this block at bottom of your blah.sqf

if (sandstormvar) exitWith {
                _esc closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a sandstorm");
                }; 
                   //your variable about ESC key cannot be called _esc  take a look on it.

 

for example this is my whole noleave.sqf ( i use just one file to put all restrictions)

  Hide contents

	[] spawn {
		private["_playerpos","_DMzone","_DMrange","_inDM","_inVehicle","_vehicle","_colorTXT","_btnTitle0TXT","_btnTitle1TXT","_btnTitle2TXT","_startTime","_display","_btnSave","_btnRestart","_btnRespawn","_btnTitle0","_btnTitle1","_btnTitle2"];
			_colorTXT =  [0.8,0.2,0,1];
			_btnTitle0TXT = "NUCLEAR WARS";
			_btnTitle1TXT = "SURVIVAL MOD";
			_btnTitle2TXT = "";
			disableSerialization;
			_startTime = time;
			while{1 == 1}do
			{
				waitUntil {uiSleep 0.1;!isNull findDisplay 49};
				_display = findDisplay 49;
				if(!isNull _display)then
				{
					_btnSave = _display displayCtrl 103;
					_btnSave ctrlShow true;
					_btnSave ctrlEnable false;
					_btnSave ctrlSetScale 0.8;
					_btnSave ctrlSetText 'PlayerUID (SteamID):';
					_btnSave ctrlCommit 0;
					
					_btnRestart = _display displayCtrl 119;
					_btnRestart ctrlShow true;
					_btnRestart ctrlEnable false;
					_btnRestart ctrlSetScale 0.9;
					_btnRestart ctrlSetText (format['%1',getPlayerUID player]);
					_btnRestart ctrlCommit 0;
					
					_btnRespawn = _display displayCtrl 1010;
					_btnRespawn ctrlShow true;
					_btnRespawn ctrlSetScale 0.9;
					if((canStand player) || (deathHandled))then
					{
						_btnRespawn ctrlEnable false;
						_btnRespawn ctrlSetText 'byJuandayz';
					}
					else
					{
						_waitTime = 180;
						_btnRespawn ctrlEnable false;
						_btnRespawn ctrlSetText format['wait %1s',round((_startTime + _waitTime) - time)];
						if(time > _startTime + _waitTime)then
						{
							_btnRespawn ctrlEnable true;
							_btnRespawn ctrlSetText 'Respawn';
							_startTime = time;
						};
					};
					_btnRespawn buttonSetAction '[player,''btnRespawn''] spawn player_death;player setHit[''Body'',1];
					';
					_btnRespawn ctrlCommit 0;
					
					_btnTitle0 = _display displayCtrl 523;
					_btnTitle0 ctrlSetText _btnTitle0TXT;
					_btnTitle0 ctrlSetTextColor _colorTXT;
					_btnTitle0 ctrlSetScale 0.9;
					_btnTitle0 ctrlCommit 0;
					
					_btnTitle1 = _display displayCtrl 121;
					_btnTitle1 ctrlSetText _btnTitle1TXT;
					_btnTitle1 ctrlSetTextColor _colorTXT;
					_btnTitle1 ctrlSetScale 0.9;
					_btnTitle1 ctrlCommit 0;
					
					_btnTitle2 = _display displayCtrl 120;
					_btnTitle2 ctrlSetText _btnTitle2TXT;
					_btnTitle2 ctrlSetTextColor _colorTXT;
					_btnTitle2 ctrlSetScale 0.9;
					_btnTitle2 ctrlCommit 0;
					
					_vehicle = vehicle player;
                    _inVehicle = (_vehicle != player);
                    if (_inVehicle) exitWith {
                    systemchat "<ANTIHACK>: You cannot log out in vehicles!";
                    _display closedisplay 0;
                    };
					_playerpos = getpos player;
					_DMzone = [3412.77,3929.4153,0];    
                    _DMrange = 150;
                    _inDM = false;
                    
                  
				  
				  if (acidrainvar) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a acidrain");
                };
                  
				  
				  
                 if (sandstormvar) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a sandstorm");
                };
				
				 if (rfogvar) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort in a radioactivefog");
                };
                  
				if (inBunker) exitWith {
                _display closedisplay 0;
                 systemchat ("<ANTIHACK>:Cannot Abort into a bunker");
                };  
			
				};
			};
		};

 

 

Thanks Buddy !!! 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By sjd6795
      Having issues with the epoch events, I don't seem to be getting my correct schedule timing the way I have it setup I should be getting an event spawn at 5 minutes and then another event spawn every 30, 5, and 20 minutes right?
       
      EpochEvents = [["any","any","any","any",5,"event1"],["any","any","any","any",35,"event1"],["any","any","any","any",5,"event2"],["any","any","any","any",10,"event2"],["any","any","any","any",5,"event3"],["any","any","any","any",25,"event3"]];
       
      So with event number 2 it seems to spawn the first one around 5 minutes and then the other one around 10 minutes but it doesn't continue to spawn after the first two initial ones.
       
       
    • By Tanita-Corp
      Hello guys)
      Tell me please how to make 
      spawned veh. unused 4 day deleted
      with key veh. unused 14 day deleted
       
      I broke my head
    • By zulu
      Hello,
      i would like to show mission/event announcements instead of my debugmonitor ( for a period of time).
      So when a mission or event starts, the debug should go away, and the announcement should be shown for a few seconds. Currently the event announcement is flashing up for a second.
      I tried to add  "sleep 5;" to the remote-script, but it didnt work.
      Can anyone please help me?
      _hint = parseText format["<t align='center' color='#FFFF66' shadow='2' size='1.75'>Attention</t><br/><t align='center' color='#ffffff'>Mission description!</t>"]; customRemoteMessage = ['hint', _hint]; publicVariable "customRemoteMessage";
       
    • By lowrey
      To all Epoch hosters and server admins.

      I would like to invite you to another TS session on Sat 19th June. I will open my TeamSpeak server up to all to have a chat about server hosting and administration.
      Our last session was very productive and we got a fair amount covered. You can read some notes in my follow up post here:
       
      I’m happy to change the day/time if that’s what we want. Just post your ideas in your reply.
      There will be two sessions [although I will be on most of the day]
      8pm UTC - Universal Time (UTC)
      7pm EST - Eastern Time (ET)

      Agenda:
      Epoch/Arma 3 Performance
      Linux vs Windows
      Best Practice
      Build testing
      Q&A
      Words from the wise

      All are welcome but there are one or two rules!

      No trolls [except of course MGT]!
      This is not a session for bitching!
      Constructive feedback ONLY!
       
      OK 3 rules.

      We’ll be talking about any server related topic including help with setting up.

      Once again I’d like to see some of the top faces there again, last times turnout was really good, let see if we can better it.

      Sessions will last an hour [was a lot more in our previous session].
       
      I didn’t hear anything back from vbawol about running this on their official epoch TS server. For now, assume it’s the same as before:
      TeamSpeak 3 Server:
      ts.doggsofwar.com:12517

      Thanks,

      Mike.
    • By Nocturnal Entertainment™
      Thought Id share something one of our members made for our event days.
       
      Pics.


       
      To get this on your server follow these instructions.
      Extract your dayz_server.pbo and make a new folder inside it called buildings.
      Download and put this inside your new buildings folder LINK
      Now find server_functions.sqf inside your init folder and edit it.
      All the way at the bottom add the following:
      //Custom Map Additions [] execVM "\z\addons\dayz_server\buildings\NapfEventZone.sqf";                //Event Zone for Napf - By Harkness   Re-pack pbo. Re-upload Play. The Area is situated on one of the smaller islands just off the west coast.
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...