Advertisement
diehardx95

init.sqf

Jul 23rd, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. D:\Dayz_Test_Server\MPMissions\DayZ_Overpoch_1.Napf\init.sqf
  2.  
  3. /*
  4. For DayZ Epoch
  5. Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  6. */
  7. startLoadingScreen ["","RscDisplayLoadCustom"];
  8. cutText ["","BLACK OUT"];
  9. enableSaving [false, false];
  10.  
  11. //REALLY IMPORTANT VALUES
  12. dayZ_instance = 24; //The instance
  13. dayzHiveRequest = [];
  14. initialized = false;
  15. dayz_previousID = 0;
  16.  
  17. //disable greeting menu
  18. player setVariable ["BIS_noCoreConversations", true];
  19. //disable radio messages to be heard and shown in the left lower corner of the screen
  20. enableRadio false;
  21. // May prevent "how are you civillian?" messages from NPC
  22. enableSentences false;
  23.  
  24. // DayZ Epochconfig
  25. spawnShoremode = 1; // Default = 1 (on shore)
  26. spawnArea= 1500; // Default = 1500
  27. //
  28. MaxVehicleLimit = 300; // Default = 50
  29. MaxDynamicDebris = 500; // Default = 100
  30. dayz_MapArea = 18000; // Default = 10000
  31.  
  32. dayz_minpos = -1000;
  33. dayz_maxpos = 26000;
  34.  
  35. dayz_paraSpawn = true;
  36.  
  37. dayz_sellDistance_vehicle = 10;
  38. dayz_sellDistance_boat = 30;
  39. dayz_sellDistance_air = 40;
  40.  
  41. dayz_maxAnimals = 5; // Default: 8
  42. dayz_tameDogs = true;
  43. DynamicVehicleDamageLow = 0; // Default: 0
  44. DynamicVehicleDamageHigh = 100; // Default: 100
  45.  
  46. DZE_BuildOnRoads = false; // Default: False
  47.  
  48. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  49. dayz_fullMoonNights = true;
  50.  
  51. //Load in compiled functions
  52. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  53. progressLoadingScreen 0.1;
  54. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  55. progressLoadingScreen 0.2;
  56. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  57. progressLoadingScreen 0.4;
  58. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  59. progressLoadingScreen 0.5;
  60. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  61. progressLoadingScreen 1.0;
  62.  
  63. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  64.  
  65. if (isServer) then {
  66. //Compile vehicle configs
  67. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\dynamic_vehicle.sqf";
  68. // Add trader citys
  69. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\mission.sqf";
  70.  
  71. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  72. };
  73.  
  74. if (!isDedicated) then {
  75. //Conduct map operations
  76. 0 fadeSound 0;
  77. waitUntil {!isNil "dayz_loadScreenMsg"};
  78. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  79.  
  80. //Run the player monitor
  81. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  82. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  83.  
  84.  
  85. //anti Hack
  86. [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  87.  
  88. //Lights
  89. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  90. };
  91. #include "\z\addons\dayz_code\system\REsec.sqf"
  92. //Start Dynamic Weather
  93. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  94.  
  95. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  96.  
  97. [] execVM "custom_monitor.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement