Advertisement
Brord

init.sqf

Feb 19th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.90 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. DZE_R3F_WEIGHT = false;
  15.  
  16. //disable greeting menu a
  17. player setVariable ["BIS_noCoreConversations", true];
  18. //disable radio messages to be heard and shown in the left lower corner of the screen
  19. enableRadio true;
  20. // May prevent "how are you civillian?" messages from NPC
  21. enableSentences true;
  22.  
  23. // DayZ Epoch config
  24. spawnShoremode = 0; // Default = 1 (on shore)
  25. spawnArea= 1500; // Default = 1500
  26.  
  27. MaxVehicleLimit = 50; // Default = 50
  28. MaxDynamicDebris = 90; // Default = 100
  29.  
  30. DynamicVehicleDamageHigh = 100;
  31. DynamicVehicleDamageLow = 10; // Default: 0
  32.  
  33. DynamicVehicleFuelLow = 0;
  34. DynamicVehicleFuelHigh = 100;
  35.  
  36. dayz_MapArea = 14000; // Default = 10000
  37. dayz_maxLocalZombies = 20; // Default = 30
  38. DZE_BuildingLimit = 300;
  39. DZE_ForceNameTagsInTrader = true;
  40. DZE_HumanityTargetDistance = 25;
  41. DZE_FriendlySaving = true;
  42.  
  43. //---Self BB--------
  44. DZE_selfTransfuse = true;
  45. DZE_selfTransfuse_Values = [6000, 10, 600];
  46.  
  47. //-----Death Messages------
  48. DZE_DeathMsgGlobal = true;
  49. DZE_DeathMsgSide = true;
  50. DZE_DeathMsgTitleText = true;
  51.  
  52. DZE_PlayerZed = false;  //--------Spawn as Zombie
  53. DZE_MissionLootTable = true; //------ High Loot
  54.  
  55. //Customize fresh spawn loadout
  56. DefaultMagazines = [];  
  57. DefaultWeapons = [];  
  58. DefaultBackpack = "";  
  59. DZE_defaultSkin = [["Male skin1","Male skin2"],["Female skin1","Female skin2"]];
  60.  
  61. MaxAmmoBoxes = 5; // Max Ammo boxes
  62. MaxMineVeins = 30; // Max Ore Veins
  63.  
  64. dayz_paraSpawn = false;
  65. DZE_LootSpawnTimer = 10;
  66. DZE_vehicleAmmo = 1;
  67. DZE_BackpackGuard = false;
  68.  
  69. OldHeliCrash = true;
  70.  
  71. dayz_minpos = -1;
  72. dayz_maxpos = 16000;
  73.  
  74. //----Sell Distance --------
  75. dayz_sellDistance_vehicle = 20;
  76. dayz_sellDistance_boat = 40;
  77. dayz_sellDistance_air = 50;
  78.  
  79. dayz_maxAnimals = 5; // Default: 8
  80. dayz_tameDogs = true;
  81. DynamicVehicleDamageLow = 0; // Default: 0
  82. DynamicVehicleDamageHigh = 100; // Default: 100
  83.  
  84. DZE_BuildOnRoads = false; // Default: False
  85. DZE_AllowCargoCheck = true;
  86. DZEdebug = false;
  87.  
  88. EpochEvents = [["any","any","any","any",10,"Treasure"],
  89. ["any","any","any","any",20,"supply_drop"],
  90. ["any","any","any","any",15,"Supplyitems"],
  91. ["any","any","any","any",35,"Military"],
  92. ["any","any","any","any",50,"Military"],
  93. ["any","any","any","any",45,"Construction"],
  94. ["any","any","any","any",30,"Treasure"],
  95. ["any","any","any","any",25,"FlyBy"]
  96. ];
  97.  
  98.  
  99. dayz_fullMoonNights = true;
  100.  
  101. //Load in compiled functions
  102. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
  103. call compile preprocessFileLineNumbers "custom\variables.sqf";
  104. progressLoadingScreen 0.1;
  105. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";             //Initilize the publicVariable event handlers
  106. progressLoadingScreen 0.2;
  107. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";   //Functions used by CLIENT for medical
  108. progressLoadingScreen 0.3;
  109. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";         //Compile regular functions
  110. progressLoadingScreen 0.4;
  111. fnc_usec_selfActions = compile preprocessFileLineNumbers "compile\fn_selfActions.sqf";
  112. progressLoadingScreen 0.5;
  113. call compile preprocessFileLineNumbers "custom\player_murderMenu.sqf";
  114. call compile preprocessFileLineNumbers "server_traders.sqf";                //Compile trader configs
  115. progressLoadingScreen 0.6;
  116. call compile preprocessFileLineNumbers "admintools\AdminList.sqf"; // Epoch admin Tools variables/UIDs
  117. progressLoadingScreen 0.7;
  118. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  119. progressLoadingScreen 1.0;
  120.  
  121. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  122.  
  123. if (isServer) then {
  124.     call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  125.     //Compile vehicle configs
  126.    
  127.     // Add trader citys
  128.     _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  129.     _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  130. };
  131.  
  132. if (!isDedicated) then {
  133.    [] execVM "compile\Server_WelcomeCredits.sqf"; //---------------WELCOME MESSAGE----------------
  134.     //Conduct map operations
  135.     0 fadeSound 0;
  136.     waitUntil {!isNil "dayz_loadScreenMsg"};
  137.     dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  138.          execVM "service_point\service_point.sqf";
  139.    
  140.     //Run the player monitor
  141.     _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  142.     _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; 
  143.  
  144.     // Epoch Admin Tools
  145.     if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList)) then
  146.     {
  147.       [] execVM "admintools\antihack\antihack.sqf"; // Epoch Antihack with bypass
  148.     };
  149.  
  150.     //Lights
  151.     //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  152.    
  153.     execVM "custom\kill_msg.sqf";
  154.    
  155.     if (isNil 'debugMonitor') then
  156.     {
  157.         debugMonitor = true;
  158.         _nill = execvm "custom\debug_monitor.sqf";
  159.     };
  160. };
  161.  
  162.  
  163. //Start Dynamic Weather
  164. execVM "custom\DynamicWeatherEffects.sqf";
  165. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  166.  
  167. [] execVM "extras\TestBuildings.sqf";   // Building adding Test
  168. [] execVM "extras\customvybor.sqf";   // Custom Vybor
  169. [] execVM "extras\Balotacustom.sqf";   // Custom balota
  170. [] execVM "extras\capg.sqf";   // Custom Cap Golovo
  171. [] execVM "extras\Bor.sqf";   // Custom Bor Base
  172. [] execVM "extras\Msta.sqf";   // My custom
  173. [] execVM "safezone.sqf";
  174.  
  175. [] execVM "admintools\Activate.sqf"; // Epoch admin tools
  176.  
  177. //Tow and lift
  178. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement