car
{
  name=Mercedes-Benz W112 300SE
  year=1965
  credits=Converted by Priban
  comments=Daimler-Benz M189 6cyl, 125kW/170PS/168HP/249Nm
  id=s_class
  version=0655
  wheels=4
  skid
  {
    sample=skid.wav
sample2=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.2
    length=5.4
  }
  cg
  {
    x=0
    y=-0.198
    z=0.02
  }
  ff_factor=0.20
}

graphics 
{
  shadow 
  {
    texture=shadow.tga
    model
    {
      file=car.dof
    }
  }

	generic
	{
		model0
		{
		file=plate.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}		
		}
		model1
		{
		file=button.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
		model2
		{
		file=zasuvka.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
		model3
		{
		file=zamek2.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model4
    		{
		file=tag.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model5
    		{
		file=shift.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model6
    		{
		file=glass.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model7
    		{
		file=headrest.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model8
    		{
		file=heckblende.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model9
    		{
		file=roof.dof
		{
   		  x=0
  		  y=0
  		  z=0
  		}
		}
    		model10
    		{
      		file=
    		}
    		model11
    		{
      		file=
    		}
    		model12
    		{
      		file=
    		}
    		model13
    		{
      		file=
    		}
    		model14
    		{
      		;file=
    		}
    		model15
    		{
      		;file=
    		}
    		model16
    		{
      		;file=
    		}

	}
}
body
{
  mass=1565	
  restitution_coeff=0.25
  inertia
  {
    x=2100
    y=2140
    z=440
  }
  x=0
  y=0
  z=0
  width=1.7
  height=1.0
  length=4.4
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=car.dof
  }
  model_incar
  {
    file=car.dof
  }
  model_light_l
  {
    file=
  }
  model_braking_l
  {
    file=braking.dof
  }
  model_reverse_r
  {
    file=
  }
  model_lightroad_l
  {
  file=svetla.dof
  }  
  width=1.79
  height=1.2
  length=4.92
  manual_box=0
}
steer
{
  x=0.34
  y=0.45
  z=0.6
  xa=20
  lock=1080
  linearity=0.15
  model
  {
     file=stw.dof
  }
}
engine
{
	mass=120
	max_rpm=7000
	idle_rpm=750
	starter=1
        starter_torque=70
        start_stalled=1
        stall_rpm=550
        start_rpm=800
	autoclutch_rpm=1300
	curve_torque=torque.crv
	max_torque=249
	torque_reaction=1.5
	shifting
	{
		automatic=0
		shift_up_rpm=4500
		shift_down_rpm=1250
		time_to_declutch=0.001
    		time_in_neutral=0.001
    		time_to_clutch=0.001

    		time_to_declutch_down=0.001
    		time_in_neutral_down=0.001
    		time_to_clutch_down=0.001
	}
	inertia
	{
		engine=0.30
	}
	braking_coeff=2.6
}
clutch
{
	max_torque=450
}
gearbox
{
	gears=5
  	gear0
  	{
    		ratio=-3.92
    		inertia=0.10
    		engine_map=1.00
  	}
  	gear1
  	{
    		ratio=4.05
    		inertia=0.01
    		engine_map=1.00
  	}
  	gear2
  	{
    		ratio=2.28
    		inertia=0.02
    		engine_map=1.00
  	}
  	gear3
  	{
    		ratio=1.53
    		inertia=0.04
    		engine_map=1.00
  	}
  	gear4
  	{
    		ratio=1.00
    		inertia=0.06
    		engine_map=1.00
  	}	
}
handbrakes
{
  wheels=23
}
differential
{
  type=0
  ratio=3.75
  inertia=0.02
  locking_coefficient=100
  output0=2
  output1=3
}
traction_control
{
  enable=0
  max_velocity_ratio=0.1
  min_velocity_ratio=0.1
  min_velocity=56	;250 km/h speed limiter
}
abs
{
  enable=1
  max_velocity_ratio=1.11
  min_velocity_ratio=1.10
  min_velocity=10
}
aero
{
  body
  {
    center=0 0 0
    cx=0.330		
    area=1.92	
  }
  wings=1
  wing0
  {
    name=overall body lift
    span=1
    cord=1
    coeff_drag=0
    coeff_down=-9.5
    center=0 0 0.135
    angle=0
    angle_offset=1
  }
}
antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=15000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=10000
  }
}
susp_front
{
  y=0.19
  z=1.68
 restlen=0.500
  	minlen=0.280
  	maxlen=0.530
  	k=23886
  	bump_rate=1399
  	bump_function=0
  	rebound_rate=2899
  	rebound_function=0
  	anti_pitch=-0.5
  	camber_change_per_m=0.4
    	caster_offset=-0.046
  	roll_center
  	{
    		x=0
    		y=-0.625
    		z=0
  }
}
susp_rear
{
  y=0.16
  z=-1.08
 restlen=0.500
  	minlen=0.280
  	maxlen=0.550
  	k=25981
  	bump_rate=1356
  	bump_function=0
  	rebound_rate=2799
  	rebound_function=0
  	anti_pitch=-0.5
  	camber_change_per_m=0.3
    	caster_offset=-0.046
  	roll_center
  	{
    		x=0
    		y=-0.6
    		z=0
  }
}
susp0~susp_front
{
  x=0.77
}
susp1~susp_front
{
  x=-0.77	;723
}
susp2~susp_rear
{
  x=0.77
}
susp3~susp_rear
{
  x=-0.77	;7145
}

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.25
    	a1=-30
    	a2=1335
    	a3=1560
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-8.5
    	a112=-0.29
    	a12=17.8
    	a13=-2.4
    	b0=1.5
    	b1=-60
    	b2=1650
    	b3=2
    	b4=350
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0.015
    	b10=0.4
    	b11=-80
    	b12=0
    	c0=2.2
    	c1=-4
    	c2=-3
    	c3=-1.0
    	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.08276
    	optimal_slipangle=0.14444
}
wheel_front
{
	y=0
	z=0
	powered=0
  	steering=1
	reverse_steering=0
	lock=55
	ackerman=1.22
	mass=20
	camber=-0.2
	inertia=1.0
	radius=0.32
	rolling_coeff=0.015
	friction_road=1
	max_braking=1550
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
  {
  }
}
wheel_rear
{
	y=0
	z=0
	powered=1
	steering=0
	reverse_steering=0
	lock=0
	camber=-0.2
	mass=20
  	inertia=1.0
  	radius=0.32
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=1100
  	max_handbrake_torque=1500
  	braking_factor=1
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  x=0
  camber=0.7
  toe=-.0025
  model
  {
    file=left.dof
    
  }
  model_brake
  {
   ; file=
  }
}
wheel1~wheel_front
{
  x=0
  camber=0.7
  toe=0.0025
  model
  {
    file=right.dof
     
  }
  model_brake
  {
   ; file=
  }
}
wheel2~wheel_rear
{
  x=0
  camber=1
  toe=-0.004
  model
  {
    file=left.dof
    
  }
  model_brake
  {
   ; file=
  }
}
wheel3~wheel_rear
{
  x=0
  camber=1
  toe=0.004
  model
  {
    file=right.dof
    ;file=
  }
  model_brake
  {
   ; file=
  }
}
camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.34
    y=0.79
    z=-0.12
  }
  offset_to
  {
    x=0.34
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Left
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.36
    y=0.79
    z=-0.05
  }
  offset_to
  {
    x=15.4
    y=0
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Right
  fov=65
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.36
    y=0.79
    z=-0.05
  }
  offset_to
  {
    x=-12.6
    y=0.
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Rear
  fov=-70
  model=0
  view=0
  wheels=0
  offset
  {
    x=0.1
    y=0.79
    z=-0.3
  }
  offset_to
  {
    x=-2
    y=0.8
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior free
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=120
    z=0
  }
}
camera6
{
  name=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=Passenger seat
  fov=70
  model=1
  view=0
  wheels=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=-0.3
    y=-0.79
    z=-0.2
  }
  angle
  {
    x=10
    y=170
    z=0
  }
}
camera8
{
  name=FrontWheel
  fov=60
  model=0
  view=0
  wheels=0
  offset
  {
    x=1.4
    y=0.06
    z=-0.6
  }
  angle
  {
    x=-2.25
    y=-161
    z=3.3
  }
  follow
  {
    pitch=0
    yaw=1
    roll=1
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  view=0
  wheels=2
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-0.9
    z=0.8
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}

;audio-----------------------------------------------

audio
{
  skid
  {
    volume=1
    sample=skid.wav
    sample2=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
   accelerate_out
  {
    volume=1.0
    smp0
    {
      sample=mercedesv6petrol/2000.wav
      min=0
      max=4000
      attack=1000
      decay=900
      natural=3000
    }
    smp1
    {
      sample=mercedesv6petrol/4000.wav
      min=4000
      max=6000
      attack=1000
      decay=1000
      natural=5500
    }
    smp2
    {
      sample=mercedesv6petrol/6000.wav
      min=5750
      max=7000
      attack=1000
      decay=1000
      natural=6300
    }
    }
  decelerate_out
  {
    volume=1.0
    smp0
    {
      sample=mercedesv6petrol/2000.wav
      min=0
      max=4000
      attack=1000
      decay=900
      natural=3000
    }
    smp1
    {
      sample=mercedesv6petrol/4000.wav
      min=4000
      max=6000
      attack=1000
      decay=1000
      natural=5500
    }
    smp2
    {
      sample=mercedesv6petrol/6000.wav
      min=5750
      max=7000
      attack=1000
      decay=1000
      natural=6300
    }
    }
    accelerate_in
  {
    volume=1.0
    smp0
    {
      sample=mercedesv6petrol/2000int.wav
      min=0
      max=4000
      attack=1000
      decay=900
      natural=3000
    }
    smp1
    {
      sample=mercedesv6petrol/4000int.wav
      min=4000
      max=6000
      attack=1000
      decay=1000
      natural=5500
    }
    smp2
    {
      sample=mercedesv6petrol/6000int.wav
      min=5750
      max=7000
      attack=1000
      decay=1000
      natural=6300
    }
    }
  decelerate_in
  {
    volume=1.0
    smp0
    {
      sample=mercedesv6petrol/2000int.wav
      min=0
      max=4000
      attack=1000
      decay=900
      natural=3000
    }
    smp1
    {
      sample=mercedesv6petrol/4000int.wav
      min=4000
      max=6000
      attack=1000
      decay=1000
      natural=5500
    }
    smp2
    {
      sample=mercedesv6petrol/6000int.wav
      min=5750
      max=7000
      attack=1000
      decay=1000
      natural=6300
    }
    }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=0.8
      min=11
      max=150
      attack=10
      natural=50
    }
  }
}