car
{
  name=Honda Integra IV TypeR
  year=2001
  credits=Oryginal model Turn10 / Conwert to Racer by Arouca21 / Racer Simulator Portugal
  comments=1.8 16v DOHC VTEC 190km
  id=Integra
  version=090
   shadow
   {
      texture=shadow.tga
      width=1.9
      length=3.813
      offset_z=0.06
   }
   cg
   {
    		x=0
    		y=-0.1835
    		z=0.1768
   }
      ff_factor=0.30
}

particles
{ 
backfire
{
exhaust0
{
pos=-0.38 -0.28 -1.98
normal=0 0 -1
} 
exhaust1
{
pos=-0.37 -0.28 -1.98
normal=0 0 -1
}
type=backfire
; type=backfire
min_rpm=7000
; min_rpm=0
; suppose car comes from 9000 rpm for example. Then backfiring can happen when max_rpm is reached
max_rpm=7900
; max_rpm=12000
; high backfire likeliness for rally cars
likeliness_percentage=130
; likeliness_percentage=100
}
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=Integra.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
		{
		file=Bonnet2.dof
		}
		model1
		{
		file=Boot2.dof
		}
		model2
		{
		file=escape3.dof
		}
		model3
		{
		file=Doorfl.dof
		}
		model4
		{
		file=Doorfr.dof
		}
		model5
		{
		file=bancos2.dof
		}
		model6
		{
		file=bumper_frente2.dof
		}
		model7
		{
		file=rear_bumper2.dof
		}
		model8
		{
		file=skirts2.dof
		}
		model9
		{
		file=
		}
	}
}
lights
{
    light0
      {
        texture=Light.tga
        fov=55
        aspect=5
        z=2
        pitch=0
        far=50
      }
      OLD_light0
      {
        texture=Light.tga
        fov=25.0
        aspect=4.0
        z=2
        pitch=10
      }
}
body
{
   mass=1000
   inertia
   {
      x=3000
      y=3290
      z=510
   }
   x=0
   y=0
   z=0
   width=1.708
   height=1.35
   length=3.813
   manual_box=0
   model
   {
      file=Integra.dof
   }
   model_braking_l
   {
      file=Brakes.dof
   }
   model_incar
   {
      file=Integra.dof
   }
   model_light_l
   {
      file=Lights.dof
   }
   model_light_r
   {
      file=Lightsin.dof
   }
   model_reverse_l
   {
      file=Reverse.dof
   }
}
steer
{
    x=0.35
    y=0.20
    z=0.35
    xa=22
    lock=1080                
    linearity=0.3
    model
    {
        file=volante2.dof
        lod0_z=0
        lod_out=2
    }
}
engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0

	idle_rpm=850
	max_rpm=8500
	stall_rpm=500
	start_rpm=1500
	start_stalled=1
	starter_torque=100
	autoclutch_rpm=1500

	curve_torque=k20a.crv
	max_torque=200	;real ctr data

	shifting
	{
		automatic=0
		shift_up_rpm=7800
		shift_down_rpm=3500
		time_to_declutch=50
		time_to_clutch=50
		time_in_neutral=200
		time_to_declutch_down=150
		time_to_clutch_down=50
		time_in_neutral_down=200
	}
	inertia
	{
		engine=0.27
		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=0.02
		linearity=0.5
	}

	gear1
	{
		ratio=3.266
		inertia=0.03
		linearity=1
	}

	gear2
	{
		ratio=2.13
		inertia=0.04
		linearity=1.2
	}

	gear3
	{
		ratio=1.517
		inertia=0.05
		linearity=1.4
	}

	gear4
	{
		ratio=1.147
		inertia=0.06
		linearity=1.6
	}

	gear5
	{
		ratio=0.921
		inertia=0.08
		linearity=1.8
	}

	gear6
	{
		ratio=0.738
		inertia=0.1
		linearity=2
	}
}

differential
{
	type=1
	ratio=4.76
	inertia=0.1
	locking_coeff=25
	output0=0
	output1=1
}

clutch
{
	max_torque=415
}

handbrakes
{
	wheels=23
}

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.37
    		area=1.86
  	}
  	wings=2
  	wing0
  	{
    		name=front lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-17.74
    		center=0.000 0.000 1.400
    		angle=0
    		angle_offset=1
  	}
  	wing1
  	{
    		name=rear lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
   		coeff_down=-5.92
    		center=0.000 0.000 -1.170
    		angle=0
    		angle_offset=1
  	}
}
antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=5900
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=5900
  	}
}

