Advertisement
Brord

init.sqf

Feb 19th, 2015
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.15 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 = 1; // 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 = ["ItemBandage","ItemBandage","ItemPainkiller","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag"];  
  57. DefaultWeapons = ["ItemMap"];  
  58. DefaultBackpack = "";  
  59. DefaultBackpackItems = [""];
  60. DZE_defaultSkin = [["Male skin1","Male skin2"],["Female skin1","Female skin2"]];
  61.  
  62. MaxAmmoBoxes = 5; // Max Ammo boxes
  63. MaxMineVeins = 30; // Max Ore Veins
  64.  
  65. dayz_paraSpawn = false;
  66. DZE_LootSpawnTimer = 10;
  67. DZE_vehicleAmmo = 1;
  68. DZE_BackpackGuard = false;
  69.  
  70. OldHeliCrash = true;
  71.  
  72. dayz_minpos = -1;
  73. dayz_maxpos = 16000;
  74.  
  75. //----Sell Distance --------
  76. dayz_sellDistance_vehicle = 20;
  77. dayz_sellDistance_boat = 40;
  78. dayz_sellDistance_air = 50;
  79.  
  80. dayz_maxAnimals = 5; // Default: 8
  81. dayz_tameDogs = true;
  82. DynamicVehicleDamageLow = 0; // Default: 0
  83. DynamicVehicleDamageHigh = 100; // Default: 100
  84.  
  85. DZE_BuildOnRoads = false; // Default: False
  86. DZE_AllowCargoCheck = true;
  87. DZEdebug = false;
  88.  
  89. EpochEvents = [["any","any","any","any",10,"Treasure"],
  90. ["any","any","any","any",20,"supply_drop"],
  91. ["any","any","any","any",15,"Supplyitems"],
  92. ["any","any","any","any",35,"Military"],
  93. ["any","any","any","any",50,"Military"],
  94. ["any","any","any","any",45,"Construction"],
  95. ["any","any","any","any",30,"Treasure"],
  96. ["any","any","any","any",25,"FlyBy"]
  97. ];
  98.  
  99.  
  100. dayz_fullMoonNights = true;
  101.  
  102. //Load in compiled functions
  103. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";                //Initilize the Variables (IMPORTANT: Must happen very early)
  104. call compile preprocessFileLineNumbers "custom\variables.sqf";
  105. progressLoadingScreen 0.1;
  106. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";             //Initilize the publicVariable event handlers
  107. progressLoadingScreen 0.2;
  108. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";   //Functions used by CLIENT for medical
  109. progressLoadingScreen 0.3;
  110. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";         //Compile regular functions
  111. progressLoadingScreen 0.4;
  112. fnc_usec_selfActions = compile preprocessFileLineNumbers "compile\fn_selfActions.sqf";
  113. progressLoadingScreen 0.5;
  114. call compile preprocessFileLineNumbers "custom\player_murderMenu.sqf";
  115. call compile preprocessFileLineNumbers "server_traders.sqf";                //Compile trader configs
  116. progressLoadingScreen 0.6;
  117. call compile preprocessFileLineNumbers "admintools\AdminList.sqf"; // Epoch admin Tools variables/UIDs
  118. progressLoadingScreen 0.7;
  119. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  120. progressLoadingScreen 1.0;
  121.  
  122. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  123.  
  124. if (isServer) then {
  125.     call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  126.     //Compile vehicle configs
  127.    
  128.     // Add trader citys
  129.     _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  130.     _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  131. };
  132.  
  133. if (!isDedicated) then {
  134.    [] execVM "compile\Server_WelcomeCredits.sqf"; //---------------WELCOME MESSAGE----------------
  135.     //Conduct map operations
  136.     0 fadeSound 0;
  137.     waitUntil {!isNil "dayz_loadScreenMsg"};
  138.     dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  139.          execVM "service_point\service_point.sqf";
  140.    
  141.     //Run the player monitor
  142.     _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  143.     _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; 
  144.  
  145.     // Epoch Admin Tools
  146.     if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in ModList)) then
  147.     {
  148.       [] execVM "admintools\antihack\antihack.sqf"; // Epoch Antihack with bypass
  149.     };
  150.  
  151.     //Lights
  152.     //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  153.    
  154.     execVM "custom\kill_msg.sqf";
  155.    
  156.     if (isNil 'debugMonitor') then
  157.     {
  158.         debugMonitor = true;
  159.         _nill = execvm "custom\debug_monitor.sqf";
  160.     };
  161. };
  162.  
  163.  
  164. //Start Dynamic Weather
  165. execVM "custom\DynamicWeatherEffects.sqf";
  166. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  167.  
  168. [] execVM "extras\TestBuildings.sqf";   // Building adding Test
  169. [] execVM "extras\customvybor.sqf";   // Custom Vybor
  170. [] execVM "extras\Balotacustom.sqf";   // Custom balota
  171. [] execVM "extras\capg.sqf";   // Custom Cap Golovo
  172. [] execVM "extras\Bor.sqf";   // Custom Bor Base
  173. [] execVM "extras\Msta.sqf";   // My custom
  174. [] execVM "safezone.sqf";
  175.  
  176. [] execVM "admintools\Activate.sqf"; // Epoch admin tools
  177.  
  178. //Tow and lift
  179. [] execVM "R3F_ARTY_AND_LOG\init.sqf";
  180.  
  181. //custom laodout
  182. [] ExecVM "custom\loadouts.sqf";
  183.  
  184. //block side
  185. [] execVM "custom\player_onSide.sqf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement