

///////////////////////////////////////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=1



UpgradeType="Rear Wing"
{
  Instance="RWING"

  UpgradeLevel="Default"
  {
    Description="Configurable wing stabilizes the car at high speed"
    GEN=<RWINGEXISTS>=""
    GEN=<RWING>=Beetle_Wing.gmt

    HDV=[REARWING]
    HDV=RWRange=(0.0, 1.0, 7)          // several settings
    HDV=RWSetting=5
    HDV=RWDragParams=( 0.015,  0.013, 0.0000) // 1st & 2nd order with setting
    HDV=RWLiftParams=(-0.064, -0.039, 0.0007) // downforce is not quite linear with setting
    HDV=RWLiftSideways=(0.0)            // downforce actually increases slightly at a
    HDV=RWLiftPeakYaw=(4.0, 1.02)       //   small yaw angle for this wing configuration
    HDV=RWLeft=(-0.03, 0.0, 0.0)
    HDV=RWRight=(0.03, 0.0, 0.0)
    HDV=RWUp=(0.0, -0.05, 0.0)
    HDV=RWDown=(0.0, 0.02, 0.0)
    HDV=RWAft=(0.0, 0.05, -0.03)
    HDV=RWFore=(0.0, 0.0, 0.0)          // recomputed from other settings
    HDV=RWRot=(0.02, 0.01, 0.03)
    HDV=RWCenter=(0.00, 0.75, 0.50)     // center of rear wing forces (offset from center of rear axle at ref plane)
  }
  UpgradeLevel="None"
  {
    GEN=<RWINGEXISTS>="//"
    GEN=<RWING>=
  }
}

UpgradeType="Splitter"
{
  Instance="FWING"

  UpgradeLevel="Default"
  {
    Description="Upgraded front end package offers better aerodynamics"
    GEN=<FWINGEXISTS>=""
    GEN=<FWING>=Beetle_Splitter.gmt

    HDV=[FRONTWING]
    HDV=FWRange=(0.0, 1.0, 2)           // only one setting allowed on this wing
    HDV=FWSetting=2
    HDV=FWMaxHeight=(0.40)
    HDV=FWDragParams=( 0.006, 0.0, 0.0) // 1st & 2nd order not needed unless there
    HDV=FWLiftParams=(-0.079, 0.0, 0.0) //   is more than one setting
    HDV=FWLiftHeight=(0.180)
    HDV=FWLiftSideways=(0.50)
    HDV=FWLiftPeakYaw=(0.0, 1.0)
    HDV=FWLeft=(-0.03, 0.0, 0.0)
    HDV=FWRight=(0.03, 0.0, 0.0)
    HDV=FWUp=(0.0, -0.04, 0.0)
    HDV=FWDown=(0.0, 0.04, 0.0)
    HDV=FWAft=(0.0, 0.01, -0.01)
    HDV=FWFore=(0.0, 0.0, 0.0)          // recomputed from other settings
    HDV=FWRot=(0.02, 0.01, 0.03)
    HDV=FWCenter=(0.00, -0.10, -0.55)   // center of front wing forces (offset from center of front axle in ref plane)
  }

  UpgradeLevel="None"
  {
    GEN=<FWINGEXISTS>="//"
    GEN=<FWING>=
  }
}

UpgradeType="Rim Color"
{
  Instance="LFTIRE"
  Instance="RFTIRE"
  Instance="LRTIRE"
  Instance="RRTIRE"

  UpgradeLevel="Chrome"
  {
    Description="Chrome"
    GEN=<LFTIRES>=Beetle_Wheel_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_RR.gmt
  }

  UpgradeLevel="Black"
  {
    Description="Black"
    GEN=<LFTIRES>=Beetle_Wheel_Black_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_Black_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_Black_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_Black_RR.gmt
  }

  UpgradeLevel="White"
  {
    Description="White"
    GEN=<LFTIRES>=Beetle_Wheel_White_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_White_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_White_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_White_RR.gmt
  }

  UpgradeLevel="Red"
  {
    Description="Red"
    GEN=<LFTIRES>=Beetle_Wheel_Red_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_Red_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_Red_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_Red_RR.gmt
  }

  UpgradeLevel="Blue"
  {
    Description="Blue"
    GEN=<LFTIRES>=Beetle_Wheel_Blue_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_Blue_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_Blue_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_Blue_RR.gmt
  }

  UpgradeLevel="Green"
  {
    Description="Green"
    GEN=<LFTIRES>=Beetle_Wheel_Green_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_Green_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_Green_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_Green_RR.gmt
  }

  UpgradeLevel="Yellow"
  {
    Description="Yellow"
    GEN=<LFTIRES>=Beetle_Wheel_Yellow_FL.gmt
    GEN=<RFTIRES>=Beetle_Wheel_Yellow_FR.gmt
    GEN=<LRTIRES>=Beetle_Wheel_Yellow_RL.gmt
    GEN=<RRTIRES>=Beetle_Wheel_Yellow_RR.gmt
  }
}

UpgradeType="Shiftlight"
{
  Instance="TACHOMETER"

  UpgradeLevel="Night Cover"
  {
    Description="Nightcovered Shiftlight"
    GEN=<TACHOMETER>=Beetle_Tachometer.gmt
  }

  UpgradeLevel="Non-Cover"
  {
    Description="Non-Covered shiftlight"
    GEN=<TACHOMETER>=Beetle_Tachometer_L.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
  }

  UpgradeLevel="Cat Horn"
  {
    Description="Cat horn sound"

    SFX=VS_INSIDE_HORN=beetle\Horns\Cat.wav
    SFX=VS_OUTSIDE_HORN=beetle\Horns\Cat.wav
  }

  UpgradeLevel="Cow Horn"
  {
    Description="Cow horn sound"

    SFX=VS_INSIDE_HORN=beetle\Horns\Cow.wav
    SFX=VS_OUTSIDE_HORN=beetle\Horns\Cow.wav
  }

UpgradeLevel="Dog Horn"
  {
    Description="Dog horn sound"

    SFX=VS_INSIDE_HORN=beetle\Horns\Dog.wav
    SFX=VS_OUTSIDE_HORN=beetle\Horns\Dog.wav
  }

UpgradeLevel="Gun Horn"
  {
    Description="Gun horn sound"

    SFX=VS_INSIDE_HORN=beetle\Horns\Gun.wav
    SFX=VS_OUTSIDE_HORN=beetle\Horns\Gun.wav
  }

UpgradeLevel="Pet Horn"
  {
    Description="Pet horn sound"

    SFX=VS_INSIDE_HORN=beetle\Horns\Pet.wav
    SFX=VS_OUTSIDE_HORN=beetle\Horns\Pet.wav
  }

  }

UpgradeLevel="Seat Horn"
  {
    Description="Seat horn sound"

    SFX=VS_INSIDE_HORN=secondary\Seat.wav
    SFX=VS_OUTSIDE_HORN=secondary\Seat.wav
  }
}

