Guest User

Init.sqf

a guest
Aug 17th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. // Mission Initialization
  2. startLoadingScreen ["", "RscDisplayLoadCustom"];
  3. cutText ["", "BLACK OUT"];
  4. enableSaving [false, false];
  5.  
  6. // Variable Initialization
  7. dayZ_instance = 1;
  8. //dayZ_serverName = "31337"; // server name (country code + server number)
  9. hiveInUse = true;
  10. dayzHiveRequest = [];
  11. initialized = false;
  12. dayz_previousID = 0;
  13.  
  14. // Settings
  15. player setVariable ["BIS_noCoreConversations", true]; // Disable greeting menu
  16. //enableRadio false; // Disable global chat radio messages
  17.  
  18. // Compile and call important functions
  19. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
  20. progressLoadingScreen 0.1;
  21. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";
  22. progressLoadingScreen 0.2;
  23. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";
  24. progressLoadingScreen 0.4;
  25. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";
  26. progressLoadingScreen 1.0;
  27.  
  28. // Set Tonemapping
  29. "Filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4];
  30. setToneMapping "Filmic";
  31.  
  32. BIS_Effects_startEvent = {
  33. switch (_this select 0) do {
  34. case "AirDestruction": {
  35. [_this select 1] spawn BIS_Effects_AirDestruction;
  36. };
  37. case "AirDestructionStage2": {
  38. [_this select 1, _this select 2, _this select 3] spawn BIS_Effects_AirDestructionStage2;
  39. };
  40. case "Burn": {
  41. [_this select 1, _this select 2, _this select 3, false, true] spawn BIS_Effects_Burn;
  42. };
  43. };
  44. };
  45.  
  46. "BIS_effects_gepv" addPublicVariableEventHandler {
  47. (_this select 1) call BIS_Effects_startEvent;
  48. };
  49.  
  50. if ((!isServer) && (isNull player) ) then
  51. {
  52. waitUntil {!isNull player};
  53. waitUntil {time > 3};
  54. };
  55.  
  56. if ((!isServer) && (player != player)) then
  57. {
  58. waitUntil {player == player};
  59. waitUntil {time > 3};
  60. };
  61.  
  62. // Run the server monitor
  63. if ((!isServer) && (isNull player) ) then
  64. {
  65. waitUntil {!isNull player};
  66. waitUntil {time > 3};
  67. };
  68.  
  69. if ((!isServer) && (player != player)) then
  70. {
  71. waitUntil {player == player};
  72. waitUntil {time > 3};
  73. };
  74.  
  75. if (isServer) then {
  76. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  77. // "PVDZ_sec_atp" addPublicVariableEventHandler { diag_log format["%1", _this select 1];};
  78. };
  79.  
  80. // Run the player monitor
  81. if (!isDedicated) then {
  82. //Conduct map operations
  83. 0 fadeSound 0;
  84. waitUntil {!isNil "dayz_loadScreenMsg"};
  85. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  86.  
  87. //Run the player monitor
  88. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  89. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  90. // [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  91. };
  92.  
  93. // UPSMON
  94. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  95. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  96. [] execVM "addons\SARGE\SAR_AI_init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment