Advertisement
Guest User

ExileClient_system_process_postInit.sqf

a guest
Jun 12th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.87 KB | None | 0 0
  1. /**
  2.  * ExileClient_system_process_postInit
  3.  *
  4.  * Exile Mod
  5.  * www.exilemod.com
  6.  * © 2015 Exile Mod Team
  7.  *
  8.  * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
  9.  * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
  10.  */
  11.  
  12. private["_shift", "_spawnInterval"];
  13. if (missionName isEqualTo "ExileIntro") then
  14. {
  15.     "Intro PostInit..." call ExileClient_util_log;
  16. }
  17. else
  18. {
  19.     if (hasInterface) then
  20.     {
  21.         onMapSingleClick {_shift};
  22.         [] call ExileClient_system_moon_initialize;
  23.         [] call ExileClient_gui_hud_initialize;
  24.         [15, ExileClient_gui_hud_thread_survivalInfo, [], true] call ExileClient_system_thread_addtask;
  25.         [1, ExileClient_gui_hud_thread_update, [], true] call ExileClient_system_thread_addtask;
  26.         [] call ExileClient_system_map_initialize;
  27.         [] call ExileClient_object_fireFlies_initialize;
  28.         [] call ExileClient_object_anomaly_initialize;
  29.         [] call ExileClient_system_radiation_initialize;
  30.         [] call ExileClient_system_animal_initialize;
  31.         [] call ExileClient_gui_clan_initialize;
  32.         if( isServer ) then
  33.         {
  34.             if( !isMultiplayer ) then
  35.             {
  36.                 "Editor PostInit..." call ExileClient_util_log;
  37.                 true call ExileClient_gui_hud_toggle;
  38.             };     
  39.         };
  40.         if (!isServer) then
  41.         {
  42.             "Client PostInit..." call ExileClient_util_log;
  43.             [] call ExileClient_system_music_initialize;
  44.             [0.5, ExileClient_object_player_von_checkVon, [], true] call ExileClient_system_thread_addtask;
  45.             [0.25, ExileClient_object_player_stats_update, [], true] call ExileClient_system_thread_addtask;
  46.             [5, ExileClient_object_player_safezone_checkSafezone, [], true] call ExileClient_system_thread_addtask;
  47.             [300, ExileClient_object_player_save, [], true] call ExileClient_system_thread_addtask;
  48.             _spawnInterval = getNumber (missionConfigFile >> "CfgExileLootSettings" >> "spawnInterval");
  49.             [_spawnInterval, ExileClient_system_lootManager_thread_spawn, [], true] call ExileClient_system_thread_addtask;
  50.             if (getNumber(missionConfigFile >> "CfgSimulation" >> "enableDynamicSimulation") isEqualTo 1) then
  51.             {
  52.                 enableDynamicSimulationSystem true;
  53.                 "Group" setDynamicSimulationDistance (getNumber(missionConfigFile >> "CfgSimulation" >> "groupSimulationDistance"));
  54.                 "Vehicle" setDynamicSimulationDistance (getNumber(missionConfigFile >> "CfgSimulation" >> "vehicleSimulationDistance"));
  55.                 "EmptyVehicle" setDynamicSimulationDistance (getNumber(missionConfigFile >> "CfgSimulation" >> "emptyVehicleSimulationDistance"));
  56.                 "Prop" setDynamicSimulationDistance (getNumber(missionConfigFile >> "CfgSimulation" >> "propSimulationDistance"));
  57.                 "IsMoving" setDynamicSimulationDistanceCoef (getNumber(missionConfigFile >> "CfgSimulation" >> "isMovingSimulationCoef"));
  58.             };
  59.         };
  60.         true call ExileClient_gui_toaster_toggle;
  61.         true call ExileClient_gui_baguette_toggle;
  62.     };
  63. };
  64. true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement