Advertisement
Guest User

init.sqf

a guest
Jun 14th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. INITILIZATION
  3. */
  4. startLoadingScreen ["","RscDisplayLoadCustom"];
  5. cutText ["","BLACK OUT"];
  6. enableSaving [false, false];
  7.  
  8. //REALLY IMPORTANT VALUES
  9. dayZ_instance =1819; //The instance
  10. //dayZ_serverName="UK999"; // server name (country code + server number)
  11. dayzHiveRequest = [];
  12. initialized = false;
  13. dayz_previousID = 0;
  14.  
  15. //disable greeting menu
  16. player setVariable ["BIS_noCoreConversations", true];
  17. //disable radio messages to be heard and shown in the left lower corner of the screen
  18. //enableRadio false;
  19.  
  20. //Load in compiled functions
  21. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";//Initilize the Variables (IMPORTANT: Must happen very early)
  22. progressLoadingScreen 0.1;
  23. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";//Initilize the publicVariable event handlers
  24. progressLoadingScreen 0.2;
  25. call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";//Functions used by CLIENT for medical
  26. progressLoadingScreen 0.4;
  27. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf";//Compile regular functions
  28. progressLoadingScreen 1.0;
  29.  
  30. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  31.  
  32. if ((!isServer) && (isNull player) ) then
  33. {
  34. waitUntil {!isNull player};
  35. waitUntil {time > 3};
  36. };
  37.  
  38. if ((!isServer) && (player != player)) then
  39. {
  40. waitUntil {player == player};
  41. waitUntil {time > 3};
  42. };
  43.  
  44. if (isServer) then {
  45. _serverMonitor =[] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  46. "atp"addPublicVariableEventHandler { diag_log format["%1", _this select 1];};
  47. };
  48.  
  49. if (!isDedicated) then { //Install new scripts in here
  50. //Conduct map operations
  51. 0 fadeSound 0;
  52. waitUntil {!isNil "dayz_loadScreenMsg"};
  53. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  54.  
  55. //Run the player monitor
  56. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  57. _playerMonitor =[] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  58. [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  59. [] execVM "Scripts\kh_actions.sqf";
  60. };
  61.  
  62. [] ExecVM "Lopatino.sqf"; //Renegade Lopatino base
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement