Advertisement
Guest User

Untitled

a guest
Feb 7th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 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.  
  18. //Load in compiled functions
  19. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  20. progressLoadingScreen 0.1;
  21. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf"; //Initilize the publicVariable event handlers
  22. progressLoadingScreen 0.2;
  23. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf"; //Functions used by CLIENT for medical
  24. progressLoadingScreen 0.4;
  25. call compile preprocessFileLineNumbers "compiles.sqf"; //Compile regular functions
  26. progressLoadingScreen 1.0;
  27. spawn_loot = compile preprocessFileLineNumbers "spawn_loot.sqf";
  28. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  29.  
  30. if ((!isServer) && (isNull player) ) then
  31. {
  32. waitUntil {!isNull player};
  33. waitUntil {time > 3};
  34. };
  35.  
  36. if ((!isServer) && (player != player)) then
  37. {
  38. waitUntil {player == player};
  39. waitUntil {time > 3};
  40. };
  41.  
  42. if (isServer) then {
  43. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  44. };
  45.  
  46. if (!isDedicated) then {
  47. //Conduct map operations
  48. 0 fadeSound 0;
  49. waitUntil {!isNil "dayz_loadScreenMsg"};
  50. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  51.  
  52. //Run the player monitor
  53. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  54. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  55. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement