//-----------------------------------------------------------------------------
// Torque Game Engine
// 
// Copyright (c) 2001 GarageGames.Com
//-----------------------------------------------------------------------------
// The master server is declared with the server defaults, which is
// loaded on both clients & dedicated servers.  If the server mod
// is not loaded on a client, then the master must be defined. 
//$pref::Master[0] = "2:v12master.dyndns.org:28002";
$pref::highScoreName = "Alex";
$pref::Player::Name = "Alex";
$pref::Player::defaultFov = 90;
$pref::Player::zoomSpeed = 0;
$pref::Net::LagThreshold = 400;
$pref::shadows = "2";
$pref::HudMessageLogSize = 40;
$pref::ChatHudLength = 1;
$pref::useStencilShadows = true;
$pref::forceDirectConnect = false;
$pref::ForceSecretMode = false;
$Pref::DisableSecretMode = false;
$pref::Input::LinkMouseSensitivity = 1;
// DInput keyboard, mouse, and joystick prefs
$pref::displayMPHelpText = false;
$pref::Input::KeyboardEnabled = 1;
$pref::Input::MouseEnabled = 1;
$pref::Input::JoystickEnabled = 0;
$pref::Input::KeyboardTurnSpeed = 0.025;
$pref::Input::MouseSensitivity = 0.005;
$pref::Input::InvertYAxis = false;
$pref::Input::AlwaysFreeLook = false;
$pref::Input::AnalogRange = 0;
$pref::Input::AutoCenterCamera = true;
$pref::Input::HorizontalDeadZone = 0.25;
$pref::Input::VerticalDeadZone = 0.7;
$pref::Input::CameraAccelSpeed = 0.05;
$pref::Input::CameraSensitivityHorizontal = 0.7;
$pref::Input::CameraSensitivityVertical = 0.8;
$pref::Input::DeadZoneL = 0.24;
$pref::Input::DeadZoneR = 0.24;
$pref::Input::DeadZoneLT = 0;
$pref::Input::DeadZoneRT = 0;
$pref::sceneLighting::cacheSize = 20000;
$pref::sceneLighting::purgeMethod = "lastCreated";
$pref::sceneLighting::cacheLighting = 1;
$pref::sceneLighting::terrainGenerateLevel = 1;
$pref::Terrain::DynamicLights = 1;
$pref::Interior::TexturedFog = 0;
// Note: folowing moved to example/main.cs because of moved canvas init
//$pref::Video::displayDevice = "D3D";
//$pref::Video::allowOpenGL = 1;
//$pref::Video::allowD3D = 1;
//$pref::Video::preferOpenGL = 1;
//$pref::Video::appliedPref = 0;
//$pref::Video::disableVerticalSync = 1;
//$pref::Video::monitorNum = 0;
//$pref::Video::resolution = "800 600 32";
//$pref::Video::wideScreen = false;
//$pref::Video::windowedRes = "1280 720";
//$pref::Video::fullScreen = "0";
$pref::OpenGL::force16BitTexture = "0";
$pref::OpenGL::forcePalettedTexture = "0";
$pref::OpenGL::maxHardwareLights = 3;
$pref::VisibleDistanceMod = 1.0;
$pref::Lobby::InviteVisibility = true;
$pref::Lobby::StreamerMode = false;
$pref::Player::UsingCustomName = false;

/// The sound provider to select at startup.  Typically
/// this is DirectSound, OpenAL, or XACT.  There is also 
/// a special Null provider which acts normally, but 
/// plays no sound.
$pref::SFX::provider = "";

/// The sound device to select from the provider.  Each
/// provider may have several different devices.
$pref::SFX::device = "";

/// If true the device will try to use hardware buffers
/// and sound mixing.  If not it will use software.
$pref::SFX::useHardware = false;

/// If you have a software device you have a 
/// choice of how many software buffers to
/// allow at any one time.  More buffers cost
/// more CPU time to process and mix.
$pref::SFX::maxSoftwareBuffers = 16;

/// This is the playback frequency for the primary 
/// sound buffer used for mixing.  Although most
/// providers will reformat on the fly, for best 
/// quality and performance match your sound files
/// to this setting.
$pref::SFX::frequency = 44100;

/// This is the playback bitrate for the primary 
/// sound buffer used for mixing.  Although most
/// providers will reformat on the fly, for best 
/// quality and performance match your sound files
/// to this setting.
$pref::SFX::bitrate = 32;

/// The overall system volume at startup.  Note that 
/// you can only scale volume down, volume does not
/// get louder than 1.
$pref::SFX::masterVolume   = 1.0;

/// The startup sound channel volumes.  These are 
/// used to control the overall volume of different 
/// classes of sounds.
$pref::SFX::channelVolume1 = 1.0;
$pref::SFX::channelVolume2 = 0.7;
$pref::SFX::channelVolume3 = 0.8;
$pref::SFX::channelVolume4 = 0.8;
$pref::SFX::channelVolume5 = 0.8;
$pref::SFX::channelVolume6 = 0.8;
$pref::SFX::channelVolume7 = 0.8;
$pref::SFX::channelVolume8 = 0.8;

$pref::Client::AutoStart = true;
$Client::AutoStartMission = "marble/data/missions/intermediate/urban/urban.mis";
$Client::AutoStartMissionIndex = 21;

$Client::MatchMode = 0; // standard, 1 = ranked
$Client::UseXBLiveMatchMaking = !isPCBuild();
//$Client::UseXBLiveMatchMaking = false;
$Option::DefaultMusicVolume = 35;
$Option::DefaultFXVolume = 100;
$pref::Option::MusicVolume = $Option::DefaultMusicVolume;
$pref::Option::FXVolume = $Option::DefaultFXVolume;

$Shell::gameModeFilter = 0; // currently not possible to wildcard game mode
$Shell::maxPlayersFilter = -1;

$Demo::DefaultStartingTime = 7 * 60 * 1000; // 7 minutes
$Demo::TimeRemaining = $Demo::DefaultStartingTime; 
//$Demo::TimeRemaining = 10 * 1000; // 10 seconds for testing

$Client::gracePeroidMS = 45 * 1000; // 45 seconds?

$pref::DoNewHighScoreSFX = false;

if (!isPCBuild() && !$Client::UseXBLiveMatchMaking)
{
   // if we aren't using live matchmaking, force the live sign in functions to return true 
   eval("function XBLiveIsSignedInGold() { return true; }");
   eval("function XBLiveIsSignedInSilver() { return true; }");
}