Advertisement
Guest User

init.sqf

a guest
Jun 16th, 2013
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 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 = 2679; //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. // Fred's Wardrobe
  33. wardrobe = compile preprocessFileLineNumbers "wardrobe\wardrobe_main.sqf";
  34.  
  35. if ((!isServer) && (isNull player) ) then
  36. {
  37. waitUntil {!isNull player};
  38. waitUntil {time > 3};
  39. };
  40.  
  41. if ((!isServer) && (player != player)) then
  42. {
  43. waitUntil {player == player};
  44. waitUntil {time > 3};
  45. };
  46.  
  47. if (isServer) then {
  48. _serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
  49. "atp" addPublicVariableEventHandler { diag_log format["%1", _this select 1];};
  50. };
  51.  
  52. if (!isDedicated) then {
  53. //Conduct map operations
  54. 0 fadeSound 0;
  55. waitUntil {!isNil "dayz_loadScreenMsg"};
  56. dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
  57.  
  58. //Run the player monitor
  59. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  60. _playerMonitor = [] execVM "\z\addons\dayz_code\system\player_monitor.sqf";
  61. [] execVM "\z\addons\dayz_code\system\antihack.sqf";
  62. };
  63.  
  64. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  65.  
  66. call compile preprocessFileLineNumbers "addons\SHK_pos\shk_pos_init.sqf";
  67.  
  68. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  69.  
  70. [] execVM "Scripts\kh_actions.sqf";
  71.  
  72. //radioplayeryum
  73. [] execVM "radio.sqf";
  74.  
  75. if (isServer) then {
  76. axe_server_lampObjs = compile preprocessFileLineNumbers "lights\fnc_returnLampWS.sqf";
  77. "axeLampObjects" addPublicVariableEventHandler {_id = (_this select 1) spawn axe_server_lampObjs};
  78. };
  79.  
  80. if (!isDedicated) then {
  81. //StreetLights
  82. [] execVM "lights\street_lights.sqf";
  83. };
  84.  
  85. if (!isDedicated) then {
  86. [] execVM "fixes\change_streetlights.sqf";
  87. };
  88.  
  89. if (!isDedicated) then {
  90. //TowerLights
  91. [] execVM "lights\tower_lights.sqf";
  92. };
  93.  
  94. // Fred's Wardrobe
  95. [] execVM "wardrobe\wardrobe_activate.sqf";
  96.  
  97. execVM "carradio\initCarRadio.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement