Caveman2019 Posted February 25, 2019 Report Share Posted February 25, 2019 SECRET BUNKER THIS SCRIPT WAS UPDATED FEB 27th 2019 [fixed] fn_selfActions.sqf -teleport_out needed to be changed to teleport_in +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ASSUMING YOU HAVE A CUSTOM fn_self_Actions.sqf file ASSUMING YOU ALREADY HAVE WAI INSTALLED ASSUMING YOU ALREADY HAVE THE FALLEN SATELLITE MISSION INSTALLED BATTLEYE WILL NEED SOME EDITS. (NO BATTLEYE EXAMPLE AVAILABLE) +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ FROM THE OUTSIDE IT LOOKS LIKE AN ODDLY SHAPED MOUNTAIN. INSIDE THE MOUNTAIN IS THE SECRET BUNKER. YOU ACCESS THE BUNKER THOUGH A TELEPORT AT THE FALLEN SATELLITE MISSION. SCROLL ON THE LAPTOP AT THE MISSION TO GET THE TELEPORT OPTION. YOU CAN TELEPORT OUT OF THE SECRET BUNKER TO 1 OF 4 PLACES JUST SOUTH OF THE MOUNTAIN. IF YOU DONT WANT TO TELL PEOPLE ABOUT THIS SURPRISE YOU CAN LET THEM FIGURE IT OUT. I PLACED A UN CRASHED HELICOPTER AT THE BASE OF THE MOUNTAIN. IT HAS A LITTLE BLACK BOX RADIO. IF A PLAYER SCROLLS ON THE BLACKBOX THEY WILL GET A MESSAGE ABOUT HOW TO ACCESS THE SECRET BUNKER. INSTALLATION DO THIS FIRST 1. Install this [Release] 5 New Missions for (WAI 2.2.5) 2. Download and unzip this https://www.dropbox.com/s/ugmnedyi0ywxpds/SECRET BUNKER.zip?dl=0 (SERVER SIDE ) Step 1 Take secretbunker and bunkercrates folders and put them in the root of your server PBO. Step 2 Open server_functions.sqf Step 3 FIND THIS BLOCK OF CODE array_reduceSize = { private ["_array1","_array","_count","_num"]; _array1 = _this select 0; _array = _array1 - ["Hatchet_Swing","Crowbar_Swing","Machete_Swing","Bat_Swing","BatBarbed_Swing","BatNails_Swing","Fishing_Swing","Sledge_Swing","CSGAS"]; _count = _this select 1; _num = count _array; if (_num > _count) then { _array resize _count; }; _array Step 4 ADD THIS UNDER THAT CODE ABOVE call compile preprocessFileLineNumbers "\z\addons\dayz_server\secretbunker\secret_bunker_objects.sqf"; Step 5 FIND THIS #include "mission_check.sqf" Step 6 ADD THIS BELOW THE CODE ABOVE execVM "\z\addons\dayz_server\bunkercrates\bunker_crates.sqf"; ----------------------------------------------------------------------------------------------------- Step 7 Using the hero and bandit fallen_satellite.sqf missions from the Secret Bunker download, Replace both fallen_satellite missions that came with the 5 mission pack ([Release] 5 New Missions for (WAI 2.2.5)) (MISSION SIDE ) Step 1 Open init.sqf in your Mission file. Step 2 FIND THIS dayz_antihack = 1; // DayZ Antihack / 1 = enabled // 0 = disabled Step 3 REPLACE WITH dayz_antihack = 0; // DayZ Antihack / 1 = enabled // 0 = disabled Step 4 DELETE THIS execVM "\z\addons\dayz_code\system\antihack.sqf"; Step 5 Open fn_selfActions.sqf FIND THIS CODE _allowedDistance = if ((_cursorTarget isKindOf "Air") or (_cursorTarget isKindOf "Ship")) then {8} else {4}; Step 6 ADD THIS ABOVE IT Quote _teleport_in = cursorTarget isKindOf "SatPhone"; if ((speed player <= 1) && _teleport_in && (player distance cursorTarget < 5)) then { if (s_player_teleport_in < 0) then { s_player_teleport_in = player addAction [("<t color=""#f7ce00"">" + ("ENTER BUNKER") +"</t>"),"Scripts\teleport_in.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_teleport_in; s_player_teleport_in = -1; }; // TP IN END // TP 1 _teleport1 = cursorTarget isKindOf "SatPhone"; if ((speed player <= 1) && _teleport1 && (player distance cursorTarget < 5)) then { if (s_player_teleport1 < 0) then { s_player_teleport1 = player addAction [("<t color=""#f7ce00"">" + ("TP 1") +"</t>"),"Scripts\teleport_out_1.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_teleport1; s_player_teleport1 = -1; }; // TP 1 END // TP 2 _teleport2 = cursorTarget isKindOf "SatPhone"; if ((speed player <= 1) && _teleport2 && (player distance cursorTarget < 5)) then { if (s_player_teleport2 < 0) then { s_player_teleport2 = player addAction [("<t color=""#f7ce00"">" + ("TP 2") +"</t>"),"Scripts\teleport_out_2.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_teleport2; s_player_teleport2 = -1; }; // TP 2 END // TP 3 _teleport3 = cursorTarget isKindOf "SatPhone"; if ((speed player <= 1) && _teleport3 && (player distance cursorTarget < 5)) then { if (s_player_teleport3 < 0) then { s_player_teleport3 = player addAction [("<t color=""#f7ce00"">" + ("TP 3") +"</t>"),"Scripts\teleport_out_3.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_teleport3; s_player_teleport3 = -1; }; // TP 3 END // TP 4 _teleport4 = cursorTarget isKindOf "SatPhone"; if ((speed player <= 1) && _teleport4 && (player distance cursorTarget < 5)) then { if (s_player_teleport4 < 0) then { s_player_teleport4 = player addAction [("<t color=""#f7ce00"">" + ("TP 4") +"</t>"),"Scripts\teleport_out_4.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_teleport4; s_player_teleport4 = -1; }; // TP 4 END // CRASHSITE BLACKBOX _blackbox = cursorTarget isKindOf "MAP_radio_b"; if ((speed player <= 1) && _blackbox && (player distance cursorTarget < 5)) then { if (s_player_blackbox < 0) then { s_player_blackbox = player addAction [("<t color=""#f7ce00"">" + ("PLAY") +"</t>"),"Scripts\info.sqf",cursorTarget, 0, false, true, "",""]; }; } else { player removeAction s_player_blackbox; s_player_blackbox = -1; }; // CRASHSITE BLACKBOX END Step 7 Open your Scripts folder in the root of your mission file. (If you don't have a scripts folder create one.) Step 8 Copy all the files from the Secret Bunker "scripts" folder into your scripts folder. Step 9 Make a sandwich... Link to comment Share on other sites More sharing options...
Schalldampfer Posted February 25, 2019 Report Share Posted February 25, 2019 8 hours ago, Caveman2019 said: 2. Download and unzip this https://www.dropbox.com/home?preview=SECRET+BUNKER.zip I don't have this file in my home directory. ↑ home?=preview=brahbrah... please share a valid link. Link to comment Share on other sites More sharing options...
l1nkrx7 Posted March 12, 2019 Report Share Posted March 12, 2019 what map is this for Link to comment Share on other sites More sharing options...
Snake72 Posted March 12, 2019 Report Share Posted March 12, 2019 Cherno Link to comment Share on other sites More sharing options...
l1nkrx7 Posted March 14, 2019 Report Share Posted March 14, 2019 is there wayto use editor to place it on say napf Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now