car
{
  name=Honda Civic VTi EG6 (European & Brazilian)
  year=1993
  credits=Converted by AmgFan. 0-100 in 7.9, top 215 km/h
	comments=Honda B16A2 DOHC VTEC 1.6 16V, 1595cm³, 160 hp @ 7600 rpm, 15.3 Kgfm @ 7000 rpm
  id=eg693
  version=090b
  wheels=4
  shadow
  {
    texture=shadow.tga
    width=2.2
    length=4.7
    offset_z=0.1
    offset=0
  }
	cg
	{
		x=0
		y=-0.13
		z=0.33
	}
	ff_factor=0.25
}

particles
{ 
backfire
{
exhaust0
{
pos=-0.42 -0.35 -1.88
normal=0 0 -1
} 
type=backfire
; type=backfire_long
min_rpm=8000
; min_rpm=0
; suppose car comes from 9000 rpm for example. Then backfiring can happen when max_rpm is reached
max_rpm=8500
; max_rpm=12000
; high backfire likeliness for rally cars
likeliness_percentage=130
; likeliness_percentage=100
}
}

body
{
	x=0
	y=0
	z=0
	mass=1200 ;1200	;1480kg kerb weight, -140kg unsprung +80kg driver 20kg fuel
	inertia
	{
            x=1900
            y=2100
            z=460
	}
	width=1.64
	height=1.20
	length=3.71
	manual_box=1
	model
	{
		file=civic.dof
	}
	model_incar
	{
		file=civic.dof
	}
	model_light_l
	{
		file=lights.dof
	}
	model_braking_l
	{
		file=brakes.dof
	}
 model_lightroad_l
 {
  file=lightsin.dof
 }
  model_reverse_r
  {
    file=re.dof
}
}
lights
{
  ; Projected lights
  light0
  {
    texture=light.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=3.5
    ; Distance to car
    z=0.5
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
}
flares
{
  ; Front lights
  flare0
  {
    pos=-0.55 -0.026 1.93
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare1
  {
    pos=0.55 -0.026 1.93
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare2
  {
    pos=-0.55 -0.26 2.03
    color=1.0 0.6 0.4
	normal=0.05 0 1
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  flare3
  {
    pos=0.55 -0.26 2.03
    color=1.0 0.6 0.4
	normal=0.05 0 1.01
	z_offset=-2500
	size_factor=1.2
	intensity=1
        hor_scale=2
  }
  ; Rear lights
  flare4
  {
    pos=0.49 0.08 -1.88
	normal=-0.05 0 -0.5
	color=1.0 0.0 0.0
	size_factor=1
	intensity=0.7
	z_offset=-1000
  }
  ; Brake lights
  flare5
  {
    rule=brake
    pos=-0.74 0.08 -1.81
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
  flare6
  {
    rule=brake
    pos=0.74 0.08 -1.81
	normal=0 0 -1
	color=1.0 0.0 0.0
	size_factor=0.7
	intensity=0.5
	z_offset=-1000
  }
}

steer
{
	x=0.32
	y=0.2
	z=0.28
	xa=15.9		
	lock=1080		
	linearity=0.5
	model
	{
		file=str.dof
	}
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=750
	max_rpm=8200
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=torquevti3.crv
	max_torque=150.5
	shifting
	{
		automatic=0
      shift_up_rpm=8000
      shift_down_rpm=4500
      time_to_declutch=100
		time_to_clutch=80
		time_in_neutral=100
		time_to_declutch_down=135
		time_to_clutch_down=135
		time_in_neutral_down=135
	}
	inertia
	{
		engine=0.24
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=engine.wav
	sample_rpm=5900
}

;----------------------drivetrain----------------------


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
	}
}

differential
{
	type=1
	ratio=4.4
	inertia=0.1
	locking_coeff=50
	output0=0
	output1=1
}

clutch
{
	max_torque=310
}
handbrakes
{
	wheels=23
}
aero
{
	body
	{
		center=0 0 0
		cx=0.31 ;real ctr data
		area=1.848
	}
	wings=1
	wing0
	{
		name=Rear spoiler
		span=1
		cord=1
		coeff_drag=0
		coeff_down=10
		center=0 0 -1
		angle=0
		angle_offset=10
	}
}


antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=12500
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=12250
	}
}

susp_front
{
	y=0.03
	z=1.3
	restlen=0.411			;293	395kg
	minlen=0.22
	maxlen=0.46
	k=43781.6943144			;@ static load and 1.316 NF SR
	bump_rate=4600		;0.7	1944
	rebound_rate=4600	;0.7	6531
	bump_function=0
	rebound_function=0
	anti_pitch=0.1
	camber_change_per_m=0.067
	roll_center
	{
		x=0
		y=-0.552	;60mm
		z=0
	}
}

susp_rear
{
	y=0.01
	z=-1.276
	restlen=0.370			;305	275kg
	minlen=0.2
	maxlen=0.43
	k=43781.6943144			;@ static load and 1.502 NF SR
	bump_rate=4600		;0.75	1852
	rebound_rate=4200	;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.504	;120mm
		z=0
	}
}

susp0~susp_front
{
	x=0.76
	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.76
	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.76
}
susp3~susp_rear
{
	x=-0.76
}

;----------------------tyres----------------------

tire_model_front
{
	damping_predict_lat=0
	damping_predict_long=0
}
tire_model_rear
{
	damping_predict_lat=0
	damping_predict_long=0
}
pacejka
{
    	a0=1.25
    	a1=-35
    	a2=1250
    	a3=2100
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=-4.3
    	a112=-0.29
    	a12=17.8
    	a13=-2.4

    	b0=1.5
    	b1=-70
    	b2=1300 ;1550
    	b3=21
    	b4=325
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0.015
    	b10=0.4
    	b11=-50
    	b12=0

    	c0=2.2
    	c1=-4
    	c2=-3
    	c3=-1
    	c4=-7
    	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

    	optimal_slipratio=0.11
    	optimal_slipangle=0.157
}

;----------------------wheels----------------------

wheel_front
{
	y=0
	z=0
	steering=1
	powered=1
	lock=52
	mass=15.8
	inertia=0.3990519
	radius=0.3
	rolling_coeff=0.015
	max_braking=1100
	braking_factor=1
	tire_rate=160000
	pacejka~pacejka
}

wheel_rear
{
	y=0
	z=0
	steering=0
	powered=0
	mass=15.8
	inertia=0.3990519
	radius=0.3
	rolling_coeff=0.0150
	max_braking=500
	braking_factor=0.25
	max_handbrake_torque=3500
	tire_rate=160000
	pacejka~pacejka
}

wheel0~wheel_front
{
  x=0
  ackerman=1.1
  toe=-0.36
  camber=-1
  model
  {
    file=lf.dof
  }
  model_brake
  {
    file=caliper_left.dof
  }
}
wheel1~wheel_front
{
  x=0
  ackerman=1.1
  toe=0.36
  camber=-1
  model
  {
    file=rf.dof
  }
  model_brake
  {
    file=caliper_right.dof
  }
}
wheel2~wheel_rear
{
  x=0
  toe=-0.37
  camber=-1.5
  model
  {
    file=lf.dof
    offset
    {
    x=-0.014
    }
  }
  model_brake
  {
    file=caliper_left1.dof
  }
}
wheel3~wheel_rear
{
  x=0
  toe=0.37
  camber=-1.5
  model
  {
    file=rf.dof
    offset
    {
    x=0.014
    }
  }
  model_brake
  {
    file=caliper_right1.dof
  }
}

;	------------------ 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
  }
	gearwhine
	{
		smp0
		{
		sample=driveshaft.wav
		natural=240
		volume=0.2
		}
	}
   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=5500
         natural=3500
      }
      smp3
      {
         sample=high.wav
         volume=2
         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=5500
         natural=3500
      }
      smp3
      {
         sample=high.wav
         volume=2
         min=5400
         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=5500
         natural=3500
      }
      smp3
      {
         sample=high.wav
         volume=2
         min=5400
         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=5500
         natural=3500
      }
      smp3
      {
         sample=high.wav
         volume=2
         min=5400
         max=10000
         natural=5600
      }
   }
   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=driveshaft.wav
         pitch_scale=.5
         pitch_offset=.7
         ; Speeds in m/s
         min=.5
         max=9999
         natural=22
      }
   }
}

;----------------------driving aids----------------------

traction_control
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.05
	enable=0
}

abs
{
	max_velocity_ratio=1.1
	min_velocity_ratio=1.1
	enable=1
}


;---------------------------------------------
;Cameras
;---------------------------------------------

camera0
{
  name=Driver
  fov=70
  model=1
  wheels=0
  view=1
  offset
  {
    x=0.32
    y=0.48
    z=-0.18
  }
  offset_to
  {
    x=0.43
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    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.35
    y=0.47
    z=-0.18
  }
  offset_to
  {
    x=10.43
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    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.35
    y=0.47
    z=-0.18
  }
  offset_to
  {
    x=-9.57
    y=0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    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.45
    z=-0.18
  }
  offset_to
  {
    x=-1
    y=0.5
    z=-10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0
  }
  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
	}
}