car
{
  name=Mitsubushi Eclipse GSX
  year=1999
  credits=converted by Mnichu&Szytmon
  comments=
  id=EclipseGSX
  version=090b
  wheels=4        
ff_factor=0.5
  skid
  {
    sample=skid.wav
  }
  shadow
  {
    texture=shadow.tga
    width=2.15
    length=5
    offset_z=-0.03
  }
  cg
  {
    x=0
    y=-0.31
    z=0.135
  }
}
lights
{
  ; Projected lights
  light0
  {
    texture=lampy.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=4.0
    ; Distance to car
    z=1.20
    ; Pitching with respect to car (in degrees)
    pitch=7
  }
}
body
{
  mass=1150
  restitution_coeff=0.25
  inertia
  {
    x=3060
    y=3350
    z=535
  }
  x=0
  y=0
  z=0
  width=1.76
  height=1.0
  length=4.6
  manual_box=1
  cockpit_start=1
  cockpit_length=1
  model
  {
    file=GSX.dof
  }
  model_incar
  {
    file=GSX.dof
  }
 model_light_l
  {
    file=lights.dof
  }

  model_braking_l
  {
    file=brakes.dof
   
  }
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_l
  {
    ; Reverse gear indicators
    file=re.dof
  }
  model_reverse_r
  {
    file=re.dof
}
}
steer
{
  x=0.3800
  y=0.1900
  z=0.4
  xa=15
  lock=900
  model
  {
      file=kierownica.dof
  }
}
engine
{
  mass=150
  idle_rpm=850
  max_rpm=8800
  max_torque=200

  sample=engine.wav
  sample_rpm=1000

  curve_torque=torque.crv
  autoclutch_rpm=1200
  starter=1
  starter_torque=65
  start_stalled=1
  stall_rpm=500
  start_rpm=850
  reaction=0

  shifting
  {
    automatic=0
    shift_up_rpm=6200
    shift_down_rpm=2500
    time_to_declutch=325
    time_to_clutch=135
  }
  inertia
  {
    engine=0.29
    final_drive=0.2
  }
  braking_coeff=4.00
}
;----------------------------------------------------------------------
;Gearbox:

gearbox
{
	gears=6

	gear0
	{
		ratio=-3
		inertia=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=3.23
		inertia=0 ;0.01
	}

	gear2
	{
		ratio=2.105
		inertia=-0.02 ;0.02
	}

	gear3
	{
		ratio=1.458
		inertia=0.03
	}

	gear4
	{
		ratio=1.107
		inertia=0.04
	}

	gear5
	{
		ratio=0.848
		inertia=0.06
	}
}
;----------------------------------------------------------------------
;Clutch:

clutch
{
  max_torque=450
}
;----------------------------------------------------------------------
;Handbrakes:

handbrakes
{
  wheels=23
}
;----------------------------------------------------------------------
;Differential:

differential
{
  type=1
  ratio=4.25
  inertia=0
  locking_coeff=100
  output0=2
  output1=3
}
abs
{
  enable=1
  max_velocity_ratio=1.09 
  min_velocity_ratio=1.08
  min_velocity=1
}
traction_control
{
  	enable=1
  	min_velocity=3
  	max_velocity_ratio=1.050
  	min_velocity_ratio=1.300

}
;----------------------------------------------------------------------
;Aero:

aero
{
  body
  {
    center=0 0 0
    cx=0.32
    area=2.19
  }
}
;----------------------------------------------------------------------
;Antirollbar:

antirollbar
{
  count=2
  arb0
  {
    susp_left=0
    susp_right=1
    k=40000
  }
  arb1
  {
    susp_left=2
    susp_right=3
    k=35000
  }
}
susp_front
{
	y=0.05
	z=1.4
	restlen=0.451			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=33448			;@ static load and 1.316 NF SR
	bump_rate=3000		;0.7	1944
	rebound_rate=5243	;0.7	6531
	bump_function=0
	rebound_function=0
	anti_pitch=0.2
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.5
		z=0
	}
}

susp_rear
{
	y=0.05
	z=-1.25
	restlen=0.420			;305	225kg
	minlen=0.2
	maxlen=0.43
	k=35491			;@ static load and 1.502 NF SR
	bump_rate=3200		;0.75	1852
	rebound_rate=6500	;0.8	5191
	bump_function=0
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.14
	roll_center
	{
		x=0
		y=-0.5
		z=0
	}
}

susp0~susp_front
{
	x=0.82
	camber_change_steering=0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;8 degrees static caster -0.0235	
	toe_change_per_m=0
}
susp1~susp_front
{
	x=-0.82
	camber_change_steering=-0.147	;0.25 rad ~ 14.5 degree camber with 1 radian rotation of steering @ 8 degree caster
	caster_offset=-0.0235		;5.78 degrees static caster -0.0235
	toe_change_per_m=0
}

susp2~susp_rear
{
	x=0.82
}
susp3~susp_rear
{
	x=-0.82
}

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
{
  ; Pacejka constants for all tires
  ; Lateral force
a0=1.45 
a1=-37.5
a2=1380
a3=1650
a4=9.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
; Longitudinal force
  b0=1.45
  b1=-75
  b2=1510
  b3=23.3
  b4=350
  b5=0
  b6=0.00
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  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.14 
  c15=-1.029 
  c16=0.27 
  c17=-1.1 
}
pacejka_rear
{
a0=1.35
a1=-37.5
a2=1450
a3=1700
a4=9.4
a5=0.013
a6=-0.336
a7=1.14
a8=0.019
a9=-0.019
a10=-0.18
a111=-20.7
a112=-0.021
a12=0.48
a13=12.2
 
; Longitudinal force
  b0=1.55
  b1=-75
  b2=1570
  b3=23.3
  b4=375
  b5=0
  b6=0
  b7=0.055
  b8=-0.024
  b9=0
  b10=0.26
  b11=-86
  b12=0
; Aligning moment
  c0=2.3 
  c1=-3.8 
  c2=-3.14 
  c3=0.24
  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.14 
  c15=-1.029 
  c16=0.27 
  c17=-1.1 
}

