car
{
  name=Seat Leon Cupra R
  year=2010
  credits=Model from FM3, Convert : Kacper
  id=leonrkupra
  version=090
  comments=CUPRA R 2.0 TSI 210 KM
  wheels=4
  ff_factor=0.8
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=4.80
    offset_z=-0.06
  }
  cg
  {
    x=0
    y=-0.22	;53,7 cm (~38%)
    z=0.365	;64,1% devant
  }
}
  	fuel
  	{
  	bsfc=20e-5
  	max=15
  	type=0
}
graphics
{
  shadow
  {
    model
    {
      file=leon.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
    model0
    {
      file=signal_fl.dof
    }
    model1
    {
      file=lewy.dof
    }
    model2
    {
      file=prawy.dof
    }
    model3
    {
      file=signal_rr.dof
    }
    model4
    {
      file=signal_il.dof
    }
    model5
    {
      file=signal_ir.dof
    }
    model6
    {
      file=door_fl.dof
    }
    model7
    {
      file=door_fr.dof
    }
    model8
    {
      file=door_rl.dof
    }
    model9
    {
      file=door_rr.dof
    }
    model10
    {
      file=bonnet.dof
    }
    model11
    {
      file=hatch.dof
    }
    model12
    {
      file=reverse_lights.dof
    }
    model13
    {
      file=plate_lights.dof
    }
    model14
    {
      file=fog_rear.dof
    }
    model15
    {
      file=fog_front.dof
    }
    model16
    {
      file=fog_in.dof
    }
    model17
    {
      file=high_beam.dof
    }
    model18
    {
      file=high_beam_in.dof
    }
    model19
    {
      file=asr.dof
    }
    model20
    {
      file=driver_body.dof
      offset
      {
        x=0.444
        y=0.62
        z=-0.2
      }
    }
  }
}
lights
{
  light0
  {
    aspect=5
    color=10.00 10.00 12.00
    far=45
    fov=15
    texture=light.tga
    pitch=0
    z=1.0
  }
}
animation
{
  ; Flash all lights? (ms for on period, off-period is the same, so total time is twice this value)
  flash_lights=1
}
body
{
  mass=1215
  inertia
  {
    x=2300
    y=2500
    z=700
  }
  width=1.480	;1986 mm
  height=1.779	;1332 mm
  length=4.199	;4118 mm
  manual_box=0
  model
  {
    file=leon.dof
  }
  model_incar
  {
    file=leon.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_lightroad_l
  {
    file=lights.dof
  }
  model_collide
  {
    file=ombre_e.dof
  }
  model_reverse_l
  {
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
  }
}
steer
{
  x=0.36
  y=0.12
  z=0.492
  xa=22
  lock=900		;2.69 turns lock-to-lock, 10.34 m turning circle
  linearity=0.78       ;900/1152 = 0.78
  model
  {
    file=str.dof
  }
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=150
	idle_method=1
	idle_throttle=0.05
	idle_rpm=900
	min_warn_rpm=6700
	max_warn_rpm=7000
	max_rpm=6500
	start_rpm=1150
	stall_rpm=450
	autoclutch=1
	autoclutch_rpm=1000
	starter=1
	starter_torque=100
	start_stalled=1
	enable_stall=1
	curve_torque=2.0TSI.crv
	max_torque=1
	torque_reaction=1
	braking_coeff=
	braking_offset=
	braking_torque_curve=braking_torque.crv
	friction=0
	cylinders=4
	cylinder_angle=0
	rumble_amplitude=
	rumble_maxrpm=
	inertia
	{
		engine=0.38
	}
	jitter
	{
		amplitude=0.2
		frequency_min=1
		frequency_var=0.1
		time_min=150
		time_var=10
	}
	shifting
	{
		automatic=0
		blip_throttle=0.3
		cut_throttle=1
		fast=1
		shift_up_rpm=6100
		shift_down_rpm=1400
		time_to_declutch=55
		time_in_neutral=75
		time_to_clutch=0.25
		time_to_declutch_down=75
		time_in_neutral_down=75
		time_to_clutch_down=75
	}
}
fuel
{
	bsfc=6.5e-5
	max=50
	type=0
}
gearbox
{
	gears=7
	gear0
   	{
      		ratio=-3.99
      		inertia=0.10
      		engine_map=1.00
   	}
   	gear1
   	{
      		ratio=3.35
      		inertia=0.02
      		engine_map=1.1
   	}
   	gear2
   	{
      		ratio=2.08
      		inertia=0.04
      		engine_map=1.2
   	}
   	gear3
   	{
      		ratio=1.46
      		inertia=0.06
      		engine_map=1.3
   	}
   	gear4
   	{
      		ratio=1.08
      		inertia=0.08
      		engine_map=1.4
   	}
   	gear5
   	{
      		ratio=1.09
      		inertia=0.10
      		engine_map=1.5
   	}
   	gear6
   	{
      		ratio=0.91
      		inertia=0.12
      		engine_map=1.6
   	}
   	final
   	{
      		ratio=4.23
      		inertia=0.12
      		engine_map=1.6
   	}
}
clutch
{
   max_torque=500
}
handbrakes
{
   wheels=23
}
differential
{
	type=1
	ratio=3.5
	inertia=0.05
	locking_coeff=0
          	output0=0
	output1=1
}
abs
{
  enable=1
  braking_factor=1
  max_velocity_ratio=1.100
  min_velocity_ratio=1.095
  min_velocity=3.61
}
traction_control
{
  	enable=1
  	min_velocity=1.667
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300
}
aero
{
  body
  {
    center=0 0 0
    cx=0.33
    area=2.12
  }
  wings=2
  wing0
  {
    name=Front axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 1.3125
    angle=0
    angle_offset=1
  }
  wing1
  {
    name=Rear axle lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5
    center=0 0 -1.3125
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=30000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=7100
  }
}
susp_front
{
  y=-0.04
  z=1.215
  restlen=0.53
  maxlen=0.47
  minlen=0.27	;0.3
  warplen=0.409
  k=32000		
  damper_curve=suspension_damper_front.crv
  bumpstop_len=0.050
  bumpstop_k=164000
  bumpstop_damping=3700
  reboundstop_len=0.010
  reboundstop_k=50000
  reboundstop_damping=1000
  toe_change_per_steering=7
  camber_change_per_steering=0.6
  camber_change_m=-0.04
  anti_pitch=0.12
  roll_center
  {
    x=0
    y=-0.55	
    z=0
  }
}
susp_rear
{
  y=-0.02
  z=-1.4
  restlen=0.539  ;angle de 1,0055°
  maxlen=0.480
  minlen=0.280
  warplen=0.425
  k=18500		
  damper_curve=suspension_damper_rear.crv
  bumpstop_len=0.050
  bumpstop_k=96000
  bumpstop_damping=2200
  reboundstop_len=0.010
  reboundstop_k=50000
  reboundstop_damping=1000
  anti_pitch=0.9
  camber_change_per_m=0.075
  roll_center
  {
    x=0
    y=-0.585
    z=0
  }
}
susp0~susp_front
{
  x=0.77
}
susp1~susp_front
{
  x=-0.77
}
susp2~susp_rear
{
  x=0.77
}
susp3~susp_rear
{
  x=-0.77
}
pacejka
{
  a0=1.4	
  a1=-46	;ps (from pacejkaseries.txt, 205/55 R16)
  a2=1300
  a3=2000
  a4=11
  a5=0.015
  a6=-0.25
  a7=1.0
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=0	;ps
  a112=-0.29
  a12=17.8
  a13=-2.4
  b0=1.5
  b1=-92	;ps doubled
  b2=1360
  b3=23.3
  b4=325
  b5=0.08
  b6=0.0
  b7=0.05
  b8=-0.024
  b9=0.015
  b10=0.25
  b11=-86
  b12=0.0
  c0=2.3
  c1=-3.8
  c2=-3.14
  c3=-1.0
  c4=-7.2
  c5=0.0
  c6=0.0
  c7=0.044
  c8=-0.58
  c9=0.18
  c10=0.043
  c11=0.048
  c12=-0.0035
  c13=-0.18
  c14=-0.04
  c15=-1.029
  c16=0.27
  c17=-1.1
  optimal_slipratio=0.12
  optimal_slipangle=0.22
}
wheel_front
{
  x=0
  y=0
  z=0
  tire_damping=500
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
  steering=1
  ackerman=1.2
  lock=67.89
  mass=30
  inertia=1.35
  rolling_coeff=0.009
  width=0.225
  radius=0.34
  max_braking=4250
  braking_factor=1
  tire_rate=210000
  pacejka~pacejka
  {
  }
}
;225/45 R17 (!)
wheel_rear
{
  x=0
  y=0
  z=0
  tire_damping=500
  tire_damping_lowspeed=2500
  tire_damping_threshold=5.0
  brake_heating=0.003
  brake_dissipation=0.0005
  brake_max_temp=1000
  steering=0
  mass=30
  inertia=1.35
  rolling_coeff=0.009
  width=0.225
  radius=0.34
  max_braking=2300
  max_handbrake_torque=7500
  braking_factor=0.40
  tire_rate=210000
  pacejka~pacejka
  {
  }
}
;225/45 R17 (!)
wheel0~wheel_front
{
	x=0
	toe=-0.1695
	camber=-0.2	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=lewyprzod.dof
	}
}

wheel1~wheel_front
{
	x=0
	toe=0.1695
	camber=-0.2
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=prawyprzod.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.133
	camber=-0.1	
	model
	{
		file=lf.dof
	}
	model_brake
	{
		file=lewytyl.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.133
	camber=-0.1
	model
	{
		file=rf.dof
	}
	model_brake
	{
		file=prawytyl.dof
	}
}
camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.41
    z=0
  }
  offset_to
  {
    x=0.43
    y=0.03
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.41
    z=0
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.41
    z=0
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.41
    z=-0.18
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-6
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}
	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
audio
{
  skid
  {
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.15
}
    smp2~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.3
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
  }
     }  
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.25
}
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.2
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
}       
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.45
}
    smp2~audio.acc_all
    {
      sample=7000.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.5
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
  }  
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=idle.wav
      volume=0.45
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1~audio.acc_all
    {
      sample=ajv8_2000.wav
      min=1000
      max=7000
      natural=4000
      attack=1000
      decay=1000
      volume=0.45
}
    smp2~audio.acc_all
    {
      sample=7000decc.wav
      min=1000
      max=7000
      natural=5500
      attack=1000
      decay=1000
      volume=0.5
}
    smp3~audio.acc_all
    {
      sample=turbo2.wav
      min=2700
      max=3901
      natural=1500
      volume=0.1
    }
    smp4~audio.acc_all
    {
      sample=turbo3.wav
      min=4000
      max=8501
      natural=2500
      volume=0.1
    }
  }  
  gearwhine
  {
    smp0~audio.acc_all
    {
      sample=tw-extonhigh.wav
      volume=0.05
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0~audio.acc_all
    {
      sample=wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
    }
  }
 skid
  {
    volume=1
    smp0
    {
      volume=1
      sample=skid.wav
      min=0.4
      max=1
      attack=0.35
      decay=1.0
    }
    smp1
    {
      volume=1
      sample=skid.wav
      min=0.9
      max=20
      attack=.7
      decay=0
    }
  }
}