Advertisement
Guest User

Untitled

a guest
Aug 19th, 2013
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. /*
  2. INITILIZATION
  3. */
  4. startLoadingScreen ["","RscDisplayLoadCustom"];
  5. cutText ["","BLACK OUT"];
  6. enableSaving [false, false];
  7.  
  8. //REALLY IMPORTANT VALUES
  9. dayZ_instance = 1; //The instance
  10. dayzHiveRequest = [];
  11. initialized = false;
  12. dayz_previousID = 0;
  13.  
  14. //disable greeting menu
  15. player setVariable ["BIS_noCoreConversations", true];
  16. //disable radio messages to be heard and shown in the left lower corner of the screen
  17. enableRadio true;
  18. DZE_DeathMsgGlobal = true;
  19.  
  20. // DayZ Epoch config
  21. spawnShoremode = 1; // Default = 1 (on shore)
  22. spawnArea= 1500; // Default = 1500
  23. MaxHeliCrashes= 10; // Default = 5
  24. MaxVehicleLimit = 999; // Default = 50
  25. MaxDynamicDebris = 100; // Default = 500
  26. dayz_MapArea = 14000; // Default = 10000
  27. dayz_maxLocalZombies = 15; // Default = 40
  28. dayz_fullMoonNights = true; // Full moon
  29. dayz_tameDogs = true; // Tame dogs
  30. dayz_zedsAttackVehicles = false;
  31.  
  32. DefaultMagazines = ["ItemBandage","ItemMorphine","ItemPainkiller","FoodCanBakedBeans","ItemWaterbottle","ItemAntibiotic"];
  33. DefaultWeapons = ["ItemMachete","ItemEtool"];
  34. DefaultBackpack = "DZ_Patrol_Pack_EP1";
  35. DefaultBackpackWeapon = "";
  36.  
  37. //Load in compiled functions
  38. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  39. progressLoadingScreen 0.1;
  40. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  41. progressLoadingScreen 0.2;
  42. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  43. progressLoadingScreen 0.4;
  44. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  45. progressLoadingScreen 0.5;
  46. call compile preprocessFileLineNumbers "server_traders.sqf"; //Compile trader configs
  47. call compile preprocessFileLineNumbers "custom\compiles.sqf"; //Compile custom compiles
  48. progressLoadingScreen 1.0;
  49.  
  50. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  51.  
  52. if ((!isServer) && (isNull player) ) then
  53. {
  54. waitUntil {!isNull player};
  55. waitUntil {time > 3};
  56. };
  57.  
  58. if ((!isServer) && (player != player)) then
  59. {
  60. waitUntil {player == player};
  61. waitUntil {time > 3};
  62. };
  63.  
  64. if (isServer) then {
  65. call compile preprocessFileLineNumbers "dynamic_vehicle.sqf"; //Compile vehicle configs
  66. call compile preprocessFileLineNumbers "custom\variables.sqf";
  67.  
  68. // Add trader citys
  69. _nil = [] execVM "mission.sqf";
  70. [] execVM "custom\mission\faction.sqf";
  71. [] execVM "custom\mapedits\chenaid.sqf";
  72. [] execVM "custom\mapedits\camp_rocket.sqf";
  73. [] execVM "custom\mapedits\kamybase.sqf";
  74. [] execVM "custom\mapedits\neaf.sqf";
  75. [] execVM "custom\mapedits\zubmanor.sqf";
  76. [] execVM "custom\mapedits\assorted.sqf";
  77. [] execVM "custom\mapedits\excelsiorbridge.sqf";
  78. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  79.  
  80. // UPSMON
  81. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  82.  
  83. // SHK
  84. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  85.  
  86. // run SAR_AI
  87. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  88. };
  89.  
  90. if (!isDedicated) then {
  91. //Conduct map operations
  92. 0 fadeSound 0;
  93. waitUntil {!isNil "dayz_loadScreenMsg"};
  94. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  95.  
  96. //Run the player monitor
  97. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  98. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  99. [] execVM "DamiMods\Adminz\functions.sqf";
  100. _void = [] execVM "R3F_Realism\R3F_Realism_Init.sqf";
  101. [] execVM "custom\safezone\safezone.sqf";
  102. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement