Advertisement
Guest User

Yet another init.sqf

a guest
Apr 30th, 2014
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.75 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 = 1; // Default = 1 (on shore)
  24. spawnArea= 1500; // Default = 1500
  25. MaxHeliCrashes= 5; // Default = 5
  26. MaxVehicleLimit = 1000; // Default = 50
  27. MaxDynamicDebris = 0; // Default = 100
  28. dayz_MapArea = 14000; // Default = 10000
  29. dayz_maxLocalZombies = 30; // Default = 30
  30.  
  31. dayz_paraSpawn = false;
  32.  
  33. DZE_PlayerZed = false;
  34. DZE_GodModeBase = true;
  35.  
  36. DZE_DiagFpsSlow = true;
  37. DZE_DiagVerbose = false;
  38. DZE_DiagFpsFast = false;
  39.  
  40. dayz_minpos = -1;
  41. dayz_maxpos = 16000;
  42.  
  43. dayz_sellDistance_vehicle = 10;
  44. dayz_sellDistance_boat = 30;
  45. dayz_sellDistance_air = 40;
  46.  
  47. dayz_maxAnimals = 5; // Default: 8
  48. dayz_tameDogs = true;
  49. DynamicVehicleDamageLow = 0; // Default: 0
  50. DynamicVehicleDamageHigh = 100; // Default: 100
  51.  
  52. DZE_BuildOnRoads = false; // Default: False
  53.  
  54. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  55. dayz_fullMoonNights = true;
  56.  
  57. //Load in compiled functions
  58. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  59. progressLoadingScreen 0.1;
  60. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  61. progressLoadingScreen 0.2;
  62. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  63. progressLoadingScreen 0.4;
  64. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  65. progressLoadingScreen 0.5;
  66. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  67. progressLoadingScreen 1.0;
  68.  
  69. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  70.  
  71. if (isServer) then {
  72. call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  73. //Compile vehicle configs
  74.  
  75. // Add trader cities
  76. _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  77. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  78. };
  79.  
  80. if (!isDedicated) then {
  81. //Conduct map operations
  82. 0 fadeSound 0;
  83. waitUntil {!isNil "dayz_loadScreenMsg"};
  84. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  85.  
  86. //Vehicle Service Point
  87. [] execVM "service_point\service_point.sqf";
  88.  
  89. //Run the player monitor
  90. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  91. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  92.  
  93. // Epoch Admin Tools
  94. [] execVM "admintools\AdminList.sqf";
  95. if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList) && !((getPlayerUID player) in tempList)) then
  96. {
  97. [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  98. };
  99.  
  100. //Lights
  101. //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  102.  
  103. };
  104.  
  105. // Epoch Admin Tools
  106. [] execVM "admintools\Activate.sqf";
  107. [] execvm 'AGN\agn_SafeZoneCommander.sqf';
  108. [] execVM "buildings\Buildings.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement