Advertisement
Guest User

Untitled

a guest
Jun 15th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 4.82 KB | None | 0 0
  1. span class="re5"> GTS_Version = 0.8;
  2.  
  3. // Подключение основных параметров сборки.
  4. #include "basic_config.sqf"
  5. #include "basic_defines.hpp"
  6.  
  7. #ifdef DrugsSystem_MOD
  8.     #include "configs\mods\DrugsSystem.sqf";
  9. #endif
  10.  
  11. // Подключение других параметров.
  12. #include "configs\epoch.sqf"
  13. #include "configs\clickActions.sqf"
  14. #include "configs\currency.sqf"
  15. #include "configs\interface.sqf"
  16. #include "configs\weatherGrassVisibility.sqf"
  17. #include "configs\trading.sqf"
  18. #include "configs\building.sqf"
  19. #include "configs\donators.sqf"
  20.  
  21.  
  22. #ifdef VirtualGarage_MOD
  23.     #include "configs\mods\virtualGarage.sqf";
  24. #endif
  25. #ifdef Safezones_MOD
  26.     #include "configs\mods\Safezones.sqf";
  27. #endif
  28. #ifdef AttachZeds_MOD
  29.     #include "configs\mods\AttachZeds.sqf";
  30. #endif
  31.  
  32. #define ADDON(path) call compile preprocessFileLineNumbers ("\z\addons\dayz_code\"+path);
  33. #define SERVER(path) call compile preprocessFileLineNumbers ("\z\addons\dayz_server\"+path);
  34. #define MISSION(path) call compile preprocessFileLineNumbers (path);
  35. #define EXECADD(path) execVM ("\z\addons\dayz_code\"+path);
  36.  
  37.  
  38. enableRadio false;
  39. enableSentences false;
  40.  
  41. dayz_preloadFinished = nil;
  42. onPreloadStarted "diag_log [diag_tickTime,'onPreloadStarted']; dayz_preloadFinished = false;";
  43. onPreloadFinished "diag_log [diag_tickTime,'onPreloadFinished']; dayz_preloadFinished = true;";
  44. with uiNameSpace do { RscDMSLoad = nil };
  45.  
  46. if (!isDedicated) then {
  47.     enableSaving [false, false]; startLoadingScreen ["","RscDisplayLoadCustom"];
  48.     progressLoadingScreen 0;
  49.     dayz_loadScreenMsg = localize 'str_login_missionFile';
  50.     progress_monitor = execVM "custom\system\progress_monitor.sqf";
  51.     0 cutText ['','BLACK',0];
  52.     0 fadeSound 0;
  53.     0 fadeMusic 0;
  54. };
  55.  
  56. initialized = false;
  57. ADDON("init\variables.sqf")
  58. MISSION("custom\init\variables.sqf")
  59. progressLoadingScreen 0.05;
  60. ADDON("init\publicEH.sqf")
  61. progressLoadingScreen 0.1;
  62. ADDON("medical\setup_functions_med.sqf")
  63. progressLoadingScreen 0.15;
  64. ADDON("init\compiles.sqf")
  65. MISSION("custom\init\compiles.sqf")
  66. MISSION("scripts\deploy\init.sqf")
  67. progressLoadingScreen 0.25;
  68. MISSION("server_traders.sqf")
  69. ADDON("system\mission\chernarus11.sqf")
  70. initialized = true;
  71.  
  72. EXECADD("system\DynamicWeatherEffects.sqf")
  73.  
  74. if (isServer) then {
  75.     if (dayz_POIs && (toLower worldName == "chernarus")) then { ADDON("system\mission\chernarus\poi\init.sqf") };
  76.     SERVER("system\dynamic_vehicle.sqf");
  77.     SERVER("system\server_monitor.sqf");
  78.     execVM "\z\addons\dayz_server\traders\chernarus11.sqf"; //Add trader agents
  79.    
  80.     //Get the server to setup what waterholes are going to be infected and then broadcast to everyone.
  81.     if (dayz_infectiousWaterholes && (toLower worldName == "chernarus")) then { EXECADD("system\mission\chernarus\infectiousWaterholes\init.sqf") };
  82.    
  83.     // Lootable objects from CfgTownGeneratorDefault.hpp
  84.     if (dayz_townGenerator) then { EXECADD("system\mission\chernarus\MainLootableObjects.sqf") };
  85. };
  86.  
  87. if (!isDedicated) then {
  88.     if (toLower worldName == "chernarus") then { EXECADD("system\mission\chernarus\hideGlitchObjects.sqf") };
  89.     EXECADD("system\antihack.sqf")
  90.     if (dayz_townGenerator) then { EXECADD("compile\client_plantSpawner.sqf") };
  91.     if (GTS_ESS) then { MISSION("scripts\spawn\init.sqf") };
  92.     execFSM "custom\system\player_monitor.fsm";
  93.         [] execVM "elevator\elevator_init.sqf";
  94.         if (GTS_ServicePoints) then { execVM "scripts\servicePoints\init.sqf"; };
  95.     if (GTS_DZAI) then { MISSION("scripts\DZAI\init_client.sqf") };
  96.     if (DZE_R3F_WEIGHT) then { EXECADD("external\R3F_Realism\R3F_Realism_Init.sqf") };
  97.     MISSION("scripts\ZSC\init.sqf")
  98.    
  99.     if (GTS_ForceColorCorrection) then {
  100.         _hndl = ppEffectCreate ["colorCorrections", 1501];
  101.         _hndl ppEffectEnable true;
  102.         _hndl ppEffectAdjust [1, 1, 0, [0, 0, 0, 0],[0.52, 0.32, 0.3, 1.78],[1.1, 1.09, 0.55, 2.12]];
  103.         _hndl ppEffectCommit 0;
  104.     };
  105.    
  106.     if (GTS_JAEM) then { execVM "scripts\JAEM\EvacChopper_init.sqf"; };
  107.    
  108.     waitUntil {scriptDone progress_monitor};
  109.    
  110.     if (GTS_DebugMonitor) then {
  111.         debugMonitor = true;
  112.         11 cutRsc ["debugMonitor", "PLAIN"];
  113.         execVM "scripts\debugMonitor.sqf";
  114.     };
  115.    
  116.     cutText ["","BLACK IN", 3];
  117.     3 fadeSound 1;
  118.     3 fadeMusic 1;
  119.     endLoadingScreen;
  120. };
  121. if (GTS_Safezones) then { execVM "scripts\safezones.sqf"; };
  122. if (GTS_WalkAmongstTheDead) then { MISSION("scripts\wad\init.sqf") };
  123. if (GTS_HeliGuard) then { execVM "scripts\heliGuard.sqf"; };
  124. if (GTS_SpecialBankLimitForDonators) then { execVM "scripts\donators\bankLimit.sqf"; };
  125. if (GTS_BTCLogistic) then { execVM "scripts\=BTC=_Logistic\init.sqf"; };
  126. if (GTS_TearGas) then { execVM "scripts\tearGas.sqf"; };
  127.  
  128. waitUntil {uiSleep 0.5; !isNil "PVDZ_plr_LoginRecord"};
  129.  
  130. if (GTS_HotkeyHUD) then { 12 cutRsc ["hotkeyHUD", "PLAIN"]; };
  131. uiSleep 1;
  132. {player reveal _x} forEach nearestObjects [getPosATL player, [], 35];
  133.  
  134. ["elevator"] execVM "elevator\elevator_init.sqf";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement