Advertisement
Guest User

init.sqf

a guest
Jun 23rd, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 5.69 KB | None | 0 0
  1. dayz_antihack = 0;
  2. dayz_REsec = 0;
  3. /* 
  4.     For DayZ Epoch
  5.     Addons Credits: Jetski Yanahui by Kol9yN, Zakat, Gerasimow9, YuraPetrov, zGuba, A.Karagod, IceBreakr, Sahbazz
  6. */
  7. startLoadingScreen ["","RscDisplayLoadCustom"];
  8. cutText ["","BLACK OUT"];
  9. enableSaving [false, false];
  10.  
  11. //REALLY IMPORTANT VALUES
  12. dayZ_instance = 11;                 //The instance
  13. dayzHiveRequest = [];
  14. initialized = false;
  15. dayz_previousID = 0;
  16.  
  17. // GodModeForBases - added by DY357LX
  18. DZE_GodModeBase = true;
  19. DZE_StaticConstructionCount = 1;
  20.  
  21. //Starting loadout- BIO
  22. DefaultMagazines = ["ItemBandage","ItemBandage","17Rnd_9x19_glock17","17Rnd_9x19_glock17","ItemMorphine","ItemPainkiller","ItemWaterbottleBoiled","FoodSteakCooked"];
  23. DefaultWeapons = ["glock17_EP1","ItemFlashlight","ItemMap","ItemToolbox","ItemHatchet_DZE"];
  24. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  25.  
  26. //disable greeting menu
  27. player setVariable ["BIS_noCoreConversations", true];
  28. //disable radio messages to be heard and shown in the left lower corner of the screen
  29. enableRadio false;
  30. // May prevent "how are you civillian?" messages from NPC
  31. enableSentences false;
  32.  
  33. // DayZ Epoch config
  34. spawnShoremode = 1; // Default = 1 (on shore)
  35. spawnArea= 1500; // Default = 1500
  36.  
  37. // Use the custom loot tables - added by DY357LX - without this
  38. // the Overwatch weapons won't spawn.
  39. DZE_MissionLootTable = true;
  40.  
  41. DZE_BuildingLimit = 450; //BuildingLimit
  42. MaxVehicleLimit = 450; // Default = 50
  43. MaxDynamicDebris = 50; // Default = 100
  44. MaxHeliCrashes= 4; // Default = 5
  45. dayz_MapArea = 14000; // Default = 10000
  46. dayz_maxLocalZombies = 20; // Default = 30
  47. // Added by DY357LX in attempt to remove Zombies.
  48. // dayz_maxNearByZombies = 60;
  49. dayz_maxGlobalZeds = 200;
  50.  
  51. // Remove plot pole requirement - added by DY357LX
  52. DZE_requireplot = 0;
  53.  
  54. // Players spawn in a parachute
  55. dayz_paraSpawn = false;
  56.  
  57. // Players can respawn as zombies if they whilst infected.
  58. DZE_PlayerZed = false;
  59.  
  60. dayz_minpos = -1;
  61. dayz_maxpos = 16000;
  62.  
  63. dayz_sellDistance_vehicle = 20;
  64. dayz_sellDistance_boat = 30;
  65. dayz_sellDistance_air = 40;
  66.  
  67. dayz_maxAnimals = 5; // Default: 8
  68. dayz_tameDogs = true;
  69. DynamicVehicleDamageLow = 0; // Default: 0
  70. DynamicVehicleDamageHigh = 100; // Default: 100
  71.  
  72. // Players can build on the roads.
  73. DZE_BuildOnRoads = true; // Default: False
  74.  
  75. EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",10,"Military"],["any","any","any","any",25,"Treasure"],["any","any","any","any",40,"Supplyitems"],["any","any","any","any",55,"Construction"]];
  76. dayz_fullMoonNights = true;
  77.  
  78. //Load in ORIGINAL compiled functions
  79. //call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";              //ORIGINAL LINE - Initilize the Variables (IMPORTANT: Must happen very early)
  80.  
  81. //Load in NEW compiled functions for Skin Trader mod - added by DY357LX
  82. call compile preprocessFileLineNumbers "custom\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  83. progressLoadingScreen 0.1;
  84. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";             //Initilize the publicVariable event handlers
  85. progressLoadingScreen 0.2;
  86. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";   //Functions used by CLIENT for medical
  87. progressLoadingScreen 0.4;
  88. //calling custom compiles changed from z\addons\dayz_code\init\compiles to the 1 in missions folder - BIO
  89. call compile preprocessFileLineNumbers "compiles.sqf";
  90.                                                        
  91. // Extra line for snap-build mod - added by DY357LX
  92. call compile preprocessFileLineNumbers "custom\compiles.sqf";
  93.  
  94. progressLoadingScreen 0.5;
  95. call compile preprocessFileLineNumbers "server_traders.sqf";                //Compile trader configs
  96. progressLoadingScreen 1.0;
  97.  
  98. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  99.  
  100. if (isServer) then {
  101.     call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\dynamic_vehicle.sqf";
  102.     //Compile vehicle configs
  103.    
  104.     // Add trader citys
  105.     _nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";
  106.     _serverMonitor =    [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  107. };
  108.  
  109. if (!isDedicated) then {
  110.     //Conduct map operations
  111.         // Load the Welcome credits mod - added by DY357LX
  112.         [] execVM "compile\welcome_credits.sqf";
  113.  
  114.         // Service point mod - added by DY357LX
  115.         execVM "service_point\service_point.sqf";
  116.  
  117.     0 fadeSound 0;
  118.     waitUntil {!isNil "dayz_loadScreenMsg"};
  119.     dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  120.  
  121.         // Load custom loadouts
  122.         [] execVM "scripts\custloadout.sqf";
  123.    
  124.     //Run the player monitor
  125.     _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  126.     _playerMonitor =    [] execVM "\z\addons\dayz_code\system\player_monitor.sqf"; 
  127.  
  128.     //Lights
  129.     //[false,12] execVM "\z\addons\dayz_code\compile\local_lights_init.sqf";
  130.  
  131.         // God more for vehicles in trader zones - added by DY357LX
  132.         [] execVM "scripts\safezonevehicle.sqf";
  133.    
  134. };
  135.  
  136. //Start Dynamic Weather
  137. //execVM "\z\addons\dayz_code\external\DynamicWeatherEffects.sqf";
  138.  
  139.  
  140. #include "\z\addons\dayz_code\system\BIS_Effects\init.sqf"
  141.  
  142. // Start trader safezones + anti-backpack theft - added by DY357LX
  143. [] execvm 'AGN\agn_SafeZoneCommander.sqf';
  144.  
  145. // Hero Perks code start - added by DY357LX
  146. herospawn = compile preprocessFileLineNumbers "scripts\heroperk.sqf";
  147. waitUntil {!isNil ("PVDZE_plr_LoginRecord")};
  148. if (dayzPlayerLogin2 select 2) then
  149. {
  150.     player spawn herospawn;
  151. };
  152.  
  153. // Start the lift BTC mod - added by DY357LX
  154. _logistic = execVM "=BTC=_Logistic\=BTC=_Logistic_Init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement