Advertisement
Guest User

Untitled

a guest
Jan 18th, 2015
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.17 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. // May prevent "how are you civillian?" messages from NPC
  20. enableSentences false;
  21.  
  22. // DayZ Epoch config
  23. spawnShoremode = 0; // Default = 1 (on shore)
  24. spawnArea= 1500; // Default = 1500
  25.  
  26. MaxVehicleLimit = 360; // Default = 50
  27. MaxDynamicDebris = 5; // Default = 100
  28. dayz_MapArea = 14000; // Default = 10000
  29. dayz_maxLocalZombies = 30; // Default = 30
  30. dayz_paraSpawn = false;
  31. dayz_minpos = -1;
  32. dayz_maxpos = 16000;
  33. dayz_sellDistance_vehicle = 10;
  34. dayz_sellDistance_boat = 30;
  35. dayz_sellDistance_air = 40;
  36. dayz_maxAnimals = 5; // Default: 8
  37. dayz_tameDogs = true;
  38. DynamicVehicleDamageLow = 10; // Default: 0
  39. DynamicVehicleDamageHigh = 50; // Default: 100
  40. DynamicVehicleFuelLow = 10;
  41. DynamicVehicleFuelHigh = 35;
  42.  
  43. DZE_vehicleAmmo = 0; //Default = 0, deletes ammo from vehicles with machine guns every restart if set to 0.
  44. DZE_BuildingLimit = 300; //Default = 150, decides how many objects can be built on the server before allowing any others to be built. Change value for more buildings.
  45. DZE_BuildOnRoads = false; // Default: False
  46. DZE_noRotate = []; //Objects that cannot be rotated. Ex: DZE_noRotate = ["VaultStorageLocked"]
  47. DZE_curPitch = 45; //Starting rotation angle. Only 1, 5, 45, or 90.
  48. DZE_GodModeBase = true; //unbreakable bases
  49. DZE_requireplot = 0; //removes need for plot pole
  50. DZE_R3F_WEIGHT = false; //remove weight system
  51. DZE_PlayerZed = false; //player spawns back as zed
  52. DZE_SelfTransfuse = true; //Solf blood transfusion
  53. DZE_selfTransfuse_Values = [6000, 200, 240]; //[blood amount, infection chance, cool-down (seconds)]
  54. setViewDistance 1200; //sets view distance
  55. setTerrainGrid 20; //sets terrain detail
  56.  
  57. ns_blowout = true; // true / false
  58. ns_blowout_dayz = true;// true / false
  59. ns_blow_delaymod = 0.74; //blowout delay
  60. ns_blow_itemapsi = "NVGoggles"; //ItemAPSI replacement
  61. ns_blow_playerdamage = 3000; // damage players without ns_blow_itemapsi can get per blowout
  62. ns_blow_emp = false; //Namalsk Only
  63.  
  64. EpochEvents = [["any","any","any","any",0,"crash_spawner"],
  65. ["any","any","any","any",30,"crash_spawner"],
  66. ["any","any","any","any",35,"supply_drop"],
  67. ["any","any","any","any",10,"Military"],
  68. ["any","any","any","any",15,"Treasure"],
  69. ["any","any","any","any",20,"Supplyitems"],
  70. ["any","any","any","any",45,"Construction"]];
  71.  
  72. dayz_fullMoonNights = true;
  73.  
  74. //Load in compiled functions
  75. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  76. progressLoadingScreen 0.1;
  77. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  78. progressLoadingScreen 0.2;
  79. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  80. progressLoadingScreen 0.4;
  81. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  82. progressLoadingScreen 0.5;
  83. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  84. progressLoadingScreen 1.0;
  85.  
  86. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  87.  
  88. // atv
  89. //non-JIP player, someone who's went through role selection and briefing
  90. if (!(isNull player)) then
  91. {
  92. // =============================================================
  93. // GeneralCarver Vehicle Flip Script v2 Init Scripting
  94.  
  95. gc_veh_flip_script_script_action_manager = execVM "gc_veh_flip\action_manager.sqf";
  96.  
  97. //
  98. // =============================================================
  99. };
  100.  
  101. //JIP player, role selection then right into mission.
  102. if (!isServer && isNull player) then
  103. {
  104. waitUntil {!isNull player};
  105.  
  106. // =============================================================
  107. // GeneralCarver Vehicle Flip Script v2 Init Scripting
  108.  
  109. gc_veh_flip_script_script_action_manager = execVM "gc_veh_flip\action_manager.sqf";
  110.  
  111. //
  112. // =============================================================
  113. };
  114.  
  115. if (isServer) then {
  116. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  117. //Compile vehicle configs
  118.  
  119. // Add trader citys
  120. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  121. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  122. };
  123.  
  124. if (!isDedicated) then {
  125. [] ExecVM "TradeFromVehicle\init.sqf"; // <<<< Line to launch TradeFromVehicle script
  126. //Conduct map operations
  127. 0 fadeSound 0;
  128. waitUntil {!isNil "dayz_loadScreenMsg"};
  129. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  130.  
  131. //Run the player monitor
  132. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  133. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  134.  
  135.  
  136.  
  137. //Lights
  138. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  139. execVM "service_point\service_point.sqf";
  140. };
  141.  
  142.  
  143.  
  144. //Start Dynamic Weather
  145. execVM "custom\DynamicWeatherEffects.sqf";
  146.  
  147. //Blowout
  148.  
  149. if (isServer) then { _bul = [ns_blow_emp] execVM "blowout\module\blowout_server.sqf"; };
  150. if (!isDedicated) then { _bul = [] execVM "blowout\module\blowout_client.sqf"; };
  151.  
  152. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  153.  
  154. //Custom Loadouts
  155. [] ExecVM "Scripts\loadout.sqf";
  156. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  157.  
  158. //Trader safe zone
  159. [] execvm 'AGN\agn_SafeZoneCommander.sqf';
  160.  
  161. //spawn selection
  162. espawn = compile preprocessFileLineNumbers "spawn\spawn.sqf";
  163. waitUntil {!isNil "PVDZE_plr_LoginRecord"};
  164. if (!isDedicated && (dayzPlayerLogin2 select 2)) then {[] spawn espawn;};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement