car
{
  name=Skoda Octavia TDI
  year=2018 [A7]
  credits=2.0 TDI  150Km 3.500-4.000  320Nm 1.750-3.000  0-100=8.5s  Vmax=218km/h  6 M/T
  comments=skoda octavia facelift A7
  id=skodaoctaviavrstdi
  version=090b
  wheels=4        
  shadow
  {
    texture=shadow.tga
    width=2.4
    length=5.4
    offset_z=-0.03
  }
  cg
  {
    x=0
    y=-0.21
    z=0.354
  }
  ff_factor=0.4
}

abs
{
  enable=1
  max_velocity_ratio=1.09
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  enable=1
  max_velocity_ratio=1.175
  min_velocity_ratio=1.075
  min_velocity=2.66
}
ai
{
  cg_factor=0
  grip_factor=1.05
  max_velocity=30
  min_velocity=25
  rc_factor=0
  spring_lat_factor=1
  spring_dir_factor=0.01
  oversteer_correct=10
  understeer_correct=10
}

wipers
{
  count=2
  wiper0
  {
    x=0.59
    y=0.393
    z=1.295
    xa=60
    min_angle=4
    max_angle=-90
    model
    {
      file=wiper_l.dof
    }
  }
  wiper1
  {
    x=0.025
    y=0.391
    z=1.312
    xa=50
    min_angle=-10
    max_angle=-104
    model
    {
      file=wiper_r.dof
    }
  }
}

graphics
{
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=0
    }
    intensity=0.2
  }
  generic
  {
    model0
    {
      file=bancos_frente.dof
    }
    model1
    {
      file=capot.dof
    }
    model2
    {
      file=choques_frente.dof
    }
    model3
    {
      file=choques_tras.dof
    }
    model4
    {
      file=mala.dof
    }
    model5
    {
      file=porta_condutor.dof
    }
    model6
    {
      file=porta_passageiro.dof
    }
    model7
    {
      file=porta_tras_direita.dof
    }
    model8
    {
      file=porta_tras_esquerda.dof
    }
    model9
    {
      file=
    }
  }
}

body
{
  mass=1250
  restitution_coeff=0.25
  inertia
  {
    x=2530
    y=3160
    z=940
  }
  x=0
  y=0
  z=0
  width=1.814
  height=1.465
  length=4.659
  manual_box=0
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=body.dof
  }
  model_light_l
  {
    file=lights.dof
  }
  model_lightroad_l
  {
    file=lightsin.dof
  }
  model_braking_l
  {
    file=brakes.dof
  }
  model_lightsteer_l
  {
    file=lights_steer.dof
  }
  model_reverse_l
  {
    file=lights_reverse.dof
  }
  model_reverse_r
  {
    file=reverse camera.dof
  }
}

steer
{
  x=0.378
  y=0.31
  z=0.62
  radius=10
  xa=20
  lock=1080
  linearity=0.9
  model
  {
    file=volante.dof
  }
}
______________________________________TDI
engine
{
  x=0.000
  y=-0.04
  z=1.600
  size=1
  mass=170
  idle_method=1
  idle_throttle=0
  idle_rpm=850
  max_rpm=6000
  max_warn_rpm=5600
  min_warn_rpm=5300
  rev_limiter_time=75
  start_rpm=1100
  stall_rpm=650
  autoclutch=0
  starter=1
  starter_torque=150
  start_stalled=1
  enable_stall=1
  curve_torque=TDI/2.0 TDI.crv
  max_torque=1.00
  friction=10
  torque_reaction=0.3
  friction=1
  cylinders=4
  cylinder_angle=0
______________________________________
  shifting
  {
    automatic=0
    blip_throttle=0
    cut_throttle=0
    cut_ignition=0
    fast=0
    time_to_declutch=0
    time_in_neutral=0
    time_to_clutch=0
    time_to_declutch_down=0
    time_in_neutral_down=0
    time_to_clutch_down=0
  }
  inertia
  {
    engine=0.409
  }
  braking_coeff=0
  braking_offset=0
  braking_torque_curve=TDI/TDI brake.crv
}

fuel
{
  bsfc=3.48e-5
  max=50
  type=1
}

gearbox
{
  gears=7
  gear0
  {
    ratio=-4.549
    inertia=0.134
    engine_map=1.0
  }
  gear1
  {
    ratio=3.769
    inertia=0.113
    engine_map=1.0
  }
  gear2
  {
    ratio=1.958
    inertia=0.094
    engine_map=1.0
  }
  gear3
  {
    ratio=1.257
    inertia=0.082
    engine_map=1.0
  }
  gear4
  {
    ratio=0.870
    inertia=0.073
    engine_map=1.0
  }
  gear5
  {
    ratio=0.618
    inertia=0.064
    engine_map=1.0
  }
  gear6
  {
    ratio=0.525
    inertia=0.055
    engine_map=1.0
  }
}

differentials
{
  count=1
  diff0
  {
    type=0
    ratio=3.989
    inertia=0.058
    friction=1
    output0=0
    output1=1
  }
}

clutch
{
  max_torque=450
}
handbrakes
{
  wheels=23
}

aero
{
  body
  {
    center=0 0 0
    cx=0.31
    area=2.26
  }
  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=36000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=29000
  }
}
susp_front
{
  y=0.042
  z=1.545
  restlen=0.42
  minlen=0.18
  maxlen=0.34
  k=30600
  bump_rate=7100
  rebound_rate=2800
  bump_function=0
  rebound_function=0
  anti_pitch=0.2
  camber_change_per_m=0.067
  roll_center
  {
    x=0
    y=-0.5
    z=0
  }
}
susp_rear
{
  y=-0.045
  z=-1.278
  restlen=0.35
  minlen=0.11
  maxlen=0.29
  k=23100
  bump_rate=6500
  rebound_rate=2400
  bump_function=0
  rebound_function=0
  anti_pitch=0.1
  camber_change_per_m=0.14
  roll_center
  {
    x=0
    y=-0.5
    z=0
  }
}
susp0~susp_front
{
  x=0.73
  camber_change_steering=0.171
  caster_offset=-0.0235	
  toe_change_per_m=0
}
susp1~susp_front
{
  x=-0.73
  camber_change_steering=-0.171
  caster_offset=-0.0235
  toe_change_per_m=0
}
susp2~susp_rear
{
  x=0.73
  toe_change_per_m=0
}
susp3~susp_rear
{
  x=-0.73
  toe_change_per_m=0
}

pacejka
{
  a0=1.4	
  a1=-35	;ps (from pacejkaseries.txt, 205/55 R16)
  a2=1300
  a3=1900	;1500
  a4=10
  a5=0.014
  a6=-0.24
  a7=1.0
  a8=-0.03
  a9=-0.0013
  a10=-0.13
  a111=-0.15	;ps
  a112=-0.29
  a12=17.8
  a13=-2.4

  b0=1.5
  b1=-70	;ps doubled
  b2=1260
  b3=23.3
  b4=325	;305
  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.2
  c1=-3.9
  c2=-3.9
  c3=-1.0
  c4=-8.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.11
  optimal_slipangle=0.157
}

