Advertisement
Guest User

server init

a guest
Aug 8th, 2014
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.02 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 true;
  19. // May prevent "how are you civillian?" messages from NPC
  20. enableSentences false;
  21.  
  22. // DayZ Epoch config
  23. spawnShoremode = 1; // Default = 1 (on shore)
  24. spawnArea= 1500; // Default = 1500
  25. DZE_DeathMsgGlobal = true;
  26. DZE_DeathMsgSide = true;
  27. DZE_DeathMsgTitleText = true;
  28. DZE_GodModeBase = true;
  29.  
  30. DefaultMagazines = ["ItemBandage","ItemPainkiller","ItemWaterbottle","FoodCanPasta","RH_15Rnd_9x19_uspsd","RH_15Rnd_9x19_uspsd","RH_15Rnd_9x19_uspsd"];
  31. DefaultWeapons = ["ItemFlashlight","ItemMap","ItemCompass","ItemToolbox","RH_uspsd"];
  32. DefaultBackpack = "DZ_Assault_Pack_EP1";
  33. DefaultBackpackWeapon = "";
  34.  
  35. //Indestructible Bases
  36. DZE_BuildingLimit = 600;
  37.  
  38. //Enables Player to Spawn as Zombie after being killed by them
  39. DZE_PlayerZed = false;
  40.  
  41. //Default = 0, deletes ammo from vehicles with machine guns every restart if set to 0.
  42. DZE_vehicleAmmo = 1;
  43.  
  44. MaxVehicleLimit = 300; // Default = 50
  45. MaxDynamicDebris = 500; // Default = 100
  46. dayz_MapArea = 14000; // Default = 10000
  47. dayz_maxLocalZombies = 60; // Default = 30
  48. DZE_teleport = [99999,99999,99999,99999,99999];
  49.  
  50. dayz_paraSpawn = false;
  51. DZE_R3F_WEIGHT = false;  //weightless
  52.  
  53. dayz_minpos = -1;
  54. dayz_maxpos = 16000;
  55.  
  56. dayz_sellDistance_vehicle = 10;
  57. dayz_sellDistance_boat = 30;
  58. dayz_sellDistance_air = 40;
  59.  
  60. dayz_maxAnimals = 5; // Default: 8
  61. dayz_tameDogs = true;
  62. DynamicVehicleDamageLow = 0; // Default: 0
  63. DynamicVehicleDamageHigh = 100; // Default: 100
  64.  
  65. DZE_BuildOnRoads = false; // Default: False
  66.  
  67. DZE_customloot = true;
  68. DZE_MissionLootTable = true;
  69.  
  70. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  71. dayz_fullMoonNights = true;
  72.  
  73. //Load in compiled functions
  74. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
  75. progressLoadingScreen 0.1;
  76. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";             //Initilize the publicVariable event handlers
  77. progressLoadingScreen 0.2;
  78. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";   //Functions used by CLIENT for medical
  79. progressLoadingScreen 0.4;
  80. call compile preprocessFileLineNumbers "custom\compiles.sqf";               //Compile regular functions
  81. call compile preprocessFileLineNumbers "custom\snap_build\compiles.sqf";
  82. progressLoadingScreen 0.5;
  83. call compile preprocessFileLineNumbers "server_traders.sqf";                //Compile trader configs
  84. call compile preprocessFileLineNumbers "custom\bcompile.sqf";               //Compile custom compiles
  85. progressLoadingScreen 1.0;
  86.  
  87. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  88.  
  89. if (isServer) then {
  90.     call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  91.     //Compile vehicle configs
  92.    
  93.     // Add trader citys
  94.     _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  95.     _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  96. };
  97.  
  98. if (!isDedicated) then {
  99.  
  100. [] ExecVM "TradeFromVehicle\init.sqf";
  101. [] execVM "refuel\kh_actions.sqf";
  102.     //Conduct map operations
  103.     0 fadeSound 0;
  104.     waitUntil {!isNil "dayz_loadScreenMsg"};
  105.     dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  106.  
  107.     //Custom Loadouts
  108.     [] ExecVM "custom\loadout.sqf";
  109.  
  110.     //Run the player monitor
  111.     _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  112.     _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  113.  
  114.     //Lights
  115.     //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  116.  
  117.  
  118.  
  119. };
  120.  
  121. //Start Dynamic Weather
  122. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  123.  
  124. [] execVM "buildings\excbridge.sqf";
  125. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  126. [] execvm 'safezone\agn_SafeZoneCommander.sqf';
  127. [] execVM "buildings\airfields.sqf";
  128. [] execVM "buildings\balota.sqf";
  129. [] execVM "buildings\camo.sqf";
  130. [] execVM "buildings\stary.sqf";
  131. [] execVM "buildings\Latrix.sqf";
  132.  
  133. // Extra Local actions:
  134. if (local player) then {
  135.     [] execVM "nofog\nofog.sqf";
  136. };
  137.  
  138. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  139.  
  140. call compile preprocessFileLineNumbers "addons\bike\init.sqf";
  141.  
  142. //##UID Based Custom Spawn Locations##
  143. p2_newspawn = compile preprocessFileLineNumbers "custom\newspawn.sqf";
  144. waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
  145. if (dayzPlayerLogin2 select 2) then
  146. {
  147. player spawn p2_newspawn;
  148. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement