;
car
{
  name=Mercedes Benz SLR McLaren
  year=2005
  credits=Model By Forza Motorsport 3(Wheel and Steering for Forza 7), Converted By Derric Chang
  comments=M155 SLR, 5.4l V8 SOHC Supercharged, 626PS/6500rpm, 780Nm/3250-5000rpm
  id=mercedes_benz_slr_mclaren
  version=053b
  wheels=4

  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=
    width=0
    length=0
  }
  cg
  {
    x=0
    y=-0.14
    z=0.20
  }
  ff_factor=0.45
}
graphics 
{
    shadow 
    {
      texture=czarne.tga
    }
    model
    {
      file=slr_mclaren.dof
    }
  }
}

;----------------------------------------------------------------------
;Body:
}
body
{
  mass=1710	
  restitution_coeff=0.15
  inertia
  {
    x=3000
    y=3300
    z=650
  }
  model
  {
    file=slr_mclaren.dof
  }
  model_incar
  {
    file=slr_mclaren.dof
  }
  model_light_l
  {
    file=
  }
  model_braking_l
  {
    file=
  }
 model_lightroad_l
 {
  file=
 }
  width=1.871
  height=1.1
  length=5.084
  manual_box=1
}

;----------------------------------------------------------------------
;Steer:

steer
{
  x=0.35
  y=0.38
  z=-0.23
  radius=10
  xa=20
  lock=1458
  linearity=1
  model
  {
     file=movsteer_1.0.dof
  }
}


;----------------------------------------------------------------------
;Engine:

engine
{
    mass=0
    stall_rpm=450
    start_rpm=1000
    idle_rpm=800
    autoclutch_rpm=2500
    max_rpm=7500
    curve_torque=m155_slr.crv
    max_torque=1.0
    torque_reaction=1
    idle_method=1
    starter=1
    starter_torque=95
    start_stalled=1
    enable_stall=1
  shifting
  {
    automatic=0
    shift_up_rpm=7400
    shift_down_rpm=1000
    time_to_declutch=375
    time_to_clutch=175
    time_in_neutral=50
    time_to_declutch_down=375
    time_to_clutch_down=175
    time_in_neutral_down=50
  }
  inertia
  {
    engine=0.26
    final_drive=0.1
  }
  braking_coeff=1.5
  ;sample=
  ;sample_rpm=
}
;------------audio------------
audio
{
  skid
  {
    sample=skid_01.wav
    sample2=skid_02.wav
  }
  horn
  {
    sample=horn.wav
  }
  accelerate_out
  {
    volume=1.5
    smp0~audio.acc_all
    {
      sample=mercslsamg/slsamg_idle.wav
      min=0
      max=1150
      attack=1000
      decay=1000
      natural=1200
    }
    smp1~audio.acc_all
    {
      sample=mercslsamg/slsamg_offmid.wav
      min=500
      max=3200
      natural=4500
      decay=2900
    }
    smp2~audio.acc_all
    {
      sample=mercslsamg/slsamg_offhigh.wav
      min=3001
      max=19001
      attack=2900
      natural=6400
    }
  }
  accelerate_in
  {
    volume=2
    smp0~audio.acc_all
    {
      sample=E92/e92_onidle.wav
      min=0
      max=1150
      attack=1000
      decay=1000
      natural=1200
    }
    smp1~audio.acc_all
    {
      sample=jagxkr/jagxkr_onlow.wav
      min=500
      max=2501
      natural=4500
    }
    smp2~audio.acc_all
    {
      sample=jagxkr/jagxkr_onmid.wav
      min=2501
      max=9001
      natural=4400
    }
    smp3~audio.acc_all
    {
      sample=jagxkr/jagxkr_onhigh.wav
      min=3001
      max=19001
      natural=6400
      volume=0.3
    }
  }
  decelerate_in
  {
    volume=2
    smp0~audio.acc_all
    {
      sample=z4gt3/z4gt3_onidle.wav
      min=0
      max=1150
      attack=1000
      decay=1000
      natural=1200
    }
    smp1~audio.acc_all
    {
      sample=z4gt3/z4gt3_onmid.wav
      min=500
      max=2501
      decay=2400
      natural=4500
    }
    smp2~audio.acc_all
    {
      sample=z4gt3/z4gt3_onhigh.wav
      min=2400
      max=19001
      natural=4400
      attack=2400
    }
  }
}
gearwhine
{
  volume=1.5
  pitch_scale=0.001
  pitch_offset=0
  smp0~audio.acc_all
  {
    sample=gearwhine.wav
    min=0
    max=10000
    natural=7000
  }
}
   wind
   {
      smp0
      {
         volume=2
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
  gears=6
  gear0
  {
    ratio=-3.167
    inertia=0.9
  }
  gear1
  {
    ratio=3.595
    inertia=0.09
  }
  gear2
  {
    ratio=2.186
    inertia=0.07
  }
  gear3
  {
    ratio=1.405
    inertia=0.04
  }
  gear4
  {
    ratio=1.000
    interia=0.02
  }
  gear5
  {
    ratio=0.831
    interia=0.01
  }
  end_ratio=2.65
}

;----------------------------------------------------------------------
;Clutch:

clutch
{
  max_torque=1410
}

abs
{
   max_velocity_ratio=1.7
   min_velocity_ratio=1.3
   enable=1
}
traction_control
{
  max_velocity_ratio=1.1
  min_velocity_ratio=1.09
  enable=0
}

;----------------------------------------------------------------------
;handbrakes:

handbrakes
{
  wheels=23
}

;----------------------------------------------------------------------
;Differential:

differential
{
  type=1
  ratio=2.65
  inertia=0.1
  locking_coeff=350
  locking_coeffient=350
  output0=2
  output1=3
}

;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.33		;sourced
    area=2.06		;measured
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-5.3	;18kg lift @ 200 km/h
    center=0 0 0.0
    angle=0
    angle_offset=1
  }
}

antirollbar
{
 count=2
 arb0
 {
  susp_left=0
  susp_right=1
  k=35000
 }
 arb1
 {
  susp_left=2
  susp_right=3
  k=35500
 }
}

;----------------------------------------------------------------------
;Suspension front

susp_front   
{
  y=0.2
  z=1.35
 restlen=0.4000
 minlen=0.25
 maxlen=0.41
 k=57500
 bump_rate=3200
 rebound_rate=6300
 bump_function=0
 rebound_function=0
 ;anti_pitch=0.4
 roll_center
 {
  x=0
  y=-0.5
  z=0
 }
}

susp0~susp_front
{
  x=0.82
    toe_change_per_m=0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=-0.017		;5.78 degrees static caster -0.017!
}

susp1~susp_front
{
  x=-0.82
    toe_change_per_m=-0.029		;-0.23 static toe. 0.13 degrees change with 0.078m travel. Bump out to ~0.1 toe.!
    camber_change_steering=-0.1062	;using caster angle 5.78 degrees @ max_lock, outside wheel camber wrt y axis = 3.54 degrees!
    caster_offset=-0.017		;5.78 degrees static caster -0.017!
}

;----------------------------------------------------------------------
;Suspension rear


susp_rear  
{
  y=0.2
  z=-1.35
 restlen=0.3995
 minlen=0.22
 maxlen=0.425
 k=35000
 bump_rate=3000
 rebound_rate=4600
 bump_function=0
 rebound_function=0
 roll_center
 {
  x=0
  y=-0.49
  z=0
 }
}

susp2~susp_rear
{
  x=0.823
    toe_change_per_m=0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
}

susp3~susp_rear
{
  x=-0.823
    toe_change_per_m=-0.019		;-0.27 static toe. 0.1 degrees change with 0.09m travel. Bump out to ~0.2 toe.!
}

;----------------------------------------------------------------------
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.2
    a1=-25
    a2=1200
    a3=2000
    a4=9
    a5=0.015
    a6=-0.25
    a7=0
    a8=-0.03
    a9=-0.001
    a10=-0.15
    a111=-8.5
    a112=-0.29
    a12=17.8
    a13=-2.4
    b0=1.3
    b1=-40
    b2=1200
    b3=20
    b4=325
    b5=0.08
    b6=0
    b7=0.05
    b8=-0.025
    b9=0.015
    b10=0.4
    b11=-50
    b12=0
    c0=2.2
    c1=-4
    c2=-3
    c3=-1
    c4=-7
    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.12
    optimal_slipangle=0.173
}
;----------------------------------------------------------------------
;Wheel front:

wheel_front
{
  y=0
  z=0
  camber= -0.8
  steering=1
  powered=0
  lock=67
  ackerman=1.1
  mass=38
  	inertia=1.5
  	radius=0.33
  	rolling_coeff=0.015
	friction_road=1
  	max_braking=5400
  	braking_factor=0.60
  	tire_rate=200000
  pacejka~pacejka
  {
  }
}

wheel0~wheel_front
{
  x=0
  toe=0.05
  ackerman=1.2
  model
  {
    file=slr_mc_wheel_left.dof
  }
  model_brake
  {
    file=hub_lf.dof
    offset
		{
		x=-0.01
		}
  }

}

wheel1~wheel_front
{
  x=0
  toe=-0.05
  ackerman=-1.2
  model
  {
    file=slr_mc_wheel_right.dof
  }
  model_brake
  {
    file=hub_rf.dof
	offset
		{
		x=-0.01
		}
  
  }
}

;----------------------------------------------------------------------
;Wheel rear:

wheel_rear
{
  y=0
  z=0
  camber=-0.5
  steering=0
  powered=1
 mass=42
  	inertia=1.5
  	radius=0.33
  	rolling_coeff=0.015
	friction_road=1
  	max_braking=3800
  	braking_factor=0.55
 	max_handbrake_torque=6000
  	tire_rate=200000
  pacejka~pacejka
  {
  a2=1525
  a3=2100
  a4=9.5
  b2=1700
  b4=350
  optimal_slipratio=0.1
  optimal_slipangle=0.171
  }
}

wheel2~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=slr_mc_wheel_left.dof
  }
  model_brake
  {
    file=hub_lb.dof
	offset
		{
		x=0.01
		}
  }

}

wheel3~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=slr_mc_wheel_right.dof
  }
  model_brake
  {
    file=hub_rb.dof
	offset
		{
		x=-0.01
		}
  }

}

;-----------------------------------------------------------------------
;-----------------------------------------------------------------------
;Camera

camera0
{
  offset
  {
    x=0
    y=1.513334
    z=-5.045006
  }
  angle
  {
    x=21
    y=180
    z=50
  }
  name=Close Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  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.006250
    y=3.
    z=-7.495010
  }
  angle
  {
    x=15.138849
    y=180.173615
    z=180.000000
  }
  name=High Behind
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  fov=50
  model=0
  wheels=0
  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.15
  z=2.70000
 }
 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=2
 wheels=0
 view=2
}
camera3
{
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.7
    z=0.7
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood Cam
  fov=60
  model=0
  wheels=0
  view=0
}
camera4
{
  offset
  {
    x=-0.670312
    y=-0.166667
    z=-3.944994
  }
  angle
  {
    x=2.500038
    y=-152.604248
    z=-15.017359
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  fov=50
  model=0
  wheels=0
  view=0
  name=Effect Cam 1
}

camera5
{
 follow
 {
  pitch=0
  yaw=0
  roll=0
 }
 offset
 {
  x=0.0
  y=-0.25
  z=-5.5
 }
 angle
 {
  x=6.0
  y=30.853992
  z=0.0
 }
 name=Effect Cam 2
 fov=60
 model=0
 wheels=1
 view=1
}
camera6
{
 follow
 {
  pitch=0
  yaw=1
  roll=0
 }
 offset
 {
  x=0
  y=0
  z=-9
 }
 angle
 {
  x=3.861111
  y=33.853992
  z=-14.322908
 }
 fov=80
 model=0
 wheels=1
 view=0
 name=Effect Cam 3
}
camera7
{
 offset
 {
  x=1.150625
  y=0.2
  z=0.350000
 }
 angle
 {
  x=-2.00
  y=-175.472336
  z=-7.017359
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=72
 model=0
 wheels=0
 view=0
 name=Effect Cam 4 - Wheel
}
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 5
}
camera9
{
	name=Driver
	fov=60
	model=1
	wheels=4
	view=1
	name=Inside
	fov=55

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.358
		y=0.65
		z=-0.80
	}
	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
	}
}