Advertisement
Guest User

init.sqf

a guest
Jan 11th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. startLoadingScreen ["","DayZ_loadingScreen"];
  2. /*
  3. INITILIZATION
  4. */
  5. enableSaving [false, false];
  6.  
  7. //REALLY IMPORTANT VALUES
  8. dayZ_hivePipe1 = "\\.\pipe\dayz"; //The named pipe
  9. dayZ_instance = 1; //The instance
  10. hiveInUse = true;
  11. dayzHiveRequest = [];
  12. initialized = false;
  13. dayz_previousID = 0;
  14.  
  15. //Load in compiled functions
  16. call compile preprocessFileLineNumbers "fixes\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  17. progressLoadingScreen 0.1;
  18. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  19. progressLoadingScreen 0.2;
  20. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  21. progressLoadingScreen 0.4;
  22. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  23. progressLoadingScreen 1.0;
  24.  
  25. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  26.  
  27. player_spawn_2 = compile preprocessFileLineNumbers "fixes\player_spawn_2.sqf";
  28.  
  29. if ((!isServer) && (isNull player) ) then
  30. {
  31. waitUntil {!isNull player};
  32. waitUntil {time > 3};
  33. };
  34.  
  35. if ((!isServer) && (player != player)) then
  36. {
  37. waitUntil {player == player};
  38. waitUntil {time > 3};
  39. };
  40.  
  41. if (isServer) then {
  42. //Run the server monitor
  43. //_id = ["Volha_1_TK_CIV_EP1",getMarkerPos "carloc",0] spawn object_spawnDamVehicle;
  44. hiveInUse = true;
  45. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  46. };
  47.  
  48. if (!isDedicated) then {
  49. //Conduct map operations
  50. 0 fadeSound 0;
  51. 0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED",60];
  52.  
  53. //Run the player monitor
  54. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  55. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  56. waituntil{_cnt=count allMissionObjects "UH1Wreck_DZ";_cnt==5};
  57. _heliCrash = allmissionobjects "UH1Wreck_DZ";
  58. {
  59. dayzFire = [_x,2,0,false,false];
  60. nul=dayzFire spawn BIS_Effects_Burn;
  61. } forEach _heliCrash;
  62. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement