Advertisement
johnyoung

init.sqf

Sep 25th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.24 KB | None | 0 0
  1. // Mission Initialization
  2. startLoadingScreen ["", "RscDisplayLoadCustom"];
  3. cutText ["", "BLACK OUT"];
  4. enableSaving [false, false];
  5.  
  6. // Variable Initialization
  7. dayZ_instance = 18;
  8. dayZ_serverName = "PAZSAS.COM"; // server name (country code + server number)
  9. hiveInUse = true;
  10. dayzHiveRequest = [];
  11. initialized = false;
  12. dayz_previousID = 0;
  13. [] execVM "custom\rustlerscript.sqf";
  14. [] execVM "buildings\excbridge.sqf";
  15. [] execVM "buildings\island.sqf";
  16. [] execVM "custom\rustlersafetp.sqf";
  17. [] execVM "buildings\clanbases.sqf";
  18. [] execVM "buildings\roadblocks.sqf";
  19. [] execVM "buildings\aibase.sqf";
  20. [] execVM "buildings\airports.sqf";
  21. [] execVM "custom\nametags.sqf";
  22. [] execVM "carradio\initCarRadio.sqf";
  23. [] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
  24.  
  25. // Fred's Wardrobe
  26. [] execVM "wardrobe\wardrobe_activate.sqf";
  27. //domedrizzt
  28. [[1233.19, 8756,0],100] execVM "custom\SAR_nuke_zeds.sqf";
  29. //domeumbrella
  30. [[917.819, 10767.7,0],130] execVM "custom\SAR_nuke_zeds.sqf";
  31. //domeavt
  32. [[12835.3, 14084.7,0],100] execVM "custom\SAR_nuke_zeds.sqf";
  33. //domeblackchurch
  34. [[14489, 13355,0],100] execVM "custom\SAR_nuke_zeds.sqf";
  35. //domehero
  36. [[10086.4, 13454.7,0],100] execVM "custom\SAR_nuke_zeds.sqf";
  37. //domebandit
  38. [[9576.21, 8259.08,0],100] execVM "custom\SAR_nuke_zeds.sqf";
  39.  
  40. // Settings
  41. player setVariable ["BIS_noCoreConversations", true]; // Disable greeting menu
  42. //enableRadio false; // Disable global chat radio messages
  43.  
  44. // Compile and call important functions
  45. call compile preprocessFileLineNumbers "custom\variables.sqf";
  46. progressLoadingScreen 0.1;
  47. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
  48. progressLoadingScreen 0.2;
  49. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
  50. progressLoadingScreen 0.4;
  51. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  52. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
  53. progressLoadingScreen 1.0;
  54.  
  55. // Set Tonemapping
  56. "Filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4];
  57. setToneMapping "Filmic";
  58.  
  59. // Fred's Wardrobe
  60. wardrobe = compile preprocessFileLineNumbers "wardrobe\wardrobe_main.sqf";
  61.  
  62. BIS_Effects_startEvent = {
  63. switch (_this select 0) do {
  64. case "AirDestruction": {
  65. [_this select 1] spawn BIS_Effects_AirDestruction;
  66. };
  67. case "AirDestructionStage2": {
  68. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  69. };
  70. case "Burn": {
  71. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  72. };
  73. };
  74. };
  75.  
  76. "BIS_effects_gepv" addPublicVariableEventHandler {
  77. (_this select 1) call BIS_Effects_startEvent;
  78. };
  79.  
  80. if ((!isServer) && (isNull player) ) then
  81. {
  82. waitUntil {!isNull player};
  83. waitUntil {time > 3};
  84. };
  85.  
  86. if ((!isServer) && (player != player)) then
  87. {
  88. waitUntil {player == player};
  89. waitUntil {time > 3};
  90. };
  91.  
  92. // Run the server monitor
  93. if ((!isServer) && (isNull player) ) then
  94. {
  95. waitUntil {!isNull player};
  96. waitUntil {time > 3};
  97. };
  98.  
  99. if ((!isServer) && (player != player)) then
  100. {
  101. waitUntil {player == player};
  102. waitUntil {time > 3};
  103. };
  104.  
  105. if (isServer) then {
  106. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  107. // "PVDZ_sec_atp" addPublicVariableEventHandler { diag_log format["%1", _this select 1];};
  108. _factions = [] execVM "scripts\set_unit_faction.sqf";
  109. //road barrier west
  110. _aispawn = [[3397.45,8317.7,0],10,5,1,4,1,7,10,0,600] execVM "scripts\add_unit_server.sqf";
  111. //road barrier east
  112. _aispawn = [[7489.52,7559.17,0],10,5,1,4,1,7,10,0,600] execVM "scripts\add_unit_server.sqf";
  113. //Tradezone 1
  114. _aispawn = [[6707.63,3449.08,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  115. //Tradezone 2
  116. _aispawn = [[6669.99,3430.03,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  117. //Tradezone 3
  118. _aispawn = [[6583.98,3449.95,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  119. //Tradezone 4
  120. _aispawn = [[6568.02,3415.12,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  121. //Tradezone 5
  122. _aispawn = [[6612.02,3410.5,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  123. //Tradezone 6
  124. _aispawn = [[6626.63,3450.39,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  125. //Tradezone 7
  126. _aispawn = [[6629.34,3450.45,0],1,1,1,0,2,1,3,1,60] execVM "scripts\add_unit_server.sqf";
  127. //Amelias Story 1
  128. _aispawn = [[10130,2193.31,0],1,1,1,1,2,1,3,2,60] execVM "scripts\add_unit_server.sqf";
  129. //aibase
  130. _aispawn = [[6891.22,11432.9,0],20,5,1,4,1,9,10,0,300] execVM "scripts\add_unit_server.sqf";
  131. //aibase2
  132. _aispawn = [[6855.37,11446.2,0],20,5,1,4,1,9,10,0,300] execVM "scripts\add_unit_server.sqf";
  133. //aibase3
  134. _aispawn = [[6922.19,11465.5,0],20,5,1,4,1,9,10,0,300] execVM "scripts\add_unit_server.sqf";
  135. //aibase4
  136. _aispawn = [[6902.4,11373,0],20,5,1,4,1,9,10,0,300] execVM "scripts\add_unit_server.sqf";
  137. //ROAMING NPC
  138. _aispawn = [[7622.51,7912.7,0],5000,20,1,4,1,3,5,0,600] execVM "scripts\add_unit_server.sqf";
  139. _aispawn = [[7625.51,7915.7,0],5000,20,1,4,1,3,5,0,600] execVM "scripts\add_unit_server.sqf";
  140.  
  141. //Bus Service
  142. [] execVM "busroute\bus_driver.sqf";
  143.  
  144. //street lights
  145. axe_server_lampObjs = compile preprocessFileLineNumbers "lights\fnc_returnLampWS.sqf";
  146. "axeLampObjects" addPublicVariableEventHandler {_id = (_this select 1) spawn axe_server_lampObjs};
  147.  
  148. //===================piXel 15-02-2013===========
  149. dogOwner = [];
  150.  
  151. //=========================end==================
  152.  
  153. };
  154.  
  155. // Run the player monitor
  156. if (!isDedicated) then {
  157. //Conduct map operations
  158. 0 fadeSound 0;
  159. waitUntil {!isNil "dayz_loadScreenMsg"};
  160. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  161.  
  162. //Run the player monitor
  163. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  164. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  165. //[] execVM "DamiMods\Adminz\functions.sqf";
  166. // [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  167. //StreetLights
  168. [] execVM "lights\street_lights.sqf";
  169. [] execVM "lights\tower_lights.sqf";
  170. [] execVM "addin\plrInit.sqf";
  171.  
  172. };
  173.  
  174. // Logo watermark: adding a logo in the bottom left corner of the screen with the server name in it
  175. if (!isNil "dayZ_serverName") then {
  176. [] spawn {
  177. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  178. waituntil {!(isNull (findDisplay 46))};
  179. 5 cutRsc ["wm_disp","PLAIN"];
  180. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
  181.  
  182. #include "gcam\gcam_config.hpp"
  183. #include "gcam\gcam_functions.sqf"
  184.  
  185. #ifdef GCAM
  186. waitUntil { alive Player };
  187. waituntil { !(IsNull (findDisplay 46)) };
  188.  
  189. if (serverCommandAvailable "#kick") then { (findDisplay 46) displayAddEventHandler ["keyDown", "_this call fnc_keyDown"]; };
  190. #endif
  191. };
  192.  
  193. #include "\z\addons\dayz_code\system\REsec.sqf"
  194.  
  195. // DayZ of Glory Mod By Sporkulus
  196. Use_spork = true; //turn this false to disable sporks whole mod.
  197. AdminList = ["107620678"]; //add admin uids here
  198. [] execvm "@DayZofDuty\dod\settings.sqf";
  199. [] execvm "@DayZofDuty\dod\Level_addons.sqf";
  200. [Use_spork,AdminList] execvm "@DayZofDuty\dod\debug.sqf";
  201. [Use_spork] execvm "@DayZofDuty\dod\Debug2.sqf";
  202. [Use_spork] execvm "@DayZofDuty\dod\debug3.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement