car
{
   name=Renault 18 turbo
   year=1980
   comments=FF, 5M, 1565cc, 109cv, 1040kg
   credits=Edited by PP Motorsport, Original by ?????
   id=r18turbo
   version=090b
   wheels=4
   skid
   {
      sample=skid.wav
   }
   cg
   {
      x=0
      y=0.30
      z=0.28
   }
      ff_factor=1.0
      version=1
   }
   graphics
   {
      shadow
      {
         model
         {
            file=r18.dof
	    use_shaders=0
         }
      }
   }
}

body
{
   mass=1040
   inertia
   {
      x=1583
      y=1739
      z=616
   }
   width=1.70
   height=1.138
   length=4.400
   manual_box=1
   model
   {
      file=r18.dof
      offset
      {
         x=0
         y=0
         z=0
      }
   }
   restitution_coeff=0
   model_incar
   {
      file=r18.dof
   }
   model_braking_l
   {
      file=brakes.dof
   }
   model_light_l
   {
      file=lights.dof
   }
}
steer
{
   ; Position
   x=0.3216
   y=0.61
   z=0.455
   ; Rotation towards the driver
   xa=25
   ; Max angle of rotation (angle = -lock/2..lock/2)
   lock=1080
   linearity=0.25
   model
   {
      file=volante.dof
   }
}
engine
{
   x=0
   y=0.4
   z=1.1125
   size=.25
   mass=0
   idle_rpm=900
   max_rpm=7000
   curve_torque=gtl.crv
   max_torque=181 (109cv)
   reaction=0.7
   autoclutch_rpm=1200
   starter=1
   starter_torque=70
   start_stalled=1
   stall_rpm=500
   start_rpm=650
   shifting
   {
      automatic=0
      fast=0
      shift_up_rpm=5000
      shift_down_rpm=2500
      time_to_declutch=200
      time_to_clutch=200
      time_in_neutral=0
      time_to_declutch_down=200
      time_in_neutral_down=0
      time_to_clutch_down=200
   }
   inertia
   {
      engine=0.14
     
   }
   braking_coeff=3.5
   max_rpm=7000
   rolling_friction_coeff=0.1
}
traction_control
{
   enable=0
   ; Allowed front/rear wheel speed ratio (1.1=10% difference allowed)
   max_velocity_ratio=1.1
   ; When to turn TC off
   min_velocity_ratio=1.0
   min_velocity=0
}
abs
{
   ; Anti-lock braking system
   enable=0
   ; Allowed front/rear wheel speed ratio
   max_velocity_ratio=1.1
   ; When to turn TC off
   min_velocity_ratio=1.0
   min_velocity=0
}
gearbox
{
   gears=6
   gear0
   {
      inertia=0
      ratio=-3.083
   }
   gear1
   {
      inertia=0.0
      ratio=3.818
   }
   gear2
   {
      inertia=0.5
      ratio=2.176
   }
   gear3
   {
      inertia=1
      ratio=1.409
   }
   gear4
   {
      inertia=2
      ratio=1.03
   }
   gear5
   {
      inertia=4
      ratio=0.861
  }
  end_ratio=3.778
}
clutch
{
   max_torque=245
}
handbrakes
{
   ; Apply to which wheels? (give indices starting at 0; mostly 23, the rears)
   wheels=23
}
differential
{
   type=1
   ratio=3.444
   inertia=0
   locking_coeff=0
   output0=0
   output1=1
}
aero
{
   body
   {
      center=0 0 0
      cx=0.35
      area=1.7
   }
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=10000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=10000
        }
}
susp_front
{
   y=0.15
   z=1.22
   restlen=0.10
   maxlen=0.15
   minlen=0   
   roll_center
   {
      x=0
      y=-0.237
      z=0
   }
   anti_pitch=0
   k=45000   
   bump_rate=1800
   camber_change_per_m=0   
   rebound_rate=3600
   
}
susp_rear
{
   y=0.15
   z=-1.22
   restlen=0.20
   maxlen=0.25
   minlen=0
   anti_pitch=0.5
   k=18000   
   camber_change_per_m=0   
   bump_rate=1000
   rebound_rate=2000
   roll_center
   {
      x=0
      y=-0.292
      z=0
   }
}
susp0~susp_front
{
  x=0.72
  camber_change_steering=0.0
}
susp1~susp_front
{
  x=-0.72
  camber_change_steering=-0.0
}
susp2~susp_rear
{
  x=0.72
}
susp3~susp_rear
{
  x=-0.72
}
pacejka_front
{

  a0=1.3

  a1=-69.812983
  a2=1350
  a3=2500
  a4=17
  a5=0 
  a6=0 
  a7=-2
  a8=0
  a9=0 
  a10=0


  a111=-6.603931
  a112=0
  a12=0
  a13=0


  b0=1.5

  b1=-69.812983
  b2=3800
  b3=0 
  b4=444 
  b5=0.04
  b6=0 
  b7=0 
  b8=0.7 
  b9=0
  b10=0
 
  c0=2
  c1=-1

  c2=-7.621429
  c3=0.000000
  c4=-2.507143
  c5=-0.08
  c6=0 
  c7=-0.09 
  c8=0 
  c9=0 
  c10=0 
  c11=0 
  c12=0 
  c13=0 
  c14=-0.04
  c15=0 
  c16=0 
  c17=0

  ; Statistical data (SR, SA in radians)

optimal_slipratio=0.150000
optimal_slipangle=0.130500
}


pacejka_rear
{

  a0=1.3

  a1=-69.812983
  a2=1350
  a3=2500
  a4=17
  a5=0 
  a6=0 
  a7=-2
  a8=0
  a9=0 
  a10=0


  a111=-6.603931
  a112=0
  a12=0
  a13=0


  b0=1.5

  b1=-69.812983
  b2=3800
  b3=0 
  b4=444 
  b5=0.04
  b6=0 
  b7=0 
  b8=0.7 
  b9=0
  b10=0
 
  c0=2
  c1=-1

  c2=-7.621429
  c3=0.000000
  c4=-2.507143
  c5=-0.08
  c6=0 
  c7=-0.09 
  c8=0 
  c9=0 
  c10=0 
  c11=0 
  c12=0 
  c13=0 
  c14=-0.04
  c15=0 
  c16=0 
  c17=0

  ; Statistical data (SR, SA in radians)

optimal_slipratio=0.150000
optimal_slipangle=0.130500
}


wheel_common
{
   rolling_coeff=0.015
   mass=25
   radius=0.29
   inertia=1
   skidding
   {
      ; Slip ratio
      long_start=0
      long_max=21.0
      ; Negative slip ratio
      long_start_n=0
      long_max_n=21.0
      ; Lateral; slip velocity
      lat_start=0
      lat_max=21
   }
}
wheel_front~wheel_common
{
   steering=1
   lock=64
   toe=0
   max_braking=3200
   braking_factor=1
   max_handbrake_torque=0
   friction_road=1
   tire_rate=165000
}
wheel0~wheel_front
{
   model
   {
      file=wh_0.dof
   }
   ackerman=-0.9315
   camber=-1
   x=0
   y=0
   z=0
   model_brake
   {
      file=
   }
   pacejka~pacejka_front
}
wheel1~wheel_front
{
   model
   {
      file=wh_1.dof
   }
   ackerman=0.9315   
   camber=-1
   x=0
   y=0
   z=0
   model_brake
   {
      file=
   }
   pacejka~pacejka_front
}
wheel_rear~wheel_common
{
   steering=0
   friction_road=1.0
   tire_rate=165000
   max_braking=200
   braking_factor=1
   max_handbrake_torque=800
   lock=0
   camber=-0.5
   x=0
   y=0
   z=0
}
wheel2~wheel_rear
{
   toe=-1
   model
   {
      file=wh_2.dof
   }
   model_brake
   {
      file=
   }
   pacejka~pacejka_rear
}
wheel3~wheel_rear
{
   toe=1
   model
   {
      file=wh_3.dof
   }
   model_brake
   {
      file=
   }
   pacejka~pacejka_rear
}
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.2
  z=2.100000
 }
 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=-1.00
    z=0.9
  }
  angle
  {
    x=9.027775
    y=180
    z=0.000000
  }
  name=Hood Cam
  fov=68
  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=68
  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=68
 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=68
 model=0
 wheels=1
 view=0
 name=Effect Cam 3
}
camera7
{
 offset
 {
  x=1.150625
  y=-0.25
  z=0.350000
 }
 angle
 {
  x=-2.00
  y=-175.472336
  z=-7.017359
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=68
 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=68
	model=0
	wheels=0
	view=1
	name=Inside
	fov=68

	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.338
		y=0.9
		z=-0.30
	}
	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
	}
}

audio
{
  skid
	{
	volume=2
        sample=skid.wav
        sample2=skid.wav
	}
  	acc_all
  	{
    		attack=600
    		decay=600
  	}
  	accelerate_out
  	{
    		smp0~audio.acc_all
    		{
      			volume=1
			sample=1900.wav
      			min=0
      			max=2500
      			natural=0900
    		}
		smp1~audio.acc_all
    		{
      			volume=1
     			sample=3000.wav
      			min=2500
      			max=3500
      			natural=2000
    		}
		smp2~audio.acc_all
    		{
      			volume=1
     			sample=4000.wav
      			min=3500
      			max=4500
      			natural=3000
    		}
		smp3~audio.acc_all
    		{
			volume=1.1
     			sample=5000.wav
      			min=4500
      			max=5500
      			natural=4000
    		}
		smp4~audio.acc_all
    		{

			volume=1.15
     			sample=6100.wav
      			min=5500
      			max=6500
      			natural=5100
    		}
		smp5~audio.acc_all
    		{

			volume=1.2
     			sample=6900.wav
      			min=6500
      			max=12000
      			natural=5900
    		}
  	}
  	decelerate_out
  	{
   		volume=0.6
		smp0~audio.acc_all
    		{
      			sample=1900.wav
      			min=0
      			max=2500
      			natural=0900
    		}
		smp1~audio.acc_all
    		{
     			sample=3000.wav
      			min=2500
      			max=3500
      			natural=2000
    		}
		smp2~audio.acc_all
    		{
     			sample=4000.wav
      			min=3500
      			max=4500
      			natural=3000
    		}
		smp3~audio.acc_all
    		{
     			sample=5000.wav
      			min=4500
      			max=5500
      			natural=4000
    		}
		smp4~audio.acc_all
    		{
     			sample=6100.wav
      			min=5500
      			max=6500
      			natural=5100
    		}
		smp5~audio.acc_all
    		{
     			sample=6900.wav
      			min=6500
      			max=12000
      			natural=5900
    		}
	}
}