Advertisement
Guest User

Init

a guest
Aug 17th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. startLoadingScreen ["","RscDisplayLoadCustom"];
  2. cutText ["","BLACK OUT"];
  3. enableSaving [false, false];
  4.  
  5. dayZ_instance = 24;
  6. dayzHiveRequest = [];
  7. initialized = false;
  8. dayz_previousID = 0;
  9. server_name = "Ovrpoch";
  10. player setVariable ["BIS_noCoreConversations", true];
  11. enableRadio false;
  12. enableSentences false;
  13.  
  14. // DayZ Epoch config
  15. spawnShoremode = 0;
  16. spawnArea = 2000;
  17. MaxHeliCrashes = 7;
  18. MaxVehicleLimit = 120;
  19. dayz_MapArea = 22000;
  20. dayz_maxAnimals = 8;
  21. dayz_minpos = -1;
  22. dayz_maxpos = 26000;
  23. dayz_tameDogs = true;
  24. MaxDynamicDebris = 100;
  25. DynamicVehicleDamageLow = 10;
  26. DynamicVehicleDamageHigh = 100;
  27.  
  28. DZE_PlayerZed = false;
  29. DZE_HeliLift = false;
  30. DZE_BuildOnRoads = false;
  31. DZE_BackpackGuard = false;
  32. DZE_R3F_WEIGHT = false;
  33. DZE_FriendlySaving = true;
  34. DZE_LootSpawnTimer = 5;
  35. DZE_requireplot = 1;
  36. DZE_vehicleAmmo = 0.8;
  37. DZE_BuildingLimit = 1000;
  38. DZE_maintainRange = 75;
  39. DZE_MissionLootTable = true;
  40.  
  41. dayz_maxLocalZombies = 12;
  42. EpochEvents =
  43. [
  44. ["any","any","any","any",40,"un_supplies"],
  45. ["any","any","any","any",55,"Construction"],
  46. ["any","any","any","any",30,"crash_spawner"],
  47. ["any","any","any","any",5,"supply_drop"],
  48. ["any","any","any","any",35,"supply_drop"],
  49. ["any","any","any","any",10,"Military"],
  50. ["any","any","any","any",40,"Military"],
  51. ["any","any","any","any",15,"Treasure"],
  52. ["any","any","any","any",20,"Supplyitems"],
  53. ["any","any","any","any",50,"Supplyitems"],
  54. ["any","any","any","any",25,"Construction"],
  55. ["any","any","any","any",45,"crash_spawner"],
  56. ["any","any","any","any",15,"weapon_cache"],
  57. ["any","any","any","any",3,"Construction"],
  58. ["any","any","any","any",4,"un_supplies"]
  59. ];
  60. dayz_fullMoonNights = true;
  61.  
  62. //Load in compiled functions
  63. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
  64. call compile preprocessFileLineNumbers "custom\Buildables\variables.sqf";
  65. //-------------------BASE BUILDING 1.3-------------------
  66. call compile preprocessFileLineNumbers "dayz_code\init\variables.sqf"; //Initializes custom variables
  67.  
  68. //-------------------BASE BUILDING 1.3-------------------
  69. progressLoadingScreen 0.1;
  70. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
  71. progressLoadingScreen 0.2;
  72. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
  73. progressLoadingScreen 0.4;
  74. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  75. progressLoadingScreen 0.6;
  76. call compile preprocessFileLineNumbers "DamiMods\compiles.sqf";
  77. call compile preprocessFileLineNumbers "custom\Buildables\Crafting_Compiles.sqf";
  78. call compile preprocessFileLineNumbers "DamiMods\v.sqf";
  79. progressLoadingScreen 0.8;
  80. call compile preprocessFileLineNumbers "server_traders.sqf";
  81. call compile preProcessFileLineNumbers "DamiMods\Epoch\dami_PIDPS.sqf";
  82. //-------------------BASE BUILDING 1.3-------------------
  83. call compile preprocessFileLineNumbers "dayz_code\init\compiles.sqf"; //Compile custom compiles
  84. call compile preprocessFileLineNumbers "dayz_code\init\settings.sqf";
  85. //-------------------BASE BUILDING 1.3-------------------
  86. progressLoadingScreen 1.0;
  87.  
  88. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  89. vehcrafting = compile preprocessFileLineNumbers "Vehicle Crafting\crafting_main.sqf";
  90. execVM "DamiMods\Epoch\dami_OWTASE.sqf";
  91.  
  92. if (isServer) then {
  93. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf";
  94. execVM "mission.sqf";
  95. execVM "mission2.sqf";
  96. execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  97. };
  98. endLoadingScreen; // Work around for 2nd Log in hang
  99. if (!isDedicated) then {
  100. 0 fadeSound 0;
  101. waitUntil {!isNil "dayz_loadScreenMsg"};
  102. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  103. player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  104. execFSM "DamiMods\Epoch\player_monitor.fsm";
  105. execVM "DamiMods\Refuel\fuelactions.sqf";
  106. execVM "DamiMods\Epoch\Dami_DT.sqf";
  107. execVM "service_point\service_point.sqf";
  108. execVM "dzgm\init.sqf";
  109. _nil = [] execVM "custom\VehicleKeyChanger\VehicleKeyChanger_init.sqf";
  110. };
  111. execVM "DamiMods\Epoch\Dami_SZ.sqf";
  112. execVM "DamiMods\Lift\init.sqf";
  113.  
  114. //Recruit A.I.
  115. [] execVM "bon_recruit_units\init.sqf";
  116.  
  117. //weed farms
  118. [] execVM "weedfarms\init.sqf";
  119.  
  120. //DayZ Watermark
  121. if (!isNil "server_name") then {
  122. [] spawn {
  123. waitUntil {(!isNull Player) and (alive Player) and (player == player)};
  124. waituntil {!(isNull (findDisplay 46))};
  125. 5 cutRsc ["wm_disp","PLAIN"];
  126. ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
  127. };
  128. };
  129. endLoadingScreen; // Work around for 2nd Log in hang
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement