car
{
	name=Alfa Romeo GTV6 2.5
	year=1987
	credits=Model - sin5k4. Performance - Cosmo°. Sounds - FSR. Dials - Blo0m. Adaptation - Damian A.
  	comments=2492 cm3 V 60° six, 118 kW @ 5600 rpm, 213 Nm @ 4000 rpm.
  	wheels=4
  	id=alfaromeogtv6
  	version=090b
  	shadow
  	{
    		texture=shadow.tga
    		width=2.2
    		length=4.9
    		offset_z=-0.06
  	}
  	cg
  	{
    		x=0
		;1330mm * 0.37 = 492mm, formula by IH8COPS
    		y=-0.250
		;50.7% / 49.3%
    		z=0.0799
  	}
  	ff_factor=0.435
}
graphics
{
  	shadow
  	{
    		model
    		{
      			file=shadow.dof
			use_shaders=0
    		}
		intensity=0.2
  	}
	generic
	{
		model0
                {
                        file=capot.dof
                }
                model1
                {
                        file=choques_frente.dof
                }
                model2
                {
                        file=choques_tras.dof
                }
                model3
                {
                        file=cocpit.dof
                }
                model4
                {
                        file=mala.dof
                }
                model5
                {
                        file=escape.dof
                }
                model6
                {
                        file=porta_condutor.dof
                }
                model7
                {
                        file=porta_passageiro.dof
                }
                model8
                {
                        file=sunroof.dof
                }
                model9
                {
                        file=

    		}
	}
}

body
{
	;1210kg + 75kg driver - 120kg unsprung mass
  	mass=1165
	;estimated using CarInertia.exe by IH8COPS
  	inertia
  	{
    		x=1750
    		y=1890
    		z=360
  	}
  	model
  	{
    		file=body.dof
  	}
  	model_incar
  	{
    		file=body.dof
  	}
 	model_light_l
  	{
    		file=lights.dof
  	}
 	model_light_r
  	{
    		;file=beam.dof
  	}
  	model_braking_l
  	{
    		file=brakelights.dof
  	}
  	model_braking_r
  	{
    		;file=
  	}
  	width=1.664
  	height=1.218
  	length=4.260
  	manual_box=1
}

steer
{
  	x=0.32
  	y=0.05
  	z=0.38
  	radius=10
  	xa=15.9
  	lock=1080
  	linearity=0.25
  	model
  	{
    		file=volante.dof
  	}
}

engine
{
  	mass=0
  	idle_rpm=900
	;6300rpm +-150rpm
  	max_rpm=6300
  	start_rpm=1000
  	stall_rpm=300
  	autoclutch_rpm=1500
  	starter=1
  	starter_torque=70
  	start_stalled=1
  	curve_torque=torque_gtv6.crv
  	max_torque=0.88
  	torque_reaction=0.15
  	shifting
  	{
    		automatic=0
		fast=0
    		shift_up_rpm=5800
    		shift_down_rpm=3000
    		time_to_declutch=250
    		time_in_neutral=0
    		time_to_clutch=250
    		time_to_declutch_down=250
    		time_in_neutral_down=0
    		time_to_clutch_down=250
  	}
  	inertia
  	{
    		engine=0.33
  	}
  	braking_coeff=2.0
}

gearbox
{
	gears=6
  	gear0
  	{
    		ratio=-3.000
    		inertia=0.10
    		engine_map=1.00
  	}
  	gear1
  	{
    		ratio=3.500
    		inertia=0.01
    		engine_map=1.00
  	}
  	gear2
  	{
    		ratio=1.956
    		inertia=0.02
    		engine_map=1.00
  	}
  	gear3
  	{
    		ratio=1.345
    		inertia=0.04
    		engine_map=1.00
  	}
  	gear4
  	{
    		ratio=1.026
    		inertia=0.06
    		engine_map=1.00
  	}
  	gear5
  	{
    		ratio=0.780
    		inertia=0.08
    		engine_map=1.00
  	}
}

clutch
{
	max_torque=250
}

handbrakes
{
	wheels=23
}

differential
{
  	type=1
  	ratio=4.100
  	inertia=0.1
  	locking_coeff=85
  	output0=2
  	output1=3
}

aero
{
  	body
  	{
    		center=0 0 0
    		cx=0.39
    		area=1.89
  	}
  	wings=1
  	wing0
  	{
    		name=body lift
    		span=1.0
    		cord=1.0
    		coeff_drag=0.0
		;650N @ 200km/h ???
   		coeff_down=-19.7
    		center=0.0 0.0 0.6
    		angle=0
    		angle_offset=1
  	}
}

antirollbar
{
  	count=2
  	arb0
  	{
    		susp_left=0
    		susp_right=1
   		k=19500
  	}
  	arb1
  	{
    		susp_left=2
    		susp_right=3
    		k=6000
  	}
}

susp_front
{
  	y=0.000
  	z=1.24
	;80mm bump travel, 120mm rebound travel -> 435mm
  	restlen=0.538
  	minlen=0.355
  	maxlen=0.555
	;1.55Hz, 295.7475kg
  	k=28051
	;0.7*CD=4032
  	bump_rate=1546
  	bump_function=0
  	rebound_rate=2994
  	rebound_function=0
  	anti_pitch=0.15
  	camber_change_per_m=0.349
    	caster_offset=-0.022
  	roll_center
  	{
    		x=0
    		y=-0.642
    		z=0
  	}
}

susp0~susp_front
{
    	x=0.70
    	camber_change_steering=0.050
    	toe_change_per_m=0.020
    
}

susp1~susp_front
{
    	x=-0.70
    	camber_change_steering=-0.050
    	toe_change_per_m=-0.020
}

susp_rear
{
  	y=0.000
  	z=-1.05
	;80mm bump travel, 120mm rebound travel -> 435mm
  	restlen=0.521
  	minlen=0.355
  	maxlen=0.555
	;1.7HZ, 286.7525kg, should be progressive springs...
  	k=32716
	;0.7*CD=4288
 	bump_rate=1096
  	bump_function=0
  	rebound_rate=6647
  	rebound_function=0
  	anti_pitch=0.0
  	camber_change_per_m=0.0
  	roll_center
  	{
    		x=0
    		y=-0.477
    		z=0
  	}
}

susp2~susp_rear
{
    	x=0.71
    	toe_change_per_m=0.0
}

susp3~susp_rear
{
    	x=-0.71
    	toe_change_per_m=0.0
}

tire_model_front
{
	damping_predict_lat=0
  	damping_predict_long=0
}

tire_model_rear
{
  	damping_predict_lat=0
  	damping_predict_long=0
}

;0.75~0.83g skidpad, 8.5m/sē cold brakes, 7.5m/sē warm brakes
pacejka
{
    	a0=1.35
    	a1=-30
    	a2=1025
    	a3=1540
    	a4=8
    	a5=0.015
    	a6=-0.25
    	a7=0.1
    	a8=-0.03
    	a9=-0.001
    	a10=-0.15
    	a111=0
    	a112=-0.29
    	a12=17.8
    	a13=-2.4
    	b0=1.5
    	b1=-60
    	b2=1150
    	b3=2
    	b4=350
    	b5=0.08
    	b6=0
    	b7=0.05
    	b8=-0.025
    	b9=0.015
    	b10=0.4
    	b11=-80
    	b12=0
    	c0=2.2
    	c1=-4
    	c2=-3
    	c3=-1.0
    	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.08276
    	optimal_slipangle=0.12277
}

wheel_front
{
	y=0
	z=0
	powered=0
  	steering=1
	reverse_steering=0
	lock=59.4
	ackerman=1.1
	mass=30
	inertia=1.0
	radius=0.3075
	rolling_coeff=0.015
	friction_road=1
	max_braking=1283
	braking_factor=1
	inboard_brakes=0
	tire_rate=175000
	pacejka~pacejka
	{
	}
}

wheel0~wheel_front
{
	x=0
	;-0.150°
	toe=-0.268
	;-0.250°
	camber=1.823
    	model
  	{
    		file=left.dof
		offset
		{
			x=-0.015
		}
  	}
    		model_brake
  	{
    		;file=
  	}
}

wheel1~wheel_front
{
  	x=0
	;0.150°
  	toe=0.268
	;-0.250°
  	camber=1.823
    	model
  	{
    		file=right.dof
		offset
		{
			x=0.015
		}
  	}
    		model_brake
  	{
    		;file=
  	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	lock=0
	mass=30
  	inertia=1.0
  	radius=0.3075
  	rolling_coeff=0.015
  	friction_road=1
  	max_braking=557
  	max_handbrake_torque=1500
  	braking_factor=1
	inboard_brakes=1
  	tire_rate=160000
  	pacejka~pacejka
  	{
  	}
}

wheel2~wheel_rear
{
  	x=0
  	toe=0
  	camber=0
    	model
  	{
    		file=left.dof
		offset
		{
			x=-0.015
		}
  	}
    		model_brake
  	{
    		;file=
  	}
}

wheel3~wheel_rear
{
  	x=0
  	toe=0
  	camber=0
    	model
  	{
    		file=right.dof
		offset
		{
			x=0.015
		}
  	}
    		model_brake
  	{
    		;file=
  	}
}

camera0
{
	name=Driver
	fov=68
	model=0
	view=1
	wheels=0
	follow
	{
		pitch=1
		yaw=1
		roll=1
	}
	offset
	{
		x=0.350
		y=0.300
		z=-0.30
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	angle
	{
		x=0
		y=180
		z=0
	}
	src
	{
		mass=5
		k=750
		damping=75
		maxdist=0.2
	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}

camera1
{
  	name=Close Behind
  	fov=50
  	model=0
  	view=0
  	wheels=0
	offset
  	{
    		x=0
    		y=1.5
    		z=-30
  	}
  	angle
  	{
    		x=21
    		y=180
    		z=50
  	}
  	follow
  	{
    		pitch=0
    		yaw=1
    		roll=0
  	}
  	src
  	{
    		mass=1
    		k=200
    		damping=30
   		maxdist=1.5
  	}
  	dst
  	{
   		mass=1
    		k=150
    		damping=20
    		maxdist=1.5
  	}
}

camera2
{
	name=Chase
  	fov=45
  	model=0
  	view=0
  	wheels=0
   	offset
   	{
      		x=0.00
      		y=1.50
      		z=-6.00
   	}
   	angle
   	{
      		x=15.50
      		y=180.00
      		z=0.00
   	}
   	follow
   	{
      		pitch=0
      		yaw=1
      		roll=0
   	}
 	src
 	{
  		mass=5
  		k=50
  		damping=100
  		maxdist=2
 	}
	dst
	{
		mass=0
		k=0
		damping=0
		maxdist=0
	}
}

camera3
{
 	name=Hi-Speed Bumper Cam
 	fov=85
 	model=2
 	view=2
 	wheels=0
 	offset
 	{
  		x=0
  		y=0.15
  		z=2.1
 	}
 	angle
 	{
  		x=0
  		y=180
  		z=0
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera4
{
  	name=Hood Cam
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	follow
  	{
    		pitch=1
    		yaw=1
    		roll=1
  	}
  	offset
  	{
    		x=0
    		y=-0.7
    		z=0.7
  	}
  	angle
  	{
    		x=9
    		y=180
    		z=0
  	}
}

camera5
{
  	name=Effect Cam 1
  	fov=68
  	model=0
  	view=0
  	wheels=0
  	offset
  	{
    		x=-0.67
    		y=-0.17
    		z=-3.94
  	}
  	angle
  	{
    		x=2.5
    		y=-150
    		z=-15
  	}
  	follow
  	{
    		pitch=0
    		yaw=0
    		roll=0
  	}
}

camera6
{
 	name=Effect Cam 2
 	fov=68
 	model=0
 	view=1
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=-0.25
  		z=-5.5
 	}
 	angle
 	{
  		x=6
  		y=30
  		z=0
 	}
}

camera7
{
 	name=Effect Cam 3
 	fov=68
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=1
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0
  		z=-9
 	}
 	angle
 	{
  		x=4
  		y=34
  		z=-14
 	}
}

camera8
{
 	name=Effect Cam 4 - Wheel
 	fov=68
 	model=0
 	view=0
 	wheels=0
 	offset
 	{
  		x=1.15
  		y=0.2
  		z=0.35
 	}
 	angle
 	{
  		x=-2
  		y=-175
  		z=-7
 	}
 	follow
 	{
  		pitch=1
  		yaw=1
  		roll=1
 	}
}

camera9
{
 	name=Effect Cam 5
 	fov=25
 	model=0
 	view=0
 	wheels=1
 	follow
 	{
  		pitch=0
  		yaw=0
  		roll=0
 	}
 	offset
 	{
  		x=0
  		y=0.25
  		z=-9
 	}
 	angle
 	{
  		x=10
  		y=150
  	z=0
 	}
}

audio
{
  skid
  {
    sample=Skid.wav
    volume=0.7
  }
  shiftout
  {
    sample=Shift_Out.wav
  }
  acc_all
  {
    attack=1000
    decay=1000
  }
  accelerate_out
  {
    volume=1
    smp0~audio.acc_all
    {
      sample=2100.wav
      min=1
      max=2000
      natural=1700
      volume=0.8
    }
    smp1~audio.acc_all
    {
      sample=4000.wav
      min=2000
      max=4500
      natural=3600
      volume=0.85
    }
    smp2~audio.acc_all
    {
      sample=6700.wav
      min=4500
      max=15000
      volume=1.15
      natural=5000
    }
  }
  decelerate_out
  {
    volume=0.9
    smp0~audio.acc_all
    {
      sample=4000.wav
      min=1
      max=15500
      natural=3500
    }
  }
 decelerate_in
  {
    volume=0.9
    smp0~audio.acc_all
    {
      sample=4000.wav
      min=1
      max=15500
      natural=4000
    }
  }
}