
car
{
  name=BMW M3 e92 GTS
  year=2012
  credits=Model from Forza horizon. Convert Pawlo922
  comments=4.4 V8 450 km
  wheels=4
  id=m3gts
  	version=090
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.1
    length=4.5
	offset_z=-.1
	;intensity_dark=0.5
	;intensity_light=0.5
  }
  cg
  {
    x=0
    y=-0.2
    z=0.20
  }
  ff_factor=0.45
}
graphics
{
	generic
{
        model10
	{ 	
        file=tab.dof
        offset
        {
      x=0
      y=0
      z=0
    }
}
}
}
}
}
}
}
}
}
}
particles
{ 
backfire
{
exhaust0
{
pos=-0.32 -0.32 -2.23
normal=0 0 -1
} 
exhaust1
{
pos=-0.24 -0.32 -2.23
normal=0 0 -1
}
exhaust2
{
pos=0.32 -0.32 -2.23
normal=0 0 -1
} 
exhaust3
{
pos=0.24 -0.28 -2.23
normal=0 0 -1
}
type=backfire
; type=backfire_long
min_rpm=5500
; min_rpm=0
; suppose car comes from 9000 rpm for example. Then backfiring can happen when max_rpm is reached
max_rpm=7500
; high backfire likeliness for rally cars
likeliness_percentage=130
; likeliness_percentage=100
}
}

lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=55
    ; Aspect (horizontal)
    aspect=5
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
    ; Color (multiplied with texture)
    color=40 40 40
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.52 -0.00 2.08
    color=40 40 40
    ;normal=0 0 1
    normal=-0.05 -0.1 0.6
    z_offset=-3000
    size_factor=2
  }
  flare1
  {
    pos=0.52 -0.00 2.08
    color=40 40 40
    normal=0.05 -0.1 0.6
    z_offset=-3000
    size_factor=2
  
  }
 
 
}

