car
{
	name=Honda Civic Type-R
	year=2004
	credits=Model: EMZone, Conversion: johnthelemon
	comments=2.0L 16V, 196Nm@5900Rpm, 197Bhp@7600Rpm
	id=honda_civic_type_r
	version=090
	wheels=4
	skid
	{
		sample=skid.wav
	}
	shadow
	{
		texture=shadow.tga
		width=2.1
		length=4.35
	}
	cg
	{
		x=0
		y=0
		z=0
	}
	ff_factor=0.25
}

graphics
{
  shadow
  {
    model
    {
      file=shadow.dof
      use_shaders=1
    }
    intensity=0.3
  }
  generic
  {
    model0
    {
      file=driver_body.dof
      offset
      {
        x=0.403
        y=0.345
        z=-0.185
      }
    }
  }
}

pilot
{
  helmet
  {
    model
    {
      file=driver_head.dof
    }
    pos=0.403 0.345 -0.185
  }
}

wipers
{
  count=3
  wiper0
  {
    x=0.655
    y=0.28
    z=1.39
    xa=60
    min_angle=90
    max_angle=10
    model
    {
      file=wiper_left.dof
    }
  }
  wiper1
  {
    x=0.22
    y=0.315
    z=1.42
    xa=65
    min_angle=90
    max_angle=0
    model
    {
      file=wiper_right.dof
    }
  }
  wiper2
  {
    x=0
    y=0.44
    z=-2.14
    xa=-45
    min_angle=90
    max_angle=-90
    model
    {
      file=wiper_rear.dof
    }
  }
}

lights
{
  ; Projected lights
  light0
  {
    texture=light0.tga
    ; Field of view (vertical)
    fov=35
    ; Aspect (horizontal)
    aspect=4.5
    ; Distance to car
    z=0.2
    ; Pitching with respect to car (in degrees)
    pitch=0
    ; Fall-off distance
    far=100
  }
  light1
  {
    texture=light1.tga
    ; Field of view (vertical)
    fov=25.0
    ; Aspect (horizontal)
    aspect=1
    ; Distance to car
    z=2
    ; Pitching with respect to car (in degrees)
    pitch=10
  }
}

flares
{
  ; Headlights
  flare0
  {
    pos=0.6485 -0.017 2.16
    color=0.5 0.75 1
    normal=0 0 1
    z_offset=-2500
    size_factor=1.25
    intensity=0.25
    hor_scale=1
  }
  flare1
  {
    pos=-0.6485 -0.017 2.16
    color=0.5 0.75 1
    normal=0 0 1
    z_offset=-2500
    size_factor=1.25
    intensity=0.25
    hor_scale=1
  }
  ; Fog lights
  flare2
  {
    pos=0.5188 -0.354 2.41
    color=0.5 0.75 1
    normal=0 0 1
    z_offset=-2500
    size_factor=0.5
    intensity=0.5
    hor_scale=1
  }
  flare3
  {
    pos=-0.5188 -0.354 2.41
    color=0.5 0.75 1
    normal=0 0 1
    z_offset=-2500
    size_factor=0.5
    intensity=0.5
    hor_scale=1
  }
  ; Taillights
  flare4
  {
    pos=0.785 0.265 -2.05
    color=0.75 0.0 0.125
    normal=0.1 0 -1
    z_offset=-2500
    size_factor=0.5
    intensity=0.25
    hor_scale=2
  }
  flare5
  {
    pos=-0.785 0.265 -2.05
    color=0.75 0.0 0.125
    normal=-0.1 0 -1
    z_offset=-2500
    size_factor=0.5
    intensity=0.25
    hor_scale=2
  }
  ;Brake lights
  flare6
  {
    pos=0.785 0.265 -2.06
    color=1 0.1 0
    normal=0.1 0 -1
    z_offset=-2400
    size_factor=0.5
    intensity=0.5
    hor_scale=1
    rule=brake
  }
  flare7
  {
    pos=-0.785 0.265 -2.06
    color=1 0.1 0
    normal=-0.1 0 -1
    z_offset=-2400
    size_factor=0.5
    intensity=0.5
    hor_scale=1
    rule=brake
  }
  flare8
  {
    pos=0.0 0.78 -2.0
    color=1 0.1 0
    normal=0 0 -1
    z_offset=-2500
    size_factor=0.25
    intensity=0.5
    hor_scale=7
    rule=brake
    billboard=1
  }
}

body
{
	mass=1200
	inertia
	{
	  x=1850
	  y=2100
	  z=520
	}
	width=1.679
	height=1.428
	length=4.102
	manual_box=0
	model
	{
          file=body.dof
	}
	model_incar
	{
          file=body.dof
	}
	model_braking_l
	{
          file=brake_lights.dof
	}
	model_light_l
	{
          file=ext_lights.dof
	}
	model_lightroad_l
	{
          file=int_lights.dof
	}
	model_reverse_l
	{
          file=reverse_lights.dof
	}
}

steer
{
	x=0.403
	y=0.244
	z=0.57
	xa=15
	lock=810
	linearity=0.75
	model
	{
          file=steering.dof
	}
}

fuel
{
  type=0
  max=50
  bsfc=7e-5
}

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

	idle_rpm=850
	max_rpm=9000
	stall_rpm=500
	start_rpm=1000
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1250

	curve_torque=torque.crv
	max_torque=196

	shifting
	{
		automatic=0
		shift_up_rpm=8000
		shift_down_rpm=5000
		time_to_declutch=50
		time_to_clutch=50
		time_in_neutral=100
		time_to_declutch_down=50
		time_to_clutch_down=50
		time_in_neutral_down=100
	}
	inertia
	{
		engine=0.2
		final_drive=0.1
	}
	braking_coeff=2.5
	rolling_friction_coeff=0.1
	sample=8k.wav
	sample_rpm=7900
}

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

gearbox
{
	gears=7

	gear0
	{
		ratio=-3.583
		inertia=.035
		linearity=1
	}

	gear1
	{
		ratio=3.266
		inertia=.032
		linearity=1
	}

	gear2
	{
		ratio=2.13
		inertia=.021
		linearity=1
	}

	gear3
	{
		ratio=1.517
		inertia=.015
		linearity=1
	}

	gear4
	{
		ratio=1.147
		inertia=.011
		linearity=1
	}

	gear5
	{
		ratio=0.921
		inertia=.009
		linearity=1
	}

	gear6
	{
		ratio=0.738
		inertia=.007
		linearity=1
	}
}

differential
{
	type=1
	ratio=5.14
	inertia=.051
	locking_coeff=50
	output0=0
	output1=1
}

clutch
{
	max_torque=410
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 0 0
		cx=0.33
		area=2
	}
	wings=1
	wing0
	{
		name=overall lift
		span=1.6
		cord=1
		coeff_drag=0.1
		coeff_down=-1.0
		center=0 0 0
		angle=0
		angle_offset=10
	}
}

antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=41000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=34000
	}
}

susp_front
{
  y=-0.265
  z=1.554
  restlen=0.15
  minlen=0.05
  maxlen=0.15
  k=60000
  bump_rate=1500
  rebound_rate=3500
  bump_function=3
  rebound_function=0
  anti_pitch=0.14
  camber_change_per_m=0
  roll_center
  {
    x=0
    y=-0.1
    z=0
  }
}

susp_rear
{
  y=-0.265
  z=-1.416
  restlen=0.15
  minlen=0.05
  maxlen=0.15
  k=65000
  bump_rate=1250
  rebound_rate=3000
  bump_function=3
  rebound_function=0
  anti_pitch=0.08
  camber_change_per_m=0.05
  roll_center
  {
    x=0
    y=-0.05
    z=0
  }
}

susp0~susp_front
  {
    x=0.85
    toe_change_per_m=0.025
    camber_change_steering=0.10
    caster_offset=-0.015
  }
susp1~susp_front
  {
    x=-0.85
    toe_change_per_m=-0.025
    camber_change_steering=-0.10
    caster_offset=-0.015
  }
susp2~susp_rear
  {
    x=0.85
    toe_change_per_m=0.02
  }
susp3~susp_rear
  {
    x=-0.85
    toe_change_per_m=-0.02
  }

;----------------------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=1500
	a3=2000
	a4=8
	a5=0.015
	a6=-0.25
	a7=0.1
	a8=-0.03
	a9=-0.001
	a10=-0.15
	a111=-8.5
	a112=-0.29
	a12=17.8
	a13=-2.4
	b0=1.5
	b1=-70
	b2=1350
	b3=20
	b4=325
	b5=0.08
	b6=0
	b7=0.05
	b8=-0.025
	b9=0
	b10=0
	b11=0
	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.145
}

skidding_default
{
	long_start=0.1
	long_max=1.0
	long_start_n=0.1
	long_max_n=1.0
	lat_start=0.1
	lat_max=1.0
}

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

wheel_all
{
  brake_heating=2e-5
  brake_dissipation=1e-6
  brake_max_temp=1000
}

wheel_front~wheel_all
{
	y=0
	z=0
	steering=1
	powered=1
	lock=52
	mass=35
	inertia=1.4
	radius=0.333
	rolling_coeff=0.0180
	max_braking=2000
	braking_factor=0.75
	tire_rate=250000
	pacejka~pacejka
	{
	}
}

wheel_rear~wheel_all
{
	y=0
	z=0
	steering=0
	powered=0
	mass=35
	inertia=1.35
	radius=0.333
	rolling_coeff=0.0180
	max_braking=2000
	braking_factor=0.25
	max_handbrake_torque=1500
	tire_rate=230000
	pacejka~pacejka
	{
		optimal_slipratio=0.11
		optimal_slipangle=0.155
	}
}

wheel0~wheel_front
{
	x=0
	ackerman=1.15
	toe=-0
	camber=0.007
	model
	{
	  file=wheel_left.dof
	}
	model_brake
	{
	  file=caliper_left.dof
	}
}

wheel1~wheel_front
{
	x=0
	ackerman=-1.15
	toe=0
	camber=0.007
	model
	{
	  file=wheel_right.dof
	}
	model_brake
	{
	  file=caliper_right.dof
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.21
	camber=-0.588
	model
	{
	  file=wheel_left.dof
	}
	model_brake
	{
	  file=caliper_left.dof
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.21
	camber=-0.588
	model
	{
	  file=wheel_right.dof
	}
	model_brake
	{
	  file=caliper_right.dof
	}
}

;	------------------ Artyfishul Intellygents -----------------
     
ai
{
	grip_factor=1.1
}

;	------------------ 5.1 ALPHA AUDIO COMPATABILTY -----------------

audio
{
	skid
	{
		sample=skid.wav
	}
        horn
        {
                sample=horn.wav
        }
	acc_all
	{
		attack=2600
		decay=2600
	}

;	------------------ OUT

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=ctr_idle.wav
			min=1
			max=1500
			natural=800
			volume=0.8
			attack=1300
			decay=1300
		}
		smp1~audio.acc_all
		{
			sample=ctr_2k.wav
			min=1500
			max=3500
			natural=2600
			volume=1
			attack=1300
			decay=1300
		}
		smp2~audio.acc_all
		{
			sample=ctr_4k.wav
			min=3500
			max=5500
			natural=4400
			volume=1
			attack=1300
			decay=1300
		}
		smp3~audio.acc_all
		{
			sample=ctr_6k.wav
			min=5500
			max=5900
			natural=6200 ;6000
			volume=1
			attack=1300
			decay=1300
		}
		smp4~audio.acc_all
		{
			sample=ctr_8k.wav
			min=5900
			max=9000
			natural=8000
			volume=1
			attack=1300
			decay=1300
		}
	}
	wind
	{
		volume=2
		pitch_scale=0
		pitch_offset=50
		smp0
		{
			sample=wind1.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
		}
		smp1
		{
			sample=wind2.wav
			min=50
			max=51
			attack=33
			decay=33
			natural=80
		}
		smp2
		{
			sample=wind3.wav
			min=75
			max=76
			attack=33
			decay=33
			natural=80
		}
	}
}

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

traction_control
{
	max_velocity_ratio=1.10
	min_velocity_ratio=1.05
        min_velocity=5
	enable=1
}

abs
{
	max_velocity_ratio=1.10
	min_velocity_ratio=1.05
        min_velocity=5
	enable=1
}


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

camera0
{
	name=Chase Far
	model=0
	wheels=1
	view=0

	offset
	{
		x=0
		y=-1.5
		z=-7.5
	}
	angle
	{
		x=5
		y=180
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera1
{
	name=Chase Close
	model=0
	wheels=1
	view=0

	offset
	{
		x=0
		y=-1
		z=-6
	}
	angle
	{
		x=5
		y=180
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera2
{
	name=Front Bumper
	fov=75
	model=0
	wheels=1
	view=0

	offset
	{
		x=0
		y=0.15
		z=2.5
	}
	angle
	{
		x=0
		y=180
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}
camera3
{
	name=Bonnet
        fov=75
	model=0
	wheels=1
	view=0

	offset
	{
		x=0
		y=-0.75
		z=0.75
	}
	angle
	{
		x=0
		y=180
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera4
{
	name=Free side view

	offset
	{
		x=0
		y=-0.5
		z=-7
	}
	angle
	{
		x=10
		y=127
		z=0
	}
}

camera5
{
	name=Front View
	model=0
	wheels=1
	view=0

	offset
	{
		x=0
		y=-1
		z=-6
	}
	angle
	{
		x=5
		y=0
		z=0
	}
 	follow
	{
		pitch=0
		yaw=1
		roll=0
	}
}

camera6
{
        name=Front Left Wheel
	model=0
	wheels=1
	view=0

	offset
	{
		x=1.75
		y=-0.25
		z=-1
	}
	angle
	{
		x=10
		y=-140
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera7
{
        name=Front Left Mirror
	model=0
	wheels=1
	view=0

	offset
	{
		x=1
		y=-0.5
		z=-0.75
	}
	angle
	{
		x=5
		y=-160
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera8
{
	name=Inside Passenger
	model=1
	wheels=0
	view=1

	offset
	{
		x=-0.403
		y=-0.6
		z=-0.15
	}
	angle
	{
		x=2.5
		y=180
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}

camera9
{
	name=Inside Driver
	model=1
	wheels=0
	view=1

	offset
	{
		x=0.403
		y=-0.6
		z=-0.15
	}
	angle
	{
		x=2.5
		y=180
		z=0
	}
 	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
}