LawlessBaron

init

Mar 31st, 2014
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.86 KB | None | 0 0
  1. /*
  2. For DayZ Epoch
  3. Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  4. */
  5. startLoadingScreen ["","RscDisplayLoadCustom"];
  6. cutText ["","BLACK OUT"];
  7. enableSaving [false, false];
  8.  
  9. //REALLY IMPORTANT VALUES
  10. dayZ_instance = 11; //The instance
  11. dayzHiveRequest = [];
  12. initialized = false;
  13. dayz_previousID = 0;
  14. dayZ_serverName = "GMZ";
  15.  
  16. //disable greeting menu
  17. player setVariable ["BIS_noCoreConversations", true];
  18. //disable radio messages to be heard and shown in the left lower corner of the screen
  19. enableRadio false;
  20. // May prevent "how are you civillian?" messages from NPC
  21. enableSentences false;
  22.  
  23. // DayZ Epoch config
  24. spawnShoremode = 1; // Default = 1 (on shore)
  25. spawnArea= 1500; // Default = 1500
  26.  
  27. DZE_BackpackGuard = true;
  28. DZE_DeathMsgSide = false;
  29. DZE_DeathMsgTitleText = true;
  30.  
  31. MaxVehicleLimit = 300; // Default = 50
  32. MaxDynamicDebris = 500; // Default = 100
  33. dayz_MapArea = 14000; // Default = 10000
  34. dayz_maxLocalZombies = 30; // Default = 30
  35.  
  36. dayz_paraSpawn = true;
  37.  
  38. dayz_minpos = -1;
  39. dayz_maxpos = 16000;
  40.  
  41. dayz_sellDistance_vehicle = 10;
  42. dayz_sellDistance_boat = 30;
  43. dayz_sellDistance_air = 40;
  44.  
  45. dayz_maxAnimals = 5; // Default: 8
  46. dayz_tameDogs = true;
  47. DynamicVehicleDamageLow = 0; // Default: 0
  48. DynamicVehicleDamageHigh = 100; // Default: 100
  49.  
  50. DZE_BuildOnRoads = true; // Default: False
  51.  
  52. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  53. dayz_fullMoonNights = true;
  54.  
  55. //Load in compiled functions
  56. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  57. progressLoadingScreen 0.1;
  58. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  59. progressLoadingScreen 0.2;
  60. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  61. progressLoadingScreen 0.4;
  62. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  63. call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf"; //Compile regular functions
  64. //fnc_usec_selfActions = compile preprocessFileLineNumbers "Scripts\fn_selfActions.sqf"; // fnc_usec_selfActions - adds custom actions to dayz code
  65. progressLoadingScreen 0.5;
  66. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  67. progressLoadingScreen 1.0;
  68.  
  69. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  70.  
  71. if (isServer) then {
  72. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  73. //Compile vehicle configs
  74.  
  75. // Add trader citys
  76. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  77. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  78. };
  79.  
  80. if (!isDedicated) then {
  81. //Conduct map operations
  82. 0 fadeSound 0;
  83. waitUntil {!isNil "dayz_loadScreenMsg"};
  84. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  85. [] execVM "custom\Server_WelcomeCredits.sqf";
  86.  
  87. //Run the player monitor
  88. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death; _nul = [] execVM "playerspawn.sqf";}];
  89. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  90. //_playerMonitor = [] execFSM "fixes\player_monitor.fsm";
  91. _nul = [] execVM "playerspawn.sqf";
  92.  
  93. //anti Hack
  94. //[] execVM "\z\addons\dayz_code\system\antihack.sqf";
  95.  
  96. //Lights
  97. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  98.  
  99. };
  100.  
  101. //#include "\z\addons\dayz_code\system\REsec.sqf"
  102.  
  103. //Start Dynamic Weather
  104. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  105.  
  106.  
  107. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  108.  
  109. //Snapping Tool
  110. if (!isDedicated) then {
  111. execVM "service_point\service_point.sqf";
  112. execVM "R3F_ARTY_AND_LOG\init.sqf"
  113. player_build = compile preprocessFileLineNumbers "custom\snap_build\player_build.sqf";
  114. player_buildControls = compile preprocessFileLineNumbers "custom\snap_build\player_buildControls.sqf";
  115. snap_object = compile preprocessFileLineNumbers "custom\snap_build\snap_object.sqf";
  116. };
  117.  
  118. //Service Point
  119. if (!isDedicated) then {
  120. // ... some other stuff ...
  121. // add the next line somewhere in this block
  122. execVM "service_point\service_point.sqf";
  123. };
  124.  
  125. if (! IsNil "dayZ_serverName") then {
  126. [] Spawn {
  127. WAITUNTIL {and (alive player) and (player == player) (isNull player!)};
  128. waituntil {! (isNull (find display 46))};
  129. 5 cutRsc ["wm_disp", "PLAIN"];
  130. ((UiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText dayZ_serverName;
  131. };
  132. };
  133.  
  134.  
  135. execVM "R3F_ARTY_AND_LOG\init.sqf"
  136. _nil = [] execVM "safezone\init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment