car
{
  name=Renault 5 GTL
  year=1980
  credits=Scratch made by Skybh,thanks to cosmo°
  id=renaultscenic
  version=053b6
  comments=1108cm3, 84Nm à 2000tr/min, 45ch à 4400tr/min
  wheels=4
  ff_factor=0.8
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=1.5
    length=3.51
  }
  cg
  {
    x=0
    y=0.098127   ;0.5421 0.81923, 39% de la hauteur hors tout
    z=0.5141 ;420 devant, 290 derrière soit 59/41%
  }
}
graphics
{
  shadow
  {
    model
    {
      file=body_5p.dof
      use_shaders=0
    }
  }
  generic
  {
    model0
    {
      file=conducteur.dof
      use_shaders=0
    }
    model1
    {
      file=pc_bas.dof
      use_shaders=0
    }
    model2
    {
      file=protections_5p.dof
      use_shaders=0
    }
  }
}
body
{
  mass=830	
		
  inertia
  {
      x=1200
      y=1000
      z=400
  }
  width=1.65	;1805 mm de largeur
  height=1.4	;16205 mm de hauteur
  length=3.55	;4259 mm de longueur
  manual_box=0
model
{
  file=body_5p.dof
}
  model_incar
  {
     file=body_5p.dof
  }
  model_lightroad_l
  {
    file=lum.dof
  }
  model_braking_l
  {
    file=freins.dof
  }
}
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=50
  }
}
steer
{
  x=0.2535
  y=0.3222
  z=0.6023
  xa=26
  lock=1350		;3,8 tours de butée a butée
  linearity=0.8	        
  model
  {
    file=volant.dof
  }
}
engine
{
  mass=1
  idle_rpm=800
  curve_torque=1108.crv
  max_torque=0.93   ;82,4Nm a 2500tours, 45Ch a 4400tours soit 245Nm                            
  torque_reaction=0.88
  autoclutch_rpm=1500
  starter=0
  starter_torque=140
  stall_rpm=400
  start_rpm=780
  start_stalled=1
  shifting
  {
    automatic=0
    shift_up_rpm=2700      ;4900 pour decrasser la vanne EGR :)
    shift_down_rpm=1250
    time_to_declutch=300
    time_in_neutral=180
    time_to_clutch=300
    time_to_declutch_down=300
    time_in_neutral_down=180
    time_to_clutch_down=300
  }
  inertia
  {
    engine=0.14
  }
  braking_coeff=3.5
}

clutch
{
  max_torque=100 ;110% du couple maximum moteur
}

gearbox
{
  gears=6
  gear0
  {
    ratio=-3.545
    inertia=0.2
  }
  gear1
  {
    ratio=3.833 
    inertia=0.02
  }
  gear2
  {
    ratio=2.235  
    inertia=0.04
  }
  gear3
  {
    ratio=1.458 
    inertia=0.06
  }
  gear4
  {
    ratio=1.171
    inertia=0.08
  }
  gear5
  {
    ratio=0.949
    inertia=0.08
  }
}

handbrakes
{
  wheels=23
}
differential
{
  type=1
  ratio=3.1
  inertia=0.1
  locking_coeff=0
  output0=0
  output1=1
}
aero
{
   body
   {
      center=0 0.08 -0.2
      cx=0.36
      area=1.77
   }
   wings=2
   wing0
   {
      name=Front axle lift
      span=1
      cord=1
      coeff_drag=0
      coeff_down=-5
      center=0 0 1.3125
      angle=0
      angle_offset=1
   }
   wing1
   {
      name=Rear axle lift
      span=1
      cord=1
      coeff_drag=0
      coeff_down=-5
      center=0 0 -1.3125
      angle=0
      angle_offset=1
   }
}
antirollbar
{
  count=1
  arb0
  {
    susp_left=0
    susp_right=1
    k=14000
  }
}
susp_front
{
  y=0
  z=1.48		;Empatement de 2430mm
  restlen=0.3 ;0.3
  minlen=0.1
  maxlen=0.35		
  k=16500		
  bump_rate=6000	
  bump_function=0
  rebound_rate=1800	
  rebound_function=0
  camber_change_steering=-0.1
  camber_change_per_m=0.1
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.66
    z=0
  }
}
susp_rear
{
  y=0
  z=-0.95   ;c'est des fausses! (+2cm)
  restlen=0.3 ;0.3
  minlen=0.08
  maxlen=0.38
  k=20500		
  bump_rate=3000	
  bump_function=0
  rebound_rate=1800	
  rebound_function=0
  camber_change_per_m=0.2
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.75
    z=0
  }
}
susp0~susp_front
{
  x=0.64	;Voie avant de 1280mm
}
susp1~susp_front
{
  x=-0.64
}
susp2~susp_rear
{
  x=0.62	;Voie arrière de 1240mm
}
susp3~susp_rear
{
  x=-0.62
}

pacejka
{
  a0=1.4	
  a1=-46	;ps (from pacejkaseries.txt, 205/55 R16)
  a2=1150
  a3=2000
  a4=11
  a5=0.015
  a6=-0.25
  a7=1.0
  a8=-0.03
  a9=-0.001
  a10=-0.15
  a111=-4.32	;ps
  a112=-0.29
  a12=17.8
  a13=-2.4

  b0=1.5
  b1=-92	;ps doubled
  b2=1150
  b3=23.3
  b4=325
  b5=0.08
  b6=0.0
  b7=0.05
  b8=-0.024
  b9=0.015
  b10=0.25
  b11=-86
  b12=0.0
  
  c0=2.3
  c1=-3.8
  c2=-3.14
  c3=-1.0
  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.04
  c15=-1.029
  c16=0.27
  c17=-1.1

  optimal_slipratio=0.12
  optimal_slipangle=0.22
}


wheel_front
{
  x=0		;145/70 R13
  y=0
  z=0
  steering=1
  powered=1
  camber=-0.4
  lock=72
  mass=10
  inertia=1.2
  width=0.135
  radius=0.2596
  ackerman=1.225        ;flanc de 70%
  max_braking=1600
  max_handbrake_torque=900
  braking_factor=0.4
  tire_rate=145000 
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  powered=0
  camber=-0.25
  mass=10
  inertia=1.2
  width=0.135
  radius=0.2596  ;flanc de 70%
  max_braking=800
  max_handbrake_torque=000 
  braking_factor=0.2
  tire_rate=145000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  toe=-0.1
  model
  {
    file=rg.dof
    scale
    {
     x=0.911675443
     y=0.911675443
     z=0.911675443
    }
  }
  model2
  {
    file=rg_1.dof
    velocity=30
  }
  model3
  {
    file=rg_2.dof
    velocity=50
  }
}
wheel1~wheel_front
{
  toe=0.1
  model
  {
    file=rd.dof
    scale
    {
     x=0.911675443
     y=0.911675443
     z=0.911675443
    }    
  }
  model2
  {
    file=rd_1.dof
    velocity=30
  }
  model3
  {
    file=rd_2.dof
    velocity=50
  }
}
wheel2~wheel_rear
{
  toe=-0.1
  model
  {
    file=rg.dof
    scale
    {
     x=0.911675443
     y=0.911675443
     z=0.911675443
    }  
  }
  model2
  {
    file=rg_1.dof
    velocity=30
  }
  model3
  {
    file=rg_2.dof
    velocity=50
  }
}

wheel3~wheel_rear
{
  toe=0.1
  model
  {
    file=rd.dof
    scale
    {
     x=0.911675443
     y=0.911675443
     z=0.911675443
    }    
  }
  model2
  {
    file=rd_1.dof
    velocity=30
  }
  model3
  {
    file=rd_2.dof
    velocity=50
  }
}

camera0
{
  name=Driver
  fov=63
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.2969
    y=0.5705
    z=0.1
  }
  offset_to
  {
    x=0.40
    y=-0.2
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.2969
    y=0.5705
    z=0.1
  }
  offset_to
  {
    x=10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.5
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.2969
    y=0.5705
    z=0.1683
  }
  offset_to
  {
    x=-10
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.2969
    y=0.5705
    z=0.1683
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.1
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.7
    z=-4.4
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=14.25
    y=180
    z=0
  }
}
camera5
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=270
    z=0
  }
}
camera6
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-7
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.2
		y=-0.3
		z=-1.8
	}
	angle
	{
		x=0
		y=-170
		z=0
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}

}
camera8
{
	name=Bumper
	fov=60
	model=2
	wheels=0
	view=1
	offset
	{
		x=0
		y=-0.70
		z=2.4
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.45
		z=-4.25
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=-38
		z=-8
	}
}

audio
{
   horn
   {
      sample=horn.wav
   }
   skid
   {
      sample=skid.wav
   }
   acc_all
   {
      min_vol=1
      max_vol=1
   }
   accelerate_out
   {
      smp0~audio.acc_all
      {
         attack=200
         decay=1000
         sample=idle.wav
         min=800
         max=1500
         natural=750
         volume=3
      }     
      smp1~audio.acc_all
      {
         attack=1500
         decay=1000
         sample=2000a.wav
         min=1500
         max=2500
         natural=2000
      }     
      smp2~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=3000a.wav
         min=2500
         max=3500
         natural=2800
      }     
      smp3~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=4000a.wav
         min=3500
         max=6500
         natural=3800
      }     
      smp4~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=6000.wav
         min=4500
         max=5500
         natural=6000
      }   
      smp5~audio.acc_all
      {
         attack=1000
         decay=2000
         sample=6000.wav
         min=5500
         max=6500
         natural=6000
      }
  }        
  decelerate_out
  {
      smp0~audio.acc_all
      {
         attack=200
         decay=1000
         sample=idle.wav
         min=800
         max=1500
         natural=750
         volume=3
      }    
      smp1~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=2000.wav
         min=1500
         max=2500
         natural=2000

      }     
      smp2~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=3000.wav
         min=2500
         max=3500
         natural=3000        
      }      
      smp3~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=4000.wav
         min=3500
         max=6500
         natural=4000

      }     
      smp4~audio.acc_all
      {
         attack=1000
         decay=1000
         sample=6000.wav
         min=4500
         max=5500
         natural=6000

      }     
      smp5~audio.acc_all
      {
         attack=1000
         decay=2000
         sample=6000.wav
         min=5500
         max=6500
         natural=6000
      }
   }

   wind
   {
      smp0
      {
         sample=wind_ext.wav
         min=36.1111
         max=226
         attack=5.56
         decay=33
         natural=38
         volume=1
         pitch_scale=0
         pitch_offset=50
      }
   }
}