car
{
   name=Renault 11 GTL
   year=1982
   credits=Model by xiorxorn, conversion by Joseag/Skybh, thanks to foxo, cosmo° and Caio !
   comments=1397cm 60ch ŕ 5250tr/min, 101,92Nm ŕ 3000tr/min, 858kg, Cx :0.35
   id=r11gtl
   wheels=4
   skid
   {
      sample=skid.wav
   }
   cg
   {
      x=0
      y=0.334    ;0,536m 38%
      z=0.129   ;525kg ŕ l'avant, 345 a l'arriere
   }
      ff_factor=1.0
      version=1
   }
   graphics
   {
      shadow
      {
         model
         {
            file=body.dof
	    use_shaders=0
         }
       intensity=0.3
       intensity_dark=0.3
       intensity_light=0.3
      }
      generic
      {
      model0
      {
       file=conducteur.dof
      }
      model1
      {
       file=barres de toit.dof
      }
      model2
      {
       file=attache remorque.dof
      }
   }
}

body
{
   mass=853 ; 858 (car) + 20 (fuel) + 75 (occupation) - 100kg (wheels)
   ; Inertia values; X/Y/Z=pitch, yaw (heading), roll
   inertia
   {
      x=1583
      y=1739
      z=616
   }
   width=1.660
   height=1.406
   length=3.970
   manual_box=1
   box_offset=0 0 0
   model
   {
      file=body.dof
      offset
      {
         x=0
         y=0
         z=0
      }
   }
   model_incar
   {
      file=int.dof
   }
   model_braking_l
   {
      file=brakes.dof
   }
   model_lightroad_l
   {
      file=lights.dof
   }
}
steer
{
   ; Position
   x=0.3108
   y=0.5937
   z=0.453
   ; Rotation towards the driver
   xa=18
   ; Max angle of rotation (angle = -lock/2..lock/2)
   lock=1440
   linearity=0.8
   model
   {
      file=volante.dof
   }
}
engine
{
   x=0
   y=0.4
   z=1.1125
   size=.25
   mass=0
   idle_rpm=800
   autoclutch_rpm=1200
   curve_torque=r11.crv
   max_torque=0.87
   torque_reaction=0.4
   starter=1
   autoclutch=1
   starter_torque=70
   start_stalled=1
   stall_rpm=500
   start_rpm=650
   shifting
   {
      automatic=0
      fast=0
      shift_up_rpm=3200
      shift_down_rpm=1800
      time_to_declutch=300
      time_to_clutch=300
      time_in_neutral=150
      time_to_declutch_down=300
      time_in_neutral_down=150
      time_to_clutch_down=300
      blip_throttle=0
      cut_throttle=1
   }
   jitter
   {
     amplitude=0
     time_min=100
     time_var=500
     frequency_min=4
     frequency_var=9
   }
   inertia
   {
      engine=0.35
     
   }
   braking_coeff=2.5
   rolling_friction_coeff=0.1
   friction=0
}
traction_control
{
   enable=0
   max_velocity_ratio=1.1
   min_velocity_ratio=1.0
   min_velocity=0
}
abs
{
   enable=0
   max_velocity_ratio=1.1
   min_velocity_ratio=1.0
   min_velocity=0
}
gearbox
{
   gears=6
   gear0
   {
      inertia=0.2
      ratio=-3.545
      engine_map=1.0
   }
   gear1
   {
      inertia=0.1
      ratio=3.545
      engine_map=1.0
   }
   gear2
   {
      inertia=0.02
      ratio=2.062
      engine_map=1.0
   }
   gear3
   {
      inertia=0.03
      ratio=1.320
      engine_map=1.0
   }
   gear4
   {
      inertia=0.04
      ratio=0.903
      engine_map=1.0
   }
   gear5
   {
      inertia=0.05
      ratio=0.758
      engine_map=1.0
   }
}
clutch
{
   max_torque=110
}
handbrakes
{
   ; Apply to which wheels? (give indices starting at 0; mostly 23, the rears)
   wheels=23
}
differential
{
   type=1
   ratio=4.214
   inertia=0
   locking_coeff=0
   output0=0
   output1=1
}
aero
{
   body
   {
      center=0 0 0
      cx=0.35
      area=1.825
   }
  wings=1
  wing0
  {
    name=Front wing
    span=1.68
    cord=1.09
    coeff_drag=0 ;0.81
    coeff_down=-3.5
    center=0 0.3593 0.129  ;1.2636
    angle=6
    angle_offset=1
  }
}
antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=0
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=0
        }
}
susp_front
{
   y=0.15
   z=1.24
   restlen=0.15
   maxlen=0.15
   minlen=0   
   roll_center
   {
      x=0
      y=-0.18
      z=0
   }
   anti_pitch=0
   k=42000
   bump_rate=1800
   camber_change_per_m=0.04
   bumpstop_len=0.02
   bumpstop_k=112000
   bump_max=
   bump_fonction=0
   toe_change_per_m=0
   rebound_rate=3600
   caster_offset=0
   caster_angle=0
   kingpin_angle=0
   
}
susp_rear
{
   y=0.18
   z=-1.24
   restlen=0.25
   maxlen=0.25
   minlen=0
   anti_pitch=0.3
   k=15000
   bumpstop_len=0.04
   bumpstop_k=112000 
   bump_max=
   bump_fonction=0
   camber_change_per_m=0.07
   toe_change_per_m=0
   bump_rate=1000
   rebound_rate=2000
   caster_offset=0
   caster_angle=0
   kingpin_angle=0
   roll_center
   {
      x=0
      y=-0.1
      z=0
   }
  model
  {
    file=
  }
}
susp0~susp_front
{
  x=0.695
  camber_change_steering=0.06
  kingpin_offset=0
}
susp1~susp_front
{
  x=-0.695
  camber_change_steering=-0.06
  kingpin_offset=0
}
susp2~susp_rear
{
  x=0.68
  kingpin_offset=0
}
susp3~susp_rear
{
  x=-0.68
  kingpin_offset=0
}
pacejka_front
{

  a0=1.3

  a1=-69.812983
  a2=1270
  a3=1040
  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=1200
  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=1270
  a3=1040
  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=1200
  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
   width=0.155
   radius=0.2736
   inertia=1
   reverse_steering=0
   inboard_brakes=0
   brake_heating=0.0007
   brake_dissipation=0.00018
   brake_max_temp=500
   skidding
   {
      long_start=0
      long_max=21.0
      long_start_n=0
      long_max_n=21.0
      lat_start=0
      lat_max=21
   }
}
wheel_front~wheel_common
{
   steering=1
   lock=64
   camber=-1
   max_braking=2800
   braking_factor=0.75
   max_handbrake_torque=0
   friction_road=1
   ackerman=1
   tire_rate=140000
}
wheel0~wheel_front
{
   model
   {
      file=ruedaizda.dof
   }
   x=0
   y=0
   z=0
   toe=0.2
   model_brake
   {
      file=f_g.dof
   }
   pacejka~pacejka_front
}
wheel1~wheel_front
{
   model
   {
      file=ruedadrcha.dof
   }
   x=0
   y=0
   z=0
   toe=-0.2
   model_brake
   {
      file=f_d.dof
   }
   pacejka~pacejka_front
}
wheel_rear~wheel_common
{
   steering=0
   friction_road=1.0
   tire_rate=140000
   max_braking=900
   braking_factor=0.25
   max_handbrake_torque=2300
   lock=0
   camber=-1
   x=0
   y=0
   z=0
}
wheel2~wheel_rear
{
   toe=0
   model
   {
      file=ruedaizda.dof
   }
   model_brake
   {
      file=s_a_g.dof
   }
   pacejka~pacejka_rear
}
wheel3~wheel_rear
{
   toe=0
   model
   {
      file=ruedadrcha.dof
   }
   model_brake
   {
      file=s_a_d.dof
   }
   pacejka~pacejka_rear
}
camera0
{
	name=Driver
	fov=63
	model=1
	wheels=0
	view=1
	offset
	{
		x=0.3793
		y=0.8717
		z=0.01
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}
camera1
{
	name=Driver
	fov=63
	model=1
	wheels=0
	view=1
	offset
	{
		x=0.3793
		y=0.8717
		z=0.01
	}
	offset_to
	{
		x=10
		y=0.5
		z=10
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}
camera2
{
	name=Driver
	fov=63
	model=1
	wheels=0
	view=1
	offset
	{
		x=0.3793
		y=0.8717
		z=0.01
	}
	offset_to
	{
		x=-10
		y=0.5
		z=10
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}
camera3
{
	name=Driver
	fov=-63
	model=0
	wheels=0
	view=1
	offset
	{
		x=0.3793
		y=0.8717
		z=0.01
	}
	offset_to
	{
		x=-1
		y=0.5
		z=-10
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	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.4
    z=-4.5
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=14
    y=180
    z=0
  }
}
camera5
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.4
    z=-7
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=15
    y=270
    z=0
  }
}
camera6
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.4
    z=-7
  }
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera7
{
 offset
 {
  x=0.95
  y=-0.35
  z=-2.350000
 }
 angle
 {
  x=0
  y=-170
  z=0
 }
 follow
 {
  pitch=1
  yaw=1
  roll=1
 }
 fov=60
 model=0
 wheels=0
 view=0
 name=Effect Cam 4 - Wheel
}
camera8
{
	name=Bumper
	fov=60
	model=2
	wheels=0
	view=1
	offset
	{
		x=0
		y=-0.3338
		z=1.9711
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
camera9
{
	name=Bonnet
	fov=45
	model=0
	wheels=0
	view=0
	offset
	{
		x=0
		y=-0.4
		z=-6.6
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=32
		z=0
	}
}

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
      }
      smp1
      {
         sample=road.wav
         min=0
         max=251
         attack=0
         decay=0
         natural=12
         volume=6
         pitch_scale=0
         pitch_offset=50
      }
   }
}