car
{
  name=Repus Petit Cabrio 1.6 16v Automatic
  year=2008
  credits=
  id=petit
  version=053b6
  comments=140hp
  wheels=4
  ff_factor=0.8
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=
    width=
    length=
  }
  cg
  {
    x=0
    y=0.27	;55 cm (~38%)
    z=0.25	;59/41% (61/39% empty)
  }
}
graphics
{
	intensity=1
  	shadow
  	{
    		model
    		{
      			file=body.dof
      			use_shaders=0
    		}
  	}
        generic
        {
                model0
                {
                        file=16.dof
                }
                model1
                {
                        file=exhaust2.dof
                }
                model2
                {
                        file=air_con2.dof
                }
        }
}
}
body
{
  mass=1200
  inertia
  {
      x=1900
      y=2100
      z=460
  }
  width=1.986	;1986 mm
  height=1.33	;1332 mm
  length=4.12	;4118 mm
  manual_box=0
  model
  {
    file=body_exp.dof
  }
  model_incar
  {
    file=body_exp.dof
  }
  model_braking_l
  {
    file=bls.dof
  }
   model_light_l
  {
    file=lights_exp.dof
  }
}
steer
{
  x=0.42
  y=0.66
  z=0.46
  xa=14
  lock=1152		;3.2 turns lock-to-lock, 10.50 m turning circle
  linearity=0.9         ;900/1152 = 0.78
  model
  {
    file=wheel_sport.dof
  }
}
engine
{
  mass=0
  idle_rpm=900
  max_rpm=7100
  curve_torque=torque16.crv
  max_torque=170 ;189 - 10%
  torque_reaction=0.2
  autoclutch_rpm=2800
  starter=1
  starter_torque=60
  stall_rpm=500
  start_rpm=1200
  start_stalled=0
  enable_stall=0
  
  	shifting
  	{
    		automatic=1
		fast=1
    		shift_up_rpm=2500
    		shift_down_rpm=1250
    		time_to_declutch=100
    		time_in_neutral=0
    		time_to_clutch=100
    		time_to_declutch_down=400
    		time_in_neutral_down=0
    		time_to_clutch_down=0
  	}
  inertia
  {
    engine=0.14
  }
  braking_coeff=2.6
}

clutch
{
  max_torque=200
}

gearbox
{
  gears=4
  gear0
  {
    ratio=-3.99
    inertia=0.11
    engine_map=1.5
  }
  gear1
  {
    ratio=2.05
    inertia=0.11
    engine_map=1.5
  }
   gear2
  {
    ratio=1.05
    inertia=0.08
    engine_map=1.5
  }
  gear3
  {
    ratio=0.65
    inertia=0.07
    engine_map=1.5
  }
  end_ratio=3.84
}

handbrakes
{
	wheels=23
}

differential
{
	type=1
	ratio=4.6
	inertia=0.1
	locking_coeff=100
	output0=0
	output1=1
}
abs
{
  enable=1
  max_velocity_ratio=1.11 
  min_velocity_ratio=1.09
  min_velocity=0.1
}
aero
{
   body
   {
      center=0 0 0
      cx=0.325
      area=2.22		;measured from model
   }
   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=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=14000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=18000
  }
}
susp_front
{
  y=0.12
  z=1.3325		
  restlen=0.23
  minlen=0.0
  maxlen=0.26		
  k=27000		
  bump_rate=1800	
  bump_function=0
  rebound_rate=3600	
  rebound_function=0
  anti_pitch=0.4
  roll_center
  {
    x=0
    y=-0.18		
    z=0
  }
}
susp_rear
{
  y=0.12
  z=-1.3325
  restlen=0.19
  minlen=0.0
  maxlen=0.22
  k=25000		
  bump_rate=1200	
  bump_function=0
  rebound_rate=3200	
  rebound_function=0
  anti_pitch=0.2
  roll_center
  {
    x=0
    y=-0.1	
    z=0
  }
}
susp0~susp_front
{
  x=0.759	;1518 mm front track
}
susp1~susp_front
{
  x=-0.759
}
susp2~susp_rear
{
  x=0.757	;1514 mm rear track
}
susp3~susp_rear
{
  x=-0.757
}

pacejka
{
  a0=1.4	
  a1=-46	;ps (from pacejkaseries.txt, )
  a2=1350
  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=1400
  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		;
  y=0
  z=0
  steering=1
  powered=1
  camber=0
  lock=65
  mass=32
  inertia=1
  width=0.205
  radius=0.321
  
  braking_factor=0.80
  tire_rate=140000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  x=0
  y=0
  z=0
  steering=0
  powered=0
  camber=0
  mass=32
  inertia=1
  width=0.205
  radius=0.321
  
  max_handbrake_torque=4000
  braking_factor=0.20
  tire_rate=140000
  pacejka~pacejka
  {
  }
}
wheel0~wheel_front
{
  toe=-0.1
  model
  {
    file=lfw.dof
  }
  model_brake
  {
    file=cfl.dof
  }
}
wheel1~wheel_front
{
  toe=0.1
  model
  {
    file=rfw.dof    
  }
  model_brake
  {
    file=cfr.dof
  }
}
wheel2~wheel_rear
{
  toe=-0.1
  model
  {
    file=lfw.dof    
  }
  model_brake
  {
    file=crl.dof
  }
}

wheel3~wheel_rear
{
  toe=0.1
  model
  {
    file=rfw.dof    
  }
  model_brake
  {
    file=crr.dof
  }
}
camera0
{
  name=Driver
  fov=55
  model=1
  view=0
  wheels=0
  offset
  {
    x=0.42
    y=0.89
    z=-0.1
  }
  offset_to
  {
    x=0.37
    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.4
    y=0.89
    z=-0.1
  }
  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
  }
}
camera2
{
  name=Driver, right
  fov=55
  model=1
  wheels=0
  view=1
  offset
  {
   x=0.4
    y=0.89
    z=-0.1
  }
  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=1
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.89
    z=-0.2
  }
  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=Rear chase
  fov=60
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  offset
  {
    x=0
    y=-0.8
    z=-6
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera5
{
  name=Exterior
  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=130
    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.8
    z=-6
  }
  angle
  {
    x=10
    y=0
    z=0
  }
}
camera7
{
  name=centerconsole
  fov=40
  model=1
  wheels=0
  view=1
  offset
  {
   x=0.0
    y=0.55
    z=-0.1
  }
  offset_to
  {
    x=0
    y=-0.55
    z=8
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.2
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera8
{
  name=Far
  fov=20
  model=0
  view=0
  wheels=0
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  offset
  {
    x=0
    y=-0.5
    z=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
  name=Hood
  fov=60
  model=0
  wheels=0
  view=0
  follow
  {
    pitch=1
    yaw=1
    roll=1
  }
  offset
  {
    x=0
    y=-1.1
    z=0.3
  }
  angle
  {
    x=5
    y=180
    z=0
  }
}
audio
{
  skid
  {
    volume=0.5
    sample=skid.wav
  }
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    ;sample=
  }
  shiftin
  {
    ;sample=
  }
  accelerate_out
  {
    smp0
    {
      sample=idle.wav
      volume=1
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1
    { 
      sample=engine22m.wav 
      volume=1.2
      min=1000
      max=1200
      natural=4500 
      decay=1000
      attack=2000
    }
    smp2
    { 
      sample=engine22.wav 
      volume=1.45
      min=2500
      max=10000
      natural=4400
      attack=3500
    }
  }  
  decelerate_out
   {
   smp0
      {
          sample=idle.wav
          volume=2
          min=300
          max=800
          decay=500
          natural=1800
      }
   smp1
      {
         sample=decc.wav
         min=500
         max=8000
         natural=5000
         volume=0.6
         attack=1300
      }
   }
  accelerate_in
  {
    smp0
    {
      sample=idle.wav
      volume=0.5
      min=300
      max=1500
      attack=50
      decay=800
      natural=800
    }
    smp1
    { 
      sample=engine22m.wav 
      volume=0.5
      min=1000
      max=1200
      natural=4500 
      decay=2000
      attack=1000
    }
    smp2
    { 
      sample=engine22.wav 
      volume=0.9
      min=2500
      max=10000
      natural=4400
      attack=3500
    }
  }  
  decelerate_in
   {
   smp0
      {
          sample=idle.wav
          volume=0.8
          min=300
          max=800
          decay=500
          natural=1800
      }
   smp1
      {
         sample=decc.wav
         min=500
         max=8000
         natural=5000
         volume=0.6
         attack=1300
      }
   }
  gearwhine
  {
    smp0
    {
      sample=tw-extonhigh.wav
      volume=0.03
      min=1
      max=2
      decay=1000
      natural=500
    }
  }
  wind
  {
    smp0
    {
      sample=wind.wav
      volume=1.2
      min=11
      max=150
      attack=10
      natural=50
    }
  }
}