Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Torque::onStart(%this)
- {
- Parent::onStart(%this);
- exec("art/core/gui/profiles.cs");
- exec( "./client/defaults.cs" );
- exec( "./server/defaults.cs" );
- $ScriptGroup = new SimGroup(ScriptClassGroup);
- // Build the mission listing for server and client
- echo("----- Adding missions to list -----");
- %this.buildMissionList();
- // Initialise stuff.
- exec("scripts/client/core.cs");
- %this.initializeCore();
- echo(" % - Initialized Core");
- echo("\n--------- Initializing Directory: scripts ---------");
- // Load the scripts that start it all...
- exec("./client/init.cs");
- //exec("./server/init.cs");
- // Init the physics plugin.
- physicsInit();
- // Start up the audio system.
- sfxStartup();
- exec("scripts/client/core.cs");
- exec("scripts/server/coreserver.cs");
- exec("./gui/guiTreeViewCtrl.cs");
- exec("./gui/messageBoxes/messageBox.ed.cs");
- // Server gets loaded for all sessions, since clients
- // can host in-game servers.
- %this.initServer();
- // Start up in either client, or dedicated server mode
- if ( $isDedicated || $pref::Server::Dedicated )
- {
- tge.initDedicated();
- }
- else
- tge.initClient();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement