
car
{
  name=Mercedes W211 E63AMG
  year=2007
  credits=Sergey Zamulin
  comments=6.3 L V8
  wheels=4
  id=W211_E63AMG
  	version=090
  skid
  {
    sample=skid.wav
  }
  
  {
    
    width=2.1
    length=4.5
	offset_z=-.1
	;intensity_dark=0.5
	;intensity_light=0.5
  }
  cg
  {
    x=0
    y=-0.25
    z=0.20
  }
  ff_factor=0.50
}


graphics
{
  	
  	{
    		model
    		{
      			file=Mercedes_W211_E63AMG.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=lights_e63amg.dof
		}
		model1
		{
		file=Bumper1.dof
		}
		model2
		{
		file=Bumper_zad1.dof
		}
		model6
		{
		file=skirts.dof
		}
		model7
		{
		file=spoiler3.dof
		}
		model4
		{
		file=lights_rear.dof
		}
		model5
		{
		file=.dof
		}
		model8
		{
		file=s.dof
		}
		model10
		{
		file=.dof
		}
		model11
		{
		file=.dof
		}
		
				
	}
}

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
  }
}

body
{
  mass=1800		;kerb 1173 kg - 117 kg engine - 40 kg wheels + 80 kg driver +10 kg fuel
  inertia
  {
    x=2450
    y=2500
    z=470
  }
  model
  {
    file=Mercedes_W211_E63AMG.dof
  }
  model_incar
  {
    file=Mercedes_W211_E63AMG.dof
  }
 model_light_l
  {
    file=lights_on.dof
  }
  model_braking_l
  {
    file=brake.dof
  }
  model_reverse_l
  {
    file=reverse.dof
  }
  width=1.96
  height=0.75
  length=4.46
  manual_box=1
}
steer
{
  x=0.38
  y=0.1635
  z=0.51
  radius=113
  linearity=0.2
  xa=25
  lock=240
  model
  {
    file=str.dof
  }
}


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

engine
{
   mass=0
   max_rpm=6800
   idle_rpm=850
   stall_rpm=600
   start_rpm=700
   autoclutch_rpm=1000
   starter=0
   start_stalled=1
   starter_torque=50
   curve_torque=torque.crv
   max_torque=855
   reaction=16
   shifting
   {
      automatic=0
      shift_up_rpm=6069
      shift_down_rpm=1950
      time_to_declutch=10
      time_to_clutch=10
   }
  inertia
  {
    engine=0.26
    final_drive=0.2
  }
  braking_coeff=2.90
  sample=5000.wav
  sample_rpm=6000
}
;-----------------------------------------------------------------------------------
;Audio:

audio
{
	 skid
  	{
    	sample=skid.wav
    	sample2=skid.wav
  	}
	acc_all
	{
		attack=1300
		decay=1300
	}
	horn
	{
		sample=horn.wav
                volume=5
	}

;	------------------ OUT

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=3001
			natural=2000

			volume=1
		}
		smp2~audio.acc_all
		{
			sample=3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp4~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=9001
			natural=6000

			attack=2600
			decay=2600

			volume=1.25
		}
	}

	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=3001
			natural=2000

			volume=1
		}
		smp2~audio.acc_all
		{
			sample=3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp4~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=9001
			natural=6000

			attack=2600
			decay=2600

			volume=1.25
		}
	}

;	------------------ IN

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=3001
			natural=2000

			volume=1
		}
		smp2~audio.acc_all
		{
			sample=3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp4~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=9001
			natural=6000

			attack=2600
			decay=2600

			volume=1.25
		}
	}

	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=idle.wav
			min=1
			max=1001
			natural=1000

			volume=1.25
		}
		smp1~audio.acc_all
		{
			sample=2000.wav
			min=2000
			max=3001
			natural=2000

			volume=1
		}
		smp2~audio.acc_all
		{
			sample=3000.wav
			min=3000
			max=3001
			natural=3000

			volume=1
		}
		smp3~audio.acc_all
		{
			sample=4000.wav
			min=4000
			max=4001
			natural=4000

			decay=2600

			volume=1.25
		}
		smp4~audio.acc_all
		{
			sample=6000.wav
			min=6000
			max=9001
			natural=6000

			attack=2600
			decay=2600

			volume=1.25
		}
	}

	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
		}
	}
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
  gears=6
  gear0
  {
    ratio=-3.16
    inertia=0.2
  }
  gear1
  { 
    ratio=3.59 
    inertia=0.13
    engine_map=1.0
  }
  gear2
  { 
    ratio=2.19
    inertia=0.09
    engine_map=1.0
  }
  gear3
  {
    ratio=1.63  
    inertia=0.07
    engine_map=1.0
  }
  gear4
  {
    ratio=1.25  
    inertia=0.05
    engine_map=1.0
  }
  gear5
  {
    ratio=1.0
    inertia=0.03
    engine_map=1.0
  }
;  end_ratio=4.051
}

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

clutch
{
  max_torque=1669
}

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

handbrakes
{
  wheels=23
}

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

differential
{
  type=4
  ratio=2.45
  locking_coeff=100
}
ai
{
  ; Magic under/oversteer correction
  u3ndersteer_correct=9999
  oversteer_correct=9999
  ; Grip factor for the car (don't go too far; 1.2 is max probably before cars start tipping over)
  grip_factor=5.0
  ; CG factor; artifically lowers the effective CG for lateral tire forces,
  ; enabling faster cornerning and still not flipping the car. 0=no effect, upto 1.0=full
  cg_factor=1.0
  ; RC factor; normally 0, but towards 1 it pulls the roll centers towards the CG
  rc_factor=0
  ; Magic spring helping the car; alpha functionality
  spring_lat_factor=0
  ; Directional spring
  spring_dir_factor=0
  ; Max velocity for this car (m/s), in case no explicit AI file is defined (data/tracks/<trackname>/ai/<carname>.ini)
  ; this value then gives an approximate top speed. The AI velocities will be scaled so the max velocity
  ; in the AI file will match this top speed. Other velocities are scaled linearly based on that.
  max_velocity=69.0
  ; Factor which is applied when reducing desired velocity when stability goes down (understeer/oversteer)
  ; The default of 1.0 will reduce desired speed quite a bit; you may use a value closer towards zero
  ; to reduce the slowdown (for cars that have a high negative engine torque for example)
  stability_reduces_velocity=1.0
  ; Factor applied to steer inputs. Reduce from 1 towards 0 to decrease steering wheel output.
  ; Useful when the AI driver gives too much steer input, thereby rocking the car from left
  ; to right and back again too harshly.
  steering_factor=1.0
  ; Factor with which the ai performance is reduced when it is snowing (linear with snow ratio)
  snow_performance_ratio=1.0
  ; Factor with which the ai performance is reduced when it is raining (linear with rain ratio)
  ; When it's raining, the cars will drive slower. The grip is unchanged for AI cars, to keep
  ; them on the road (Racer v7.0).
  rain_performance_ratio=1.0
  ; Factor applied when driving under a yellow flag
  yellow_performance_ratio=0.9
  ; Factor applied when driving under a safetycar flag
  safetycar_performance_ratio=0.7
}

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

aero
{
  body
  {
    center=0 0 0
    cx=0.30
    area=1.75
  }
  wings=2
  wing0
  {
    name=rearspoiler
    span=1
    cord=1
    coeff_drag=5.5
    coeff_down=28
    center=0 0.15 -1.25
    angle=1
    angle_offset=0
  }
}
;----------------------------------------------------------------------
;Antirollbar

antirollbar 
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=12400
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=6100
  }
}

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

susp_front   
{
  y=-0.1555
  z=1.72
  restlen=0.29
  minlen=0.18
  maxlen=0.35
  k=66000
  bump_rate=4500
  rebound_rate=13000
  anti_pitch=0.15
  roll_center
  {
    x=0
    y=-0.50
    z=0
  }
}

susp0~susp_front
{
  x=0.831
}

susp1~susp_front
{
  x=-0.833
}

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


susp_rear  
{
  y=-0.1969
  z=-1.396
  restlen=0.29
  minlen=0.18
  maxlen=0.35
  k=69000
  bump_rate=4500
  rebound_rate=13000
  anti_pitch=0.17
  roll_center
  {
    x=0
    y=-0.50
    z=0
  }
}

susp2~susp_rear
{
  x=0.831
}

susp3~susp_rear
{
  x=-0.829
}

;----------------------------------------------------------------------
;Tire model:


tire_model_front
{
  damping_predict_lat=0.492
  damping_predict_long=0.018
}
tire_model_rear
{
  damping_predict_lat=0.504
  damping_predict_long=0.020
}
pacejka
{
    a0=1.2
    a1=-25
    a2=1800
    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=1950 ;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.5
  steering=1
  powered=0
  lock=69
  ackerman=1.1
  mass=15
  inertia=1.05
  width=.205
  radius=0.380
  rolling_coeff=0.015
  friction_road=1.2
  max_braking=2000
  braking_factor=1
  tire_rate=240000
  pacejka~pacejka
  { 
  }
}

wheel0~wheel_front
{
  x=0
  toe=0
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=lewy_przod.dof
  }
  pacejka~pacejka
  {
  }
}

wheel1~wheel_front
{
  x=0
  toe=0
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=prawy_przod.dof
  }
  pacejka~pacejka
  {
  }
}

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

wheel_rear
{
  y=0
  z=0
  camber=-1.0
  steering=0
  powered=1
  mass=15
  inertia=0.95
  radius=0.380
  width=.205
  rolling_coeff=0.015
  friction_road=1.2
  braking_factor=1
  max_braking=1169
  max_handbrake_torque=5500
  tire_rate=270000
  pacejka~pacejka
  {
  }
}

wheel2~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=lewy_tyl.dof
  }
  pacejka~pacejka
  {
  }
}

wheel3~wheel_rear
{
  x=0
  toe=0
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=prawy_tyl.dof
  }
  pacejka~pacejka
  {
  }
}

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

camera0
{
  name=Driver
  fov=76
  model=0
  wheels=1
  view=1
  offset
  {
    x=0.400
    y=0.540
    z=-0.200
  }
  offset_to
  {
    x=-0.40
    y=-0.55
    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=66
  model=0
  wheels=1
  view=1
  offset
  {
    x=0.325
    y=0.5
    z=-0.18
  }
  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=66
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.520
    y=0.5
    z=-0.18
  }
  offset_to
  {
    x=-9.57
    y=-0.69
    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.100
    y=0.5
    z=-0.18
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.0
    y=-0.33
    z=-5.9
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=13
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.23
    z=-5.9
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=13
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=69
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5.5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=69
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.139164
		z=-3.2
	}
	angle
	{
		x=1.361085
		y=-169.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.6
    z=-16
  }
  angle
  {
    x=08
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=76
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.420
    		y=-0.45
    		z=-0.725
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=6
		y=186
		z=0
	}
}