wheel_front
{
  y=0
  z=0
  steering=1
  lock=71.2
  powered=1
  mass=15
  inertia=1.9
  radius=0.374	;225/40 R19
  rolling_coeff=0.0150
  friction_road=1
  max_braking=2100
  braking_factor=1
  tire_rate=180000
  pacejka~pacejka
  {
  }
}
wheel_rear
{
  y=0
  z=0
  steering=0
  mass=15
  inertia=1.9
  radius=0.374	;255/35 R19
  rolling_coeff=0.015
  friction_road=1
  max_braking=900
  max_handbrake_torque=2100
  braking_factor=1
  tire_rate=180000
  pacejka~pacejka_rear
  {
  }
}
wheel0~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33	;-0.72
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.2247
  toe=-0.36
  camber=-0.33	;-0.72
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25	;-1.82
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}
wheel3~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.25	;-1.82
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=
    offset
    {
      z=-0.16
    }
  }
}

camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.36
    y=0.4
    z=-0.08
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.49
    z=-0.03
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=60
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.37
    y=0.49
    z=-0.03
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  name=Driver, rear
  fov=-65
  model=0
  wheels=0
  view=0
  offset
  {
    x=0.1
    y=0.49
    z=-0.03
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  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.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=180
    z=0
  }
}
camera5
{
  name=Chase rear
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=1
    roll=0
  }
  angle
  {
    x=15
    y=0
    z=0
  }
}
camera6
{
  name=Free exterior
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.5
    z=-5
  }
  follow
  {
    pitch=0
    yaw=0
    roll=0
  }
  angle
  {
    x=10
    y=180
    z=0
  }
}
camera7
{
	name=Side
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=1.267185
		y=0.129164
		z=-2.6
	}
	angle
	{
		x=1.361085
		y=-165.972626
		z=1.298599
	}
	follow
	{
		pitch=0
		yaw=1
		roll=1
	}

}
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=-17
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.75
    		z=0.55
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}
;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{
  horn
  {
    sample=horn.wav
  }
  shiftout
  {
    sample=shiftout.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  acc_all
  {
    attack=2600
    decay=2600
    min_vol=0
    max_vol=5
  }
	throttle_off
	{
		smp0~audio.acc_all
    		{
			sample=blowoff.wav
			natural=30000
			volume=1.4
			min=0
      		max=4800
		}
	}
   accelerate_in
   {
    volume=0.5
      smp0~audio.acc_all
      {
         sample=idle.wav
         volume=0.8
         min=300
         max=800
         natural=900
         decay=300
      }
      smp1~audio.acc_all
      {
         sample=verylow.wav
         volume=1
         min=500
         max=2000
         natural=1800
      }
      smp2~audio.acc_all
      {
         sample=mid.wav
         volume=1.5
         min=1000
         max=10000
         natural=3500
      }
      smp3~audio.acc_all
      {
         sample=mid.wav
         volume=1.5
         min=5400
         max=10000
         natural=5600
      }
   }

   decelerate_in
   {
    volume=0.5
      smp0~audio.acc_all
      {
         sample=idle.wav
         volume=0.8
         min=300
         max=800
         natural=900
         decay=300
      }
      smp1~audio.acc_all
      {
         sample=verylow.wav
         volume=1
         min=500
         max=2000
         natural=1800
      }
      smp2~audio.acc_all
      {
         sample=mid.wav
         volume=1.5
         min=1000
         max=10000
         natural=3500
      }
      smp3~audio.acc_all
      {
         sample=turbo.wav
         volume=1.8
         min=4400
         max=10000
         natural=5600
      }
   }

   accelerate_out
   {
      smp0~audio.acc_all
      {
         sample=idle.wav
         volume=0.8
         min=300
         max=800
         natural=900
         decay=300
      }
      smp1~audio.acc_all
      {
         sample=verylow.wav
         volume=1
         min=500
         max=2000
         natural=1800
      }
      smp2~audio.acc_all
      {
         sample=mid.wav
         volume=1.5
         min=1000
         max=10000
         natural=3500
      }
      smp3~audio.acc_all
      {
         sample=mid.wav
         volume=1.5
         min=5400
         max=10000
         natural=5600
      }
      smp4~audio.acc_all
      {
         sample=turbo.wav
         volume=1.8
         min=4400
         max=10000
         natural=5600
      }
   }

   decelerate_out
   {
      smp0~audio.acc_all
      {
         sample=idle.wav
         volume=0.8
         min=300
         max=800
         natural=900
         decay=300
      }
      smp1~audio.acc_all
      {
         sample=verylow.wav
         volume=1
         min=500
         max=2000
         natural=1800
      }
      smp2~audio.acc_all
      {
         sample=mid.wav
         volume=1.5
         min=1000
         max=10000
         natural=3500
      }
   }
   wind
   {
      smp0
      {
         volume=2
         sample=wind1.wav
         pitch_scale=2
         pitch_offset=2
         ; Speeds in m/s
         min=.5
         max=9999
         natural=20
      }
      smp1
      {
         volume=.5
         sample=
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}