Initialize rest of stuff
| 1902 | |
| 1903 | // Initialize rest of stuff |
| 1904 | void InitD3Systems2(bool editor) { |
| 1905 | // Initialize In-Game Cinematics system |
| 1906 | Cinematic_Init(); |
| 1907 | |
| 1908 | // initialize slewing |
| 1909 | #ifdef EDITOR |
| 1910 | SlewControlInit(); |
| 1911 | #endif |
| 1912 | |
| 1913 | int tables_loaded = 0; |
| 1914 | |
| 1915 | // load in all data headers. |
| 1916 | INIT_MESSAGE((TXT_INITDATA)); |
| 1917 | tables_loaded = mng_LoadTableFiles(!editor); |
| 1918 | |
| 1919 | if (!tables_loaded) |
| 1920 | Error("Cannot load table file."); |
| 1921 | |
| 1922 | INIT_MESSAGE((TXT_INITCOLLATING)); |
| 1923 | |
| 1924 | // Initialize the pilot system |
| 1925 | PilotInit(); |
| 1926 | |
| 1927 | // Setup our object system. By object I mean stuff in our world, not those silly C++ things. |
| 1928 | // This call must come after InitTableFiles(), so we have a player ship for the user |
| 1929 | InitObjects(); |
| 1930 | |
| 1931 | // Fireball initting must come after LoadTableFiles |
| 1932 | SetInitMessageLength(TXT_INITCOLLATING, 0.1f); |
| 1933 | InitFireballs(); |
| 1934 | UpdateInitMessage(1.0f); |
| 1935 | |
| 1936 | // initializes triggers |
| 1937 | InitTriggers(); |
| 1938 | |
| 1939 | // the remaining sound system |
| 1940 | InitVoices(); |
| 1941 | InitD3Music(FindArg("-nomusic") ? false : true); |
| 1942 | InitAmbientSoundSystem(); |
| 1943 | |
| 1944 | InitGameSystems(editor); |
| 1945 | |
| 1946 | InitPlayers(); |
| 1947 | |
| 1948 | SetInitMessageLength(TXT_INITCOLLATING, 0.5f); |
| 1949 | InitMarkers(); |
| 1950 | UpdateInitMessage(1.0f); |
| 1951 | |
| 1952 | PPic_InitDatabase(); |
| 1953 | |
| 1954 | // Set next logical function for game. |
| 1955 | if (editor) |
| 1956 | SetFunctionMode(EDITOR_MODE); |
| 1957 | else |
| 1958 | SetFunctionMode(MENU_MODE); |
| 1959 | |
| 1960 | if (Dedicated_server) |
| 1961 | InitDedicatedServer(); |
no test coverage detected