Advertisement
Guest User

Untitled

a guest
Oct 7th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.07 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.  
  15. //disable greeting menu
  16. player setVariable ["BIS_noCoreConversations", true];
  17. //disable radio messages to be heard and shown in the left lower corner of the screen
  18. enableRadio false;
  19.  
  20. // DayZ Epoch config
  21. spawnShoremode = 1; // Default = 1 (on shore)
  22. spawnArea= 1500; // Default = 1500
  23. MaxHeliCrashes= 20; // Default = 20
  24. MaxVehicleLimit = 150; // Default = 150
  25. MaxDynamicDebris = 500; // Default = 100
  26. dayz_MapArea = 14000; // Default = 10000
  27. dayz_maxLocalZombies = 30; // Default = 30
  28.  
  29. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  30. dayz_fullMoonNights = true;
  31.  
  32. //Load in compiled functions
  33. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  34. progressLoadingScreen 0.1;
  35. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  36. progressLoadingScreen 0.2;
  37. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  38. progressLoadingScreen 0.4;
  39. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  40. progressLoadingScreen 0.5;
  41. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  42. progressLoadingScreen 1.0;
  43.  
  44. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  45.  
  46. /* BIS_Effects_* fixes from Dwarden */
  47. BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
  48. BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
  49. BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
  50.  
  51. BIS_Effects_globalEvent = {
  52. BIS_effects_gepv = _this;
  53. publicVariable "BIS_effects_gepv";
  54. _this call BIS_Effects_startEvent;
  55. };
  56.  
  57. BIS_Effects_startEvent = {
  58. switch (_this select 0) do {
  59. case "AirDestruction": {
  60. [_this select 1] spawn BIS_Effects_AirDestruction;
  61. };
  62. case "AirDestructionStage2": {
  63. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  64. };
  65. case "Burn": {
  66. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  67. };
  68. };
  69. };
  70.  
  71. "BIS_effects_gepv" addPublicVariableEventHandler {
  72. (_this select 1) call BIS_Effects_startEvent;
  73. };
  74.  
  75. if ((!isServer) && (isNull player) ) then
  76. {
  77. waitUntil {!isNull player};
  78. waitUntil {time > 3};
  79. };
  80.  
  81. if ((!isServer) && (player != player)) then
  82. {
  83. waitUntil {player == player};
  84. waitUntil {time > 3};
  85. };
  86.  
  87. if (isServer) then {
  88. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
  89.  
  90. // Add trader citys
  91. _nil = [] execVM "mission.sqf";
  92. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  93. };
  94.  
  95. if (!isDedicated) then {
  96. //Conduct map operations
  97. 0 fadeSound 0;
  98. waitUntil {!isNil "dayz_loadScreenMsg"};
  99. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  100.  
  101. //Run the player monitor
  102. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  103. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  104. _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
  105.  
  106. //Lights
  107. //[17,6,true,false,true,true,72,242,600,10,[0.698, 0.556, 0.419],"Generator_DZ",208,"",0.5] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  108. };
  109. #include "\z\addons\dayz_code\system\REsec.sqf"
  110.  
  111. [] execVM "Newstuff.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement