Advertisement
Guest User

mission/init

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