Advertisement
MSgtStone

init

Jan 5th, 2015
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.37 KB | None | 0 0
  1. /* 
  2.  
  3.     For DayZ Epoch
  4.  
  5.     Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  6.  
  7. */
  8.  
  9. startLoadingScreen ["","RscDisplayLoadCustom"];
  10.  
  11. cutText ["","BLACK OUT"];
  12.  
  13. enableSaving [false, false];
  14.  
  15.  
  16.  
  17. //REALLY IMPORTANT VALUES
  18.  
  19. dayZ_instance = 11;                 //The instance
  20.  
  21. dayzHiveRequest = [];
  22.  
  23. initialized = false;
  24.  
  25. dayz_previousID = 0;
  26. server_name = "AtD";
  27.  
  28.  
  29. //disable greeting menu
  30.  
  31. player setVariable ["BIS_noCoreConversations", true];
  32.  
  33. //disable radio messages to be heard and shown in the left lower corner of the screen
  34.  
  35. enableRadio true;
  36.  
  37. // May prevent "how are you civillian?" messages from NPC
  38.  
  39. enableSentences false;
  40.  
  41.  
  42.  
  43. // DayZ Epoch config
  44.  
  45. spawnShoremode = 1; // Default = 1 (on shore)
  46. spawnArea= 1500; // Default = 1500
  47. MaxVehicleLimit = 300; // Default = 50
  48. MaxDynamicDebris = 500; // Default = 100
  49. dayz_MapArea = 14000; // Default = 10000
  50. dayz_maxLocalZombies = 60; // Default = 30
  51. dayz_fullMoonNights = false;
  52. dayz_maxAnimals = 15;
  53. dayz_tameDogs = true;
  54. dayz_zedsAttackVehicles = false;
  55. dayz_sellDistance = 30;
  56. DZE_DeathMsgGlobal = true;
  57. DZE_DeathMsgSide = true;
  58. DZE_DeathMsgTitleText = true;
  59. MaxAmmoBoxes = 10;
  60. MaxMineVeins = 10;
  61. MaxHeliCrashes= 10; // Default = 5
  62. DZE_BackpackGuard = false; //Default = true, true to enable, false to disable
  63. DZE_BuildingLimit = 150;
  64. DZE_HumanityTargetDistance = 25;
  65. DZE_PlayerZed = false; // should players have chance of becoming a ZOMBIE when they respawn after death
  66. DZE_R3F_WEIGHT = true; //use weight system
  67. DZE_FriendlySaving = true;
  68. DZE_requireplot = 0;
  69. DZE_LootSpawnTimer = 10;// in minutes
  70. DZE_BuildingLimit = 15000;
  71.  
  72. dayz_paraSpawn = false;
  73. dayz_minpos = -1;
  74. dayz_maxpos = 16000;
  75. dayz_sellDistance_vehicle = 10;
  76. dayz_sellDistance_boat = 30;
  77. dayz_sellDistance_air = 40;
  78. DynamicVehicleDamageLow = 0; // Default: 0
  79. DynamicVehicleDamageHigh = 100; // Default: 100
  80. DZE_BuildOnRoads = false; // Default: False
  81.  
  82. DefaultMagazines = ["ItemBandage","ItemBandage","ItemPainkiller","HandChemGreen"];
  83. DefaultWeapons = ["ItemFlashlight","ItemMap","ItemRadio"];
  84. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  85. DefaultBackpackWeapon = "";
  86.  
  87. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
  88.  
  89. //Load in compiled functions
  90.  
  91. //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";              //Initilize the Variables (IMPORTANT: Must happen very early)
  92. call compile preprocessFileLineNumbers "compile\variables.sqf";
  93.  
  94. progressLoadingScreen 0.1;
  95.  
  96. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";             //Initilize the publicVariable event handlers
  97.  
  98. progressLoadingScreen 0.2;
  99.  
  100. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";   //Functions used by CLIENT for medical
  101.  
  102. progressLoadingScreen 0.4;
  103.  
  104. //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";               //Compile regular functions Original
  105. call compile preprocessFileLineNumbers "compile\compiles.sqf";              //Compile regular functions Scripts
  106. call compile preprocessFileLineNumbers "snap_building\snap_build\compiles.sqf";
  107. progressLoadingScreen 0.5;
  108.  
  109. call compile preprocessFileLineNumbers "server_traders.sqf";                //Compile trader configs
  110. progressLoadingScreen 1.0;
  111.  
  112.  
  113.  
  114. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  115.  
  116.  
  117.  
  118. if (isServer) then {
  119.  
  120.     call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  121.  
  122.     //Compile vehicle configs
  123.  
  124.    
  125.  
  126.     // Add trader citys
  127.  
  128.     _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  129.  
  130.     _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  131.  
  132. };
  133.  
  134.  
  135.  
  136. if (!isDedicated) then {
  137.  
  138.     //Conduct map operations
  139.  
  140.     0 fadeSound 0;
  141.  
  142.     waitUntil {!isNil "dayz_loadScreenMsg"};
  143.  
  144.     dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  145.  
  146.    
  147.  
  148.     //Run the player monitor
  149.  
  150.     _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  151.  
  152.     _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; 
  153.  
  154.    
  155.  
  156.     //anti Hack
  157.  
  158.  
  159.  
  160.     //Lights
  161.  
  162.     //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  163.  
  164.    
  165.  
  166. };
  167.  
  168.  
  169.  
  170.  
  171.  
  172. //Start Dynamic Weather
  173. execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  174.  
  175.  
  176.  
  177. [] execVM "custom\safezone.sqf";
  178.  
  179. if (!isDedicated) then
  180. {
  181. [] execVM "custom\breathfog.sqf";
  182. };
  183.  
  184. //DayZ Watermark
  185. if (!isNil "server_name") then {
  186. [] spawn {
  187. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  188. waituntil {!(isNull (findDisplay 46))};
  189. 5 cutRsc ["wm_disp","PLAIN"];
  190. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
  191. };
  192. };
  193.  
  194. // jahan - begin player bike
  195. s_playerHadBike = false;
  196. s_player_unpackbike = -1;
  197. s_player_packbike = -1;
  198. s_bikeDamage = 0;
  199. // check for existing player bike
  200. {
  201.     _ownername = _x getVariable["Ownername", "nil"];
  202.     if ( _ownername == getPlayerUID player ) exitWith {          
  203.         s_playerHadBike = true;
  204.     };
  205. } count (player nearEntities [["MMT_Civ"], 25000]) -1;
  206. // jahan - end player bike
  207.  
  208. call compile preprocessFileLineNumbers "custom\walkamongstthedead\config.sqf";
  209.  
  210. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement