Advertisement
Guest User

init.sqf

a guest
Mar 17th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. startLoadingScreen ["","DayZ_loadingScreen"];
  2. enableSaving [false, false];
  3.  
  4. dayZ_instance = 1294; //The instance
  5. hiveInUse = true;
  6. initialized = false;
  7. dayz_previousID = 0;
  8.  
  9. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; //Initilize the Variables (IMPORTANT: Must happen very early)
  10.  
  11. // (Taviana) Override some of the variables:
  12. call compile preprocessFileLineNumbers "\kh\dayztaviana\init\variables.sqf";
  13.  
  14. // Load in the settings compiles:
  15. call compile preprocessFileLineNumbers "\kh\dayztaviana\settingsinit\kh_compiles.sqf";
  16.  
  17. diag_log "Started executing user settings file.";
  18. call compile preprocessFileLineNumbers "settings.sqf";
  19. diag_log "Finished executing user settings file.";
  20.  
  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.  
  27. // (Taviana) Don't call the regular compile:
  28. // call compile preprocessFileLineNumbers "compiles.sqf"; //Compile regular functions
  29.  
  30. // (Taviana) Instead, call a copy of the DayZ 1.7.4.4 compiles:
  31. call compile preprocessFileLineNumbers "\kh\dayztaviana\init\compiles.sqf"; //Compile regular functions
  32.  
  33. // (Taviana) Set up the for maule multiplayer prop hit support:
  34. call compile preprocessFileLineNumbers "\khr\maule\scripts\maule_init.sqf";
  35. //load hotkey code for admin tools
  36. call compile preprocessFileLineNumbers "debug\Hotkeys.sqf";
  37.  
  38. /*
  39. The Bliss package system works a bit like sticking your arm in a bunch
  40. of snake nests and noticing you don't always get bitten. In this case
  41. we got bitten; this line is to fool the merge process:
  42.  
  43. call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions
  44. */
  45.  
  46. progressLoadingScreen 1.0;
  47.  
  48. player setVariable ["BIS_noCoreConversations", true];
  49. //enableRadio false;
  50.  
  51. "filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
  52. playerstats = compile preprocessFileLineNumbers "debug\playerstats.sqf";
  53. AdminToolsMain = compile preprocessFileLineNumbers "admintools\AdminToolsMain.sqf";
  54.  
  55. if (isServer) then {
  56. hiveInUse = true;
  57. _serverMonitor = [] execVM "\z\addons\dayz_server\system\server_monitor.sqf";
  58. };
  59.  
  60. if (!isDedicated) then {
  61. 0 fadeSound 0;
  62. 0 cutText [(localize "STR_AUTHENTICATING"), "BLACK FADED",60];
  63. _id = player addEventHandler ["Respawn", {_id = [] spawn player_death;}];
  64. _playerMonitor = [] execFSM "admintools\player_monitor.fsm";
  65.  
  66. };
  67.  
  68. // Extra actions for Taviana:
  69. if (!isDedicated) then {
  70. [] execVM "admintools\AdminToolsMain.sqf";
  71.  
  72. };
  73.  
  74. // UPSMON
  75. call compile preprocessFileLineNumbers "addons\UPSMON\scripts\Init_UPSMON.sqf";
  76.  
  77. // SHK
  78. call compile preprocessfile "addons\SHK_pos\shk_pos_init.sqf";
  79.  
  80. // run SAR_AI
  81. [] execVM "addons\SARGE\SAR_AI_init.sqf";
  82.  
  83. };
  84.  
  85. // Extra actions for Taviana:
  86. if (!isDedicated) then {
  87. [] execVM "kh_actions.sqf";
  88. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement