

///////////////////////////////////////EXAMPLE UPGRADES/////////////////////////////////////////////////////////////////////////////////
///   
///   UpgradeType="PARTS"               //Type of upgrade. This can be named anything
///   {
///     Instance="LVL1 Front Part"      //What instance in the GEN file to modify
///     UpgradeLevel="STOCK"            //what level of upgrade
///     {
///       GEN=<FPARTEXISTS>="//"        //This replaces the token <FPARTEXISTS> with // in the GEN. To comment it out
///       GEN=<FPART>=                  //YOU need some definition here, even though it doesn't exist
///     }
///   
///     UpgradeLevel="LVL2 Front Part"  //what level of upgrade
///     {
///       GEN=<RWINGEXISTS>=""          //This replaces the token <FPARTEXISTS> with nothing in the GEN. To uncomment it out
///       Description="Front Part lvl2" //THis is the description that goes in the in-game menus
///       GEN=<FPART>=FPART_lvl2.gmt    //what GMT file replace that token (<RWING>) in the GEN File
///     }
///   }
///
///   
///   You can create any number of upgrades with any name you wish. Just use the above sample and expand upon it
///      
////////////////////////////////////END EXAMPLE/////////////////////////////////////////////////////////////////////////////////////////

BaseVehiclePrice=2500

// Added this to be used as the "Class" in the monitor and results file.  Using this variable will
// force the game to display this as the class, regardless of any upgrade classes or VEH categories.
//DisplayClassOverride="WTCC 2007"

UpgradeClass="WTCC-2007"
{
  	AIList
  	{
    		Tires=0
  	}	
}

UpgradeClass="WTCC-2006"
{
  	AIList
  	{
		Tires=1
		
  	}	  	
}


upgradeType="WTCC Weight Handicap"
{
	
	UpgradeLevel="No Weight Handicap"
	{
        	Description="Standard weight" 
      }
		
      UpgradeLevel="+5 Kg Weight Handicap"
	{
           	Description="+5 Kg Weight Handicap"
		
		HDV=[GENERAL]
    		HDV=Mass+=5.0
    		HDV=Inertia+=(6.3,8.055,2.01)
    	}

      UpgradeLevel="+10 Kg Weight Handicap"
	{
           	Description="+10 Kg Weight Handicap"
		
		HDV=[GENERAL]
    		HDV=Mass+=10.5
    		HDV=Inertia+=(12.6,16.11,4.02)
    	}

      UpgradeLevel="+15 Kg Weight Handicap"
	{        
         	Description="+15 Kg Weight Handicap"

		HDV=[GENERAL]
    		HDV=Mass+=15.5
    		HDV=Inertia+=(14.9,19.21,6.09)
    	}

      UpgradeLevel="+20 Kg Weight Handicap"
	{
        	Description="+20 Kg Weight Handicap"
	
		HDV=[GENERAL]
    		HDV=Mass+=20.0
    		HDV=Inertia+=(17.6,21.01,7.52)
    	}
                
      UpgradeLevel="+25 Kg Weight Handicap"
	{
        	Description="+25 Kg Weight Handicap"

		HDV=[GENERAL]
    		HDV=Mass+=25.0
    		HDV=Inertia+=(22.6,26.21,8.75)
    	}
    
	UpgradeLevel="+30 Kg Weight Handicap"
      {
        	Description="+30 Kg Weight Handicap"
              
		HDV=[GENERAL]
    		HDV=Mass+=30.0
    		HDV=Inertia+=(29.5,33.81,10.53)
    	}
        
      UpgradeLevel="+35 Kg Weight Handicap"
	{
        	Description="+35 Kg Weight Handicap"
		
		HDV=[GENERAL]
    		HDV=Mass+=35.0
    		HDV=Inertia+=(34.6,41.01,14.52)
    	}

	UpgradeLevel="+40 Kg Weight Handicap"
	{		
		Description="+40 Kg Weight Handicap"
		
            HDV=[GENERAL]
    		HDV=Mass+=40.0
    		HDV=Inertia+=(38.0,53.02,17.05)
    		HDV=CGHeight+=0.001
	}

      UpgradeLevel="+45 Kg Weight Handicap"
	{
        	Description="+45 Kg Weight Handicap"
		
		HDV=[GENERAL]
    		HDV=Mass+=45.0
    		HDV=Inertia+=(43.6,56.01,18.05)
    		HDV=CGHeight+=0.002
		
	}

      UpgradeLevel="+50 Kg Weight Handicap"
	{
		Description="+50 Kg Weight Handicap"
				
            HDV=[GENERAL]
    		HDV=Mass+=50.0
    		HDV=Inertia+=(48.5,59.22,19.05)
    		HDV=CGHeight+=0.003
	}
        
      UpgradeLevel="+55 Kg Weight Handicap"
	{
        	Description="+55 Kg Weight Handicap"
		
		HDV=[GENERAL]
    		HDV=Mass+=20.0
    		HDV=Inertia+=(53.9,61.01,21.52)
    		HDV=CGHeight+=0.004
	}

      UpgradeLevel="+60 Kg Weight Handicap"
	{
		Description="+60 Kg Weight Handicap"
				
            HDV=[GENERAL]
    		HDV=Mass+=60.0
    		HDV=Inertia+=(58.1,63.82,22.35)
    		HDV=CGHeight+=0.005
	}
}
UpgradeType="Tires"
{
	
  	Incremental=0
  	ResaleValue=0.35 // Get back money for the nice rims only
  	
  	UpgradeLevel="2007 Tires"
  	{
		Price=0
    		Description="tires used in the WTCC 2007, they offer slightly improved grip over the 2006 ones"
    		IconLevel=1  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
		
		HDV=[GENERAL]
    		HDV=TireBrand=2007_Yokohama_RWD.tbc
    		
  	}

  	UpgradeLevel="2006 Tires"
  	{
		Price=1000
    		Description="tires used in the WTCC 2006"
    		IconLevel=0  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
    
		HDV=[GENERAL]
    		HDV=TireBrand=2006_Yokohama_RWD.tbc

  	}
}

UpgradeType="Multi function display"
{
	Instance="COCKPIT"
  	
  	Incremental=0
	
  	// And you can't sell it
  	ResaleValue=0.0
  	
  	UpgradeLevel="No Additional LCD"
  	{
		Price=0
    		Description="Removes the additional LCD and leaves you with the standard displays"
    		IconLevel=0  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
		
		GEN=<RACEXINFDISPEXISTS>="//"
    		GEN=<RACEXINFDISP>=
    	     	   		
  	}
  	UpgradeLevel="Additional LCD"
  	{
    		Description="Additional LCD Screen supporting multiple display modes"
    		IconLevel=1  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
    
		GEN=<RACEXINFDISPEXISTS>=""
    		GEN=<RACEXINFDISP>=BMW_320si_INFDISP.gmt
    		
  	}
}

UpgradeType="MoTec Display"
{
	Instance="WHEEL"
  	Instance="COCKPIT"

  	Incremental=0
	
  	// And you can't sell it
  	ResaleValue=0.0

  	UpgradeLevel="Default MoTec"
  	{
    		Description="Default -  digital display mounted to the steering wheel"
    		IconLevel=0  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
    
    		GEN=<WHEEL>=BMW_320si_STEERINGWHEEL_a_STYLE1.gmt
    		GEN=<MOTEC>=bmw_320si_Motec_Style1.gmt

		CPIT=RPMLED=bmw_320si_rpmbar


  	}
  	UpgradeLevel="Alternate MoTec Style 1"
  	{
		Price=0
    		Description="Removes digital display from steering wheel and adds a MoTec display to the dash"
    		IconLevel=1  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
		
		GEN=<WHEEL>=BMW_320si_STEERINGWHEEL_b_STYLE1.gmt
    		GEN=<MOTEC>=bmw_320si_Motec_Style2.gmt

		CPIT=RPMLED=bmw_320si2_rpmbar
		CPIT=GearsFont=FNTCMOTS.BMP
		CPIT=GearsBackground=RACEX_TRANS_GEARSBK      // default is "READOUT.BMP"
		CPIT=GearsScale=(1.2, 1.8)           // how big to draw the font onto the background
		CPIT=SpeedFont=FONTLCD.bmp       // defaults to FONTREAD
		CPIT=SpeedBackground=RACEX_speedbkg      // defaults to READOUT.BMP
		CPIT=SpeedScale=(3.4,2.8)          // how big to draw the font onto the background
		CPIT=LapsFont=FONTLCD.bmp        // defaults to FONTREAD
		CPIT=LapsBackground=RACEX_lapsbkg        // defaults to READOUT.BMP
		CPIT=LapsScale=(2.2,2.5)           // how big to draw the font onto the background
		CPIT=PlaceFont=FONTLCD.bmp      // defaults to FONTREAD
		CPIT=PlaceBackground=RACEX_placebkg      // defaults to READOUT.BMP
		CPIT=PlaceScale=(2.2,2.5)           // how big to draw the font onto the background
		CPIT=LCDFont=FONTLCD.bmp        // defaults to FTIM24HUD (hey, why not?)
		CPIT=LCDBackground=racex_infdispbk        // defaults to LCD00.BMP
		CPIT=LCDScale=(1.0, 1.7)           // how big to draw the font onto the background
    	     	   		
  	}
  	
}