wheel_front
{
  y=0
  z=0
  brake_heating=0.00012
  brake_dissipation=0.0003
  brake_max_temp=630
  steering=1
  reverse_steering=0
  lock=61.6
  ackerman=1.075
  mass=50
  inertia=1.35
  radius=0.355
  width=0.225
  rolling_coeff=0.009
  braking_factor=0.70
  max_braking=3000
  tire_rate=270000
  tire_damping=270
  tire_damping_lowspeed=2200
  tire_damping_threshold=5
  load_filter_frequency=0
  noise_filter_damping=0
  noise_filter_frequency=0
  surface_height_filter_damping=0
  surface_height_filter_frequency=0
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  brake_heating=0.00005
  brake_dissipation=0.0002
  brake_max_temp=630
  steering=0
  mass=50
  inertia=1.3
  radius=0.355
  width=0.225
  rolling_coeff=0.009
  braking_factor=0.30
  max_braking=1750
  max_handbrake_torque=4200
  tire_rate=270000
  tire_damping=270
  tire_damping_lowspeed=2200
  tire_damping_threshold=5
  load_filter_frequency=0
  noise_filter_damping=0
  noise_filter_frequency=0
  surface_height_filter_damping=0
  surface_height_filter_frequency=0
  pacejka~pacejka
  {
  a0=1.25
  a1=-20
  a2=1450
  a3=2400
  b0=1.35
  b1=-60
  b2=1150
  optimal_slipratio=0.12
  optimal_slipangle=0.159
  }
}
wheel0~wheel_front
{
  x=0
  toe=0
  camber=-0.21
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=hub_l.dof
  }
}
wheel1~wheel_front
{
  x=0
  toe=0
  camber=-0.21
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=hub_l.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=0
  camber=-0.04
  model
  {
    file=left.dof
  }
  model_brake
  {
    file=hub_r.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0
  camber=-0.04
  model
  {
    file=right.dof
  }
  model_brake
  {
    file=hub_r.dof
  }
}

camera0
{
  name=Driver
  fov=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.667
    z=-0.10
  }
  offset_to
  {
    x=0.1
    y=0
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.675
    z=-0.10
  }
  offset_to
  {
    x=10.5
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=65
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.375
    y=0.675
    z=-0.10
  }
  offset_to
  {
    x=-10.5
    y=0.5
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=1
  wheels=0
  view=0
  offset
  {
    x=0.210
    y=0.695
    z=-0.10
  }
  offset_to
  {
    x=-8
    y=1.5
    z=-15
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  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=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=Bonnet
  fov=50
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=0.8
    z=0.7
  }
  offset_to
  {
    x=0
    y=0
    z=10
  }
  src
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
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=Inside
  fov=80
  model=1
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.6
    z=-0.9
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

audio
{
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  acc_turbo
  {
    attack=2600
    decay=2600
  }
  accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=TDI/idle_int.wav
      min=400
      max=1000
      attack=200
      decay=2000
      natural=900
      volume=1.1
    }
    smp1~audio.acc_all
    {
      sample=TDI/2000int.wav
      min=2300
      max=2500
      attack=950
      decay=750
      natural=1700
      volume=1.1
    }
    smp2~audio.acc_all
    {
      sample=TDI/3000int.wav
      min=3000
      max=3400
      attack=750
      decay=750
      natural=2700
      volume=1.2
    }
    smp3~audio.acc_all
    {
      sample=TDI/4000int.wav
      min=3900
      max=6000
      attack=750
      decay=750
      natural=3650
      volume=1.4
    }
    smp4~audio.acc_all
    {
      sample=TDI/max_int.wav
      min=1500
      max=6000
      attack=1000
      decay=1000
      natural=4400
      volume=0.3
    }
    smp5~audio.acc_turbo
    {
      sample=TDI/turbo.wav
      volume=0.01
      min=1500
      max=3200
      natural=310
      attack=100
      decay=1500
    }
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=TDI/idle_int.wav
      min=400
      max=900
      attack=200
      decay=1200
      natural=900
      volume=0.5
    }
    smp1~audio.acc_all
    {
      sample=TDI/2000int.wav
      min=1500
      max=2500
      attack=650
      decay=2500
      natural=1700
      volume=0.5
    }
    smp2~audio.acc_all
    {
      sample=TDI/3000int.wav
      min=3200
      max=4400
      attack=750
      decay=750
      natural=2700
      volume=0.6
    }
    smp3~audio.acc_all
    {
      sample=TDI/4000int_decc.wav
      min=3500
      max=6000
      attack=2500
      decay=1000
      natural=3800
      volume=0.7
    }
    smp~audio.acc_all
    {
      sample=TDI/.wav
      min=
      max=
      attack=
      decay=
      natural=
      volume=
    }
    smp4~audio.acc_turbo
    {
      sample=TDI/turbo off.wav
      min=500
      max=1000
      decay=4000
      volume=0.15
      natural=2700
    }
  }
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=TDI/idle.wav
      min=400
      max=1000
      attack=200
      decay=2000
      natural=830
      volume=1.1
    }
    smp1~audio.acc_all
    {
      sample=TDI/3000a.wav
      min=1500
      max=5000
      attack=600
      decay=1000
      natural=2700
      volume=0.7
    }
    smp2~audio.acc_turbo
    {
      sample=TDI/turbo3.wav
      min=2000
      max=2001
      attack=700
      decay=2000
      natural=2000
      volume=0.2
    }
  }  
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=TDI/idle.wav
      min=400
      max=1000
      attack=200
      decay=2000
      natural=830
      volume=0.7
    }
    smp1~audio.acc_all
    {
      sample=TDI/3000a_decc.wav
      min=1200
      max=5000
      attack=400
      decay=1000
      natural=3500
      volume=0.2
    }
    smp2~audio.acc_turbo
    {
      sample=TDI/turbo2.wav
      min=1000
      max=1001
      attack=100
      decay=4000
      natural=1000
      volume=0.32
    }
  }
  skid
  {
    volume=0.2
    smp0
    {
      volume=0.7
      sample=skid.wav
      min=0.1
      max=6
      attack=0.06
      decay=1.0
    }
    smp1
    {
      volume=0.9
      sample=skid2.wav
      min=0.2
      max=6
      attack=0.16
      decay=1.0
    }
    smp2
    {
      volume=0.9
      sample=skid3.wav
      min=0.3
      max=8
      attack=0.28
      decay=1.0
    }
  }
  wind
  {
    volume=1.6
    pitch_scale=1.25
    pitch_offset=0
    smp0
    {
      sample=wind1.wav
      min=10
      max=25			;25=90kmh, 50=180kmh ecc.
      attack=15
      decay=15
      natural=65
      volume=1.6
    }
    smp1
    {
      sample=wind2.wav
      min=30
      max=65
      attack=25
      decay=25
      natural=70
      volume=1.4
    }
    smp2
    {
      sample=wind3.wav
      min=50
      max=95
      attack=25
      decay=35
      natural=72
      volume=1.5
    }
    smp3
    {
	sample=trans_on.wav
	pitch_scale=1.25
	pitch_offset=0
	min=1
	max=20
        decay=10
	natural=55
	volume=0.4
    }
  }
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=3.5
    ; Distance to car
    z=3
    ; Pitching with respect to car (in degrees)
    pitch=2
    ; Fall-off distance
    far=170
  }
}

flares
{
  flare0
  {
    pos=-0.68 0.137 2.10
    normal=-0.05 0.1 0.6
    z_offset=-3000
    size_factor=1.5
  }
  flare1
  {
    pos=0.68 0.137 2.10
    normal=-0.05 0.1 0.6
    z_offset=-3000
    size_factor=1.5
  }
}