susp_front
{
  	y=0.20
  	z=1.21
	restlen=0.480
  	minlen=0.290
  	maxlen=0.500
  	k=60000
  	bump_rate=1340
  	bump_function=0
  	rebound_rate=2884
  	rebound_function=0
  	anti_pitch=0.2
  	camber_change_per_m=0.417
    	caster_offset=-0.046
  	roll_center
  	{
    		x=0
    		y=-0.365
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.7140
    	camber_change_steering=0.050
    	toe_change_per_m=0.131
    
}
susp1~susp_front
{
    	x=-0.7140
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.031
}

susp_rear
{
  	y=0.18
  	z=-1.170
  	restlen=0.449
  	minlen=0.290
  	maxlen=0.510
  	k=60000
 	bump_rate=1597
  	bump_function=0
  	rebound_rate=5154
  	rebound_function=0
  	anti_pitch=0.1
  	camber_change_per_m=0.306
  	roll_center
  	{
    		x=0
    		y=-0.54
    		z=0
  	}
}

susp2~susp_rear
{
    	x=0.7140
    	toe_change_per_m=-0.016
}

susp3~susp_rear
{
    	x=-0.7140
    	toe_change_per_m=0.016
}

tire_model_front
{
	damping_predict_lat=0
  	damping_predict_long=0
}

tire_model_rear
{
  	damping_predict_lat=0
  	damping_predict_long=0
}



pacejka
{
  ; Pacejka constants for all tires
  ; Lateral force
a0=1.45 
a1=-37.5
a2=1530
a3=1710
a4=9.4
a5=0.0
a6=-0.336
a7=0.0
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=1320
  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=1630
a3=1900
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 
}
fuel
{
  bsfc=0.000031
  max=80
  type=0
}
wheel_front
{
	y=0
	z=0
	powered=1
  	steering=1
	reverse_steering=0
	;41.3 / 33.9
	lock=67.8
	ackerman=1.218
	mass=30
	inertia=1.0
	radius=0.31
	rolling_coeff=0.015
	friction_road=1
	max_braking=900
	braking_factor=1.4
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	;-0.150°
	toe=-0.976
	;-0.670°
	camber=-1
    	model
  	{
    		file=Left2.dof
  	}
    		model_brake
  	{
    		file=pinca_esquerda.dof
  	}
}

wheel1~wheel_front
{
  	x=0
	;0.150°
  	toe=0.976
	;-0.670°
  	camber=-1
    	model
  	{
    		file=Right2.dof
  	}
    		model_brake
  	{
    		file=pinca_direita.dof
  	}
}

wheel_rear
{
	y=0
	z=0
	powered=0
	steering=0
	reverse_steering=0
	lock=0
	mass=30
  	inertia=1.0
  	radius=0.31
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=950
  	max_handbrake_torque=950
  	braking_factor=0.55
	inboard_brakes=0
  	tire_rate=175000
  	pacejka~pacejka
  	{
  	}
}

wheel2~wheel_rear
{
  	x=0
	;-0.150°
  	toe=-0.077
	;-1.420° / -1.833°
  	camber=-1
    	model
  	{
    		file=Left2.dof
  	}
   	model_brake
  	{
    		file=pinca_esquerda.dof
  	}
}

wheel3~wheel_rear
{
  	x=0
	;0.150°
  	toe=0.077
	;-1.420° / -1.833°
  	camber=-1
    	model
  	{
    		file=Right2.dof
  	}
    	model_brake
  	{
    		file=pinca_direita.dof
  	}
}

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

}

camera0
{
  name=Driver
  fov=69
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.48
    z=-0.14
  }
  offset_to
  {

    x=0
    y=-0.5
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=1
    k=0
    damping=0
    maxdist=0
  }
}
camera1
{
  name=Driver, left
  fov=69
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.48
    z=-0.14
  }
  offset_to
  {
    x=10.43
    y=0.4
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera2
{
  name=Driver, right
  fov=69
  model=0
  wheels=0
  view=1
  offset
  {
    x=0.35
    y=0.48
    z=-0.14
  }
  offset_to
  {
    x=-9.57
    y=0.4
    z=10
  }
  src
  {
    mass=1
    k=250
    damping=25
    maxdist=0.3
  }
  dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}
camera3
{
  	name=Spojrzenie do tylu
  	model=0
  	wheels=0
  	view=1
  	fov=-70
  	offset
  	{
    		x=0.164
    		y=0.52
    		z=-0.1
  	}
	offset_to
	{
		x=-1
		y=0.35
		z=-10
	}
	src
	{
		mass=1
		k=300
		damping=25
		maxdist=0.03
	}
	dst
  {
    mass=0
    k=0
    damping=0
    maxdist=0
  }
}

camera4
{
  name=Chase
  fov=60
  model=0
  wheels=0
  view=0
  offset
  {
    x=0
    y=-0.4
    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.4
    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=-20
  }
  angle
  {
    x=10
    y=50
    z=0
  }
}
camera9
{
	name=Bonnet
	fov=60
	model=0
	wheels=0
	view=0
	offset
	{
		x=0.356
    		y=-0.40
    		z=0.50
	}
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	angle
	{
		x=5
		y=180
		z=0
	}
}

; sounds section

audio
{
	skid
	{
       sample=skid.wav
       sample1=skid_01.wav
       sample2=skid_02.wav
  }
  shiftin
  {
    sample=shiftin.wav
  }
  shiftout
  {
    sample=shiftout.wav
	}
	acc_all
	{
		attack=2600
		decay=2600
	}
		smp0~audio.acc_all
		{
			sample=turbo_popoff.wav
			min=1
			max=1500
			natural=800
			volume=3.1
			attack=1300
			decay=1300			
		}     
	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
		}
                smp6~audio.acc_all
                {
                        sample=turbo.wav
                        min=0
                        max=8000
                        natural=7000
                        volume=0.5
                }
                smp6~audio.acc_all
                {
                        sample=pressure.wav
                        min=4500
                        max=9000
                        natural=10000
                        volume=0.25			
		}
	}
	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
		}
	}
}