body
{
  mass=1206		;kerb 1173 kg - 117 kg engine - 40 kg wheels + 80 kg driver +10 kg fuel
  inertia
  {
    x=2450
    y=2500
    z=470
  }
  model
  {
    file=body.dof
  }
  model_incar
  {
    file=
  }
 model_light_l
  {
    file=lights.dof
  }
  model_reverse_l
  {
    file=reverse.dof
  }
  model_braking_l
  {
    file=brakelights.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.366
  y=0.250
  z=0.45
  xa=15
  lock=360
  model
  {
     file=str.dof
  }
}
engine
{
  mass=180
  idle_rpm=900
  
  max_rpm=8500
  max_torque=1.4
  curve_torque=engine.crv
  autoclutch_rpm=3000
  starter=0
  starter_torque=90
  start_stalled=0
  stall_rpm=550
  start_rpm=1250
  torque_reaction=0.35
  
    jitter
  {
    amplitude=0.4
    frequency_min=6
    frequency_var=5
    time_min=250
    time_var=750
  }
	rumble_amplitude=0
	rumble_maxrpm=7500
  shifting
  {
    automatic=0
    shift_up_rpm=7500
    shift_down_rpm=3400
    time_to_declutch=40
    time_to_clutch=40
    time_in_neutral=40
    time_to_declutch_down=40
    time_to_clutch_down=40
    time_in_neutral_down=40
  }
  inertia
  {
    engine=0.31
    final_drive=0.1
  }
  braking_coeff=2.5
  ;sample=
  ;sample_rpm=
}
gearbox
{
  gears=8
  gear0
  {
    ratio=-3.85
    inertia=0.11
    linearity=1
  }
  gear1
  {
    ratio=3.85
    inertia=0.11
    linearity=1
  }
  gear2
  {
    ratio=2.49
    inertia=0.1
    linearity=1
  }
  gear3
  {
    ratio=1.66
    inertia=0.08
    linearity=1
  }
  gear4
  {
    ratio=1.24
    inertia=0.07
    linearity=1
  }
  gear5
  {
    ratio=1.00
    inertia=0.09
    linearity=1
  }
  gear6
  {
    ratio=0.86
    inertia=0.1
    linearity=1
  }
  gear7
  {
    ratio=0.62
    inertia=0.11
    linearity=1
  }

}
clutch
{
  max_torque=1000
}
handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.60
  inertia=0.1
  locking_coeff=35
  output0=2
  output1=3
}
aero
{
  body
  {
    center=0 0 0
    cx=0.37
    area=1.81
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5.3
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=38500
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=5000
  }
}
susp_front
{
  y=-0
  z=1.51 
  minlen=0.25	
  restlen=0.30						
  maxlen=0.45
  k=85000
  bump_rate=3100
  rebound_rate=6500
  bump_function=0
  ;bump_max=1755
  rebound_function=3
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp_rear
{
  y=-0
  z=-1.25		
  minlen=0.25	
  restlen=0.32									
  maxlen=0.45										
  k=85000		
  bump_rate=3100
  rebound_rate=6500
  bump_function=3
  ;bump_max=2250
  rebound_function=0
  anti_pitch=0.08
  camber_change_per_m=0.05
  roll_center
  {
    x=0
    y=-0.55
    z=0
  }
}
susp0~susp_front
  {
    x=0.72
    toe_change_per_m=0.029	
    camber_change_steering=0.1062
    caster_offset=-0.01
  }
susp1~susp_front
  {
    x=-0.72
    toe_change_per_m=-0.029
    camber_change_steering=-0.1062
    caster_offset=-.01
  }
susp2~susp_rear
  {
    x=0.73
    toe_change_per_m=0.019
  }
susp3~susp_rear
  {
    x=-0.73
    toe_change_per_m=-0.019	
  }
tire_model_front
{
  damping_predict_lat=0
  damping_predict_long=0
}
tire_model_rear
{
  damping_predict_lat=0
  damping_predict_long=0
}
pacejka
{
    a0=1.5
    a1=-35
    a2=1400			;FRONT wheels grip
    a3=500			;UNDERSTEER tendency. higher value - less understeer
    a4=9
    a5=0.015
    a6=-0.25
    a7=1.0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.6
    b1=-70
    b2=1200			;REAR wheels grip
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.25
    b11=-80
    b12=350
    c0=2.3
    c1=-3.8
    c2=-3.14
    c3=-1.16
    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.14
    c15=-1.029
    c16=0.27
    c17=-1.1
    optimal_slipratio=0.11
    optimal_slipangle=0.159
}
wheel_front
{
	camber=-2
  steering=1
  lock=85
  mass=20
  inertia=1.5
  radius=0.32
  rolling_coeff=0.0180
  friction_road=1
  max_braking=3000
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
	camber=-2
  steering=0
  mass=20
  inertia=1.5
  radius=0.32
  rolling_coeff=0.0205
  friction_road=1
  max_braking=1000
  max_handbrake_torque=5000
  braking_factor=1
  tire_rate=265000
  pacejka~pacejka
  {
  a2=1500
  a3=2100
  a4=9.5
  b2=1550
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=0.015
  model
  {
    file=rim_b6_l.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=-1.2247
  toe=0.16
  model
  {
    file=rim_b6_r.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.16
  model
  {
    file=rim_b6_l.dof
  }
  model_brake
  {
    file=caliper_left1.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.16
  model
  {
    file=rim_b6_r.dof
  }
  model_brake
  {
    file=caliper_right1.dof
  }
}
audio
{
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
	gearwhine
	{
		smp0
		{
		sample=driveshaft.wav
		natural=240
		volume=0.2
		}
	}
  accelerate_out
  {
    smp0~audio.acc_all
    {
      sample=sounds\onidle_ex.wav
      min=1
      max=2822
      natural=2147
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow_ex.wav
      min=2234
      max=4170
      natural=2964
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sounds\onlow_ex.wav
      min=3540
      max=5384
      natural=4258
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sounds\onmid_ex.wav
      min=4851
      max=7395
      natural=6400
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh_ex.wav
      min=6708
      max=9500
      natural=7720
      volume=1
    }
  
  }
  decelerate_out
  {
    smp0~audio.acc_all
    {
      sample=sounds\idle_ex.wav
      min=1
      max=1417
      natural=780
      volume=1
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow_ex.wav
      min=971
      max=4115
      natural=2720
      volume=1
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow_ex.wav
      min=3150
      max=5632
      natural=5116
      volume=1
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid_ex.wav
      min=4944
      max=7544
      natural=7058
      volume=1
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh_ex.wav
      min=6677
      max=9500
      natural=7461
      volume=1
    }
   
  }
    accelerate_in
  {
    smp0~audio.acc_all
    {
      sample=sounds\onidle_in.wav
      min=1
      max=2822
      natural=2147
      volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=sounds\onverylow_in.wav
      min=2234
      max=4171
      natural=2964
      volume=0.4
    }
    smp2~audio.acc_all
    {
      sample=sounds\onlow_in.wav
      min=3490
      max=5761
      natural=4258
      volume=0.4
    }
    smp3~audio.acc_all
    {
      sample=sounds\onmid_in.wav
      min=5025
      max=7686
      natural=6400
      volume=0.4
    }
    smp4~audio.acc_all
    {
      sample=sounds\onhigh_in.wav

      min=6906
      max=9500
      natural=7720
      volume=0.4
    }
    
  }
  decelerate_in
  {
    smp0~audio.acc_all
    {
      sample=sounds\idle_in.wav
      min=1
      max=1417
      natural=780
      volume=0.4
    }
    smp1~audio.acc_all
    {
      sample=sounds\offverylow_in.wav
      min=972
      max=4115
      natural=2720
      volume=0.4
    }
    smp2~audio.acc_all
    {
      sample=sounds\offlow_in.wav
      min=3150
      max=5631
      natural=5116
      volume=0.4
    }
    smp3~audio.acc_all
    {
      sample=sounds\offmid_in.wav
      min=4944
      max=7543
      natural=7058
      volume=0.4
    }
    smp4~audio.acc_all
    {
      sample=sounds\offhigh_in.wav
      min=6677
      max=9500
      natural=7461
      volume=0.4
    }
    
  }
  wind
  {
    volume=2
    pitch_scale=0
    pitch_offset=50
    smp0
    {
      sample=wind1.wav
      min=25
      max=26
      attack=33
      decay=33
      natural=80
    }
    smp1
    {
      sample=wind2.wav
      min=50
      max=51
      attack=33
      decay=33
      natural=80
    }
    smp2
    {
      sample=wind3.wav
      min=75
      max=76
      attack=33
      decay=33
      natural=80
    }
  }
}
camera0
{
  offset
  {
    x=0
    y=1.51
    z=-6.1
  }
 offset_to
 {
  x=0
  y=.5
  z=1.5
 }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Close Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=1
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera1
{
  offset
  {
    x=0
    y=3.
    z=-7.495010
  } 
  offset_to
  {
    x=0
    y=.7
    z=1
  }   
  name=High Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=1
  view=0
  src
  {
    mass=1
    k=200
    damping=30
    maxdist=1.5
  }
  dst
  {
    mass=1
    k=150
    damping=20
    maxdist=1.5
  }
}
camera2
{
 offset
 {
  x=0
  y=0.20
  z=2.400000
 }
 
 offset_to
 {
  x=0
  y=0.15
  z=3
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Hi-Speed Bumper Cam
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=85
 model=interior.dof
 wheels=1
 view=2
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
camera3
{
	name=Driver
	fov=60
	model=0
	wheels=1
	view=1
	name=Inside
	fov=55

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.37
		y=0.55
		z=-0.1
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=1.000000
		y=180.000000
		z=0.000000
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
camera4
{
 offset
 {
  x=0
  y=0.6
  z=0.8
 }
 offset_to
 {
  x=0
  y=0.6
  z=1
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Hood
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=80
 ;model=interior.dof
 ;wheels=1
 ;view=2
 	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}

camera5
{
 offset
 {
  x=0
  y=0.3
  z=0.3
 }
 offset_to
 {
  x=0
  y=0.2
  z=1
 }
 angle
 {
  x=0.000000
  y=180.000000
  z=0.000000
 }
 name=Wheels
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=70
 model=2
 ;wheels=1
 view=0
 	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
camera6
{
 offset
 {
  x=1.2
  y=-0.1
  z=0.4
 } 
 offset_to
 {
  x=0.9
  y=-0.1
  z=1
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=1
 view=0
 name=Effect Cam 1 - Wheel
  	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}

camera7
{
 offset
 {
  x=-1.2
  y=.8
  z=-2
 } 
 offset_to
 {
  x=-.9
  y=.2
  z=1
 } 
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=1
 view=0
 name=Effect Cam 2 -  rear wing
  	src
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}
camera8
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=-0.25
  z=-9
 }
 angle
 {
  x=10
  y=150
  z=0
 }
 fov=25
 model=0
 wheels=1
 view=0
 name=Effect Cam 3
}
camera9
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0
  y=-.25
  z=-30
 }
 angle
 {
  x=2
  y=10
  z=0
 }
 fov=10
 model=0
 wheels=1
 view=0
 name=Effect Cam 4
}
audio
{
  acc_all
  {
    attack=4600
    decay=4600
   
  }
 
accelerate_out
  {

smp15~audio.acc_all
    {
      sample=1216.wav
      min=500
      max=7100
      volume=0.1
 }
    smp14~audio.acc_all
    {
      sample=1306.wav
      min=950
      max=1567
      volume=0.17
}
    smp13~audio.acc_all
    {
      sample=1577.wav
      min=1317
      max=1850
      volume=0.37

   }
    smp12~audio.acc_all
    {
      sample=1872.wav
      min=1600
      max=2113
      volume=0.4
}
    smp11~audio.acc_all
    {
      sample=2103.wav
      min=1863
      max=2376
  volume=0.5

 }
    smp10~audio.acc_all
    {
      sample=2398.wav
      min=2126
      max=2740
      volume=0.69
}
    smp9~audio.acc_all
    {
      sample=2831.wav
      min=2490
      max=3190
      volume=0.8
}
    smp8~audio.acc_all
    {
      sample=3298.wav
      min=2940
      max=3690
      volume=0.8
}
    smp7~audio.acc_all
    {
      sample=3832.wav
      min=3440
      max=4202
      volume=0.8
}
    smp6~audio.acc_all
    {
      sample=4322.wav
      min=3952
      max=4713
      volume=0.8
 }
    smp5~audio.acc_all
    {
      sample=4853.wav
      min=4463
      max=5299
      volume=0.8
}
    smp4~audio.acc_all
    {
      sample=5494.wav
      min=5049
      max=5829
      volume=0.8
 }
    smp3~audio.acc_all
    {
      sample=5913.wav
      min=5579
      max=6291
      volume=0.8
}
    smp2~audio.acc_all
    {
      sample=6419.wav
      min=6041
      max=6868
      volume=1

}
    smp1~audio.acc_all
    {
      sample=7067.wav
      min=6618
      max=7325
      volume=1

}
    smp0~audio.acc_all
    {
      sample=7333.wav
      min=7075
      max=20000
      volume=1


	 }
  decelerate_out
  {

smp15~audio.acc_all
    {
      sample=1216.wav
      min=500
      max=7100
      volume=0.1
 }
    smp14~audio.acc_all
    {
      sample=1306.wav
      min=950
      max=1567
      volume=0.17
}
    smp13~audio.acc_all
    {
      sample=1577.wav
      min=1317
      max=1850
      volume=0.37

   }
    smp12~audio.acc_all
    {
      sample=1872.wav
      min=1600
      max=2113
      volume=0.4
}
    smp11~audio.acc_all
    {
      sample=2103.wav
      min=1863
      max=2376
  volume=0.5

 }
    smp10~audio.acc_all
    {
      sample=2398.wav
      min=2126
      max=2740
      volume=0.69
}
    smp9~audio.acc_all
    {
      sample=2831.wav
      min=2490
      max=3190
      volume=0.8
}
    smp8~audio.acc_all
    {
      sample=3298.wav
      min=2940
      max=3690
      volume=0.8
}
    smp7~audio.acc_all
    {
      sample=3832.wav
      min=3440
      max=4202
      volume=0.8
}
    smp6~audio.acc_all
    {
      sample=4322.wav
      min=3952
      max=4713
      volume=0.8
 }
    smp5~audio.acc_all
    {
      sample=4853.wav
      min=4463
      max=5299
      volume=0.8
}
    smp4~audio.acc_all
    {
      sample=5494.wav
      min=5049
      max=5829
      volume=0.8
 }
    smp3~audio.acc_all
    {
      sample=5913.wav
      min=5579
      max=6291
      volume=0.8
}
    smp2~audio.acc_all
    {
      sample=6419.wav
      min=6041
      max=6868
      volume=1

}
    smp1~audio.acc_all
    {
      sample=7067.wav
      min=6618
      max=7325
      volume=1

}
    smp0~audio.acc_all
    {
      sample=7333.wav
      min=7075
      max=20000
      volume=1
}
}
abs
{
  enable=0
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