UpgradeType="Gated Shifter"
{
  	UpgradeLevel="No Gated Shifter"
  	{
    		Description="Standard shift timings."
  	}
  	UpgradeLevel="Gated Shifter"
  	{ 
    		Description="Disables shift timings. Use only if you have a gated shifter."
    
    		HDV=[DRIVELINE]
    		HDV=UpshiftDelay=0.0
    		HDV=UpshiftClutchTime=0.0
    		HDV=DownshiftDelay=0.0
    		HDV=DownshiftClutchTime=0.0
    		HDV=DownshiftBlipThrottle=0.0
  	}
}

UpgradeType="Power Steering Level"
{
  	UpgradeLevel="Normal FFB Effects"
  	{
    		Description="Standard FFB Multiplier=1.25"
  	}

  	UpgradeLevel="Medium FFB Effects"
  	{
    		Description="Raised FFB Multiplier=1.8"

    		HDV=[CONTROLS]
    		HDV=SteeringFFBMult=1.8
  	}

  	UpgradeLevel="Strong FFB Effects"
  	{
    		Description="Raised FFB Multiplier=2.5"

    		HDV=[CONTROLS]
    		HDV=SteeringFFBMult=2.5
  	}
}
UpgradeType="Interior Windscreen"
{
	Instance="COCKPIT"
  	
  	Incremental=0
	
  	// And you can't sell it
  	ResaleValue=0.0
	
  	UpgradeLevel="Standard Windscreen"
  	{
		Price=0
    		Description="Uses wildcard materials, sometimes limited visibility"
    		IconLevel=0  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
		
		
    		GEN=<WINDOWSINTERIOR>=BMW_320si_INTERIOR_WINDOWS_A.gmt
    	     	   		
  	}

	UpgradeLevel="Clear Windscreen"
  	{
    		Description="removes interior window banner and offers improved visibility"
    		IconLevel=1  // overrides the level used for icons in the UI so that several levels are "equal" - good for a variety of rims that have no performance difference
    
		GEN=<WINDOWSINTERIOR>=BMW_320si_INTERIOR_WINDOWS_E.gmt
    		
  	}
  	
}

UpgradeType="Horn"
{
  	// You can purchase any horn at any time
  	Incremental=0

  	// Standard
  	UpgradeLevel="Stock Horn"
  	{
    		Picture=StockHorn.tga
    		Description="Stock Horn"
  	}

  	// Upgrade
  	UpgradeLevel="Ahooga Horn"
  	{
    		Picture=AhoogaHorn.tga
    		Description="Grabs your opponents' attention with this classic horn sound"
    		Price=100

    		SFX=VS_INSIDE_HORN=secondary\hornupgrade_in.wav
    		SFX=VS_OUTSIDE_HORN=secondary\hornupgrade_ex.wav
  	}
}



