Advertisement
secondcoming

ExileClient_system_process_postInit.sqf

Apr 21st, 2016
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.89 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["_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.         [] call ExileClient_system_moon_initialize;
  22.         [] call ExileClient_gui_hud_initialize;
  23.         [15, ExileClient_gui_hud_thread_survivalInfo, [], true] call ExileClient_system_thread_addtask;
  24.         [1, ExileClient_gui_hud_thread_update, [], true] call ExileClient_system_thread_addtask;
  25.         [] call ExileClient_object_fireFlies_initialize;
  26.         [] call ExileClient_object_anomaly_initialize;
  27.         [] call ExileClient_system_radiation_initialize;
  28.         if( isServer ) then
  29.         {
  30.             if( hasInterface && !isMultiplayer ) then
  31.             {
  32.                 "Editor PostInit..." call ExileClient_util_log;
  33.                 [] call ExileClient_util_debug_editor;
  34.                 true call ExileClient_gui_hud_toggle;
  35.             };     
  36.         };
  37.         if (!isServer) then
  38.         {
  39.             "Client PostInit..." call ExileClient_util_log;
  40.             [] call ExileClient_system_music_initialize;
  41.             //[0.5, ExileClient_object_player_von_checkVon, [], true] call ExileClient_system_thread_addtask;
  42.             [0.25, ExileClient_object_player_stats_update, [], true] call ExileClient_system_thread_addtask;
  43.             [5, ExileClient_object_player_safezone_checkSafezone, [], true] call ExileClient_system_thread_addtask;
  44.             [300, ExileClient_object_player_save, [], true] call ExileClient_system_thread_addtask;
  45.             _spawnInterval = getNumber (missionConfigFile >> "CfgExileLootSettings" >> "spawnInterval");
  46.             [_spawnInterval, ExileClient_system_lootManager_thread_spawn, [], true] call ExileClient_system_thread_addtask;
  47.         };
  48.     };
  49. };
  50. true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement