Advertisement
Guest User

my init.sqf

a guest
Dec 7th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.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.  
  20. // DayZ Epoch config
  21. spawnShoremode = 1; // Default = 1 (on shore)
  22. spawnArea= 1500; // Default = 1500
  23. MaxHeliCrashes= 15; // Default = 5
  24. MaxVehicleLimit = 500; // Default = 50
  25. MaxDynamicDebris = 500; // Default = 100
  26. dayz_MapArea = 14000; // Default = 10000
  27. dayz_maxLocalZombies = 30; // Default = 30
  28.  
  29. //Default Loadout
  30. DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
  31. DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemHatchet"];
  32. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  33. DefaultBackpackWeapon = "";
  34.  
  35. dayz_paraSpawn = false;
  36.  
  37. dayz_maxAnimals = 8; // Default: 8
  38. dayz_tameDogs = true;
  39. DynamicVehicleDamageLow = 0; // Default: 0
  40. DynamicVehicleDamageHigh = 100; // Default: 100
  41.  
  42. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  43. dayz_fullMoonNights = true;
  44.  
  45. //Load in compiled functions
  46. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  47. progressLoadingScreen 0.1;
  48. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  49. progressLoadingScreen 0.2;
  50. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  51. progressLoadingScreen 0.4;
  52. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  53. progressLoadingScreen 0.5;
  54. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  55. call compile preprocessFileLineNumbers "Scripts\compiles.sqf"; //Compile custom compiles
  56. progressLoadingScreen 1.0;
  57.  
  58. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  59.  
  60. /* BIS_Effects_* fixes from Dwarden */
  61. BIS_Effects_EH_Killed = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\killed.sqf";
  62. BIS_Effects_AirDestruction = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestruction.sqf";
  63. BIS_Effects_AirDestructionStage2 = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\BIS_Effects\AirDestructionStage2.sqf";
  64.  
  65. BIS_Effects_globalEvent = {
  66. BIS_effects_gepv = _this;
  67. publicVariable "BIS_effects_gepv";
  68. _this call BIS_Effects_startEvent;
  69. };
  70.  
  71. BIS_Effects_startEvent = {
  72. switch (_this select 0) do {
  73. case "AirDestruction": {
  74. [_this select 1] spawn BIS_Effects_AirDestruction;
  75. };
  76. case "AirDestructionStage2": {
  77. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  78. };
  79. case "Burn": {
  80. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  81. };
  82. };
  83. };
  84.  
  85. "BIS_effects_gepv" addPublicVariableEventHandler {
  86. (_this select 1) call BIS_Effects_startEvent;
  87. };
  88.  
  89. if ((!isServer) && (isNull player) ) then
  90. {
  91. waitUntil {!isNull player};
  92. waitUntil {time > 3};
  93. };
  94.  
  95. if ((!isServer) && (player != player)) then
  96. {
  97. waitUntil {player == player};
  98. waitUntil {time > 3};
  99. };
  100.  
  101. if (isServer) then {
  102. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
  103.  
  104. // Add trader citys
  105. _nil = [] execVM "mission.sqf";
  106. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  107. };
  108.  
  109. if (!isDedicated) then {[] execVM "Scripts\kh_actions.sqf";
  110. //Conduct map operations
  111. 0 fadeSound 0;
  112. waitUntil {!isNil "dayz_loadScreenMsg"};
  113. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  114. [] execVM "custom\adminzone\adminzone.sqf";
  115.  
  116. //Run the player monitor
  117. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  118. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  119. _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
  120. _nul = [] execVM "safezone.sqf";
  121.  
  122. //Lights
  123. //[0,0,true,true,true,58,280,600,[0.698, 0.556, 0.419],"Generator_DZ",0.1] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  124. };
  125. #include "\z\addons\dayz_code\system\REsec.sqf"
  126.  
  127. // UPSMON
  128. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  129.  
  130. // SHK
  131. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  132.  
  133. // run SAR_AI
  134. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  135.  
  136. //R3F Towing and shit (or whatever you want to title it)
  137. execVM "R3F_ARTY_AND_LOG\init.sqf"
  138.  
  139. [[13352.4, 11976.2,0],100] execVM "custom\adminzone\SAR_nuke_zeds.sqf";
  140.  
  141. [] execVM "sectorfng\sectorfng_init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement