car
{
	name=Porsche Carrera GT
	year=2003
	id=porsche_carrera_gt_v1
	credits=Model: T-Shine, Textures & Interior: TtR, Physics & Sounds: Mr Whippy, Dials: BLo0m
	comments=V1.0
	version=050f
	wheels=4
	shadow
	{
		texture=shadowcgt.tga
		length=4.65
		width=2.4
		offset_z=0.13
		intensity_dark=0.75
		intensity_light=0.25
	}
	cg
	{
		;4.610 x 1.920 x 1.16, 0.088 clearance
		x=0
		;1160mm high, 36% roof height ~ 418mm CofG
		y=-0.209
		;42%f 58%r
		z=-0.3
	}
	ff_factor=0.35
}

ai
{
	grip_factor=1.1
}

graphics
{
	shadow
	{
		intensity=1
		model
		{
			file=12_15a.dof
			use_shaders=0
		}
	}
}

animation
{
	flash_lights=0
}

flares
{
}

lights
{
	light0
	{
		aspect=5
		far=75
		fov=50
		pitch=0
		texture=
		z=1
	}
}

pilot
{
	helmet
	{
		model
		{
			file=
		}
		pos=0.000 0.000 0.000
	}
	body
	{
		model
		{
			file=
		}
	}
}

wipers
{
	count=0
}

body
{
	;1405kg gross - 180kg unsprung = 1225kg + 75kg driver + 68kg fuel = 1368. REF = (1473kg fully fuelled 92L of fuel(68kg))
	mass=1368
	inertia
	{
		x=2010
		y=2430
		z=485
	}
	length=4.610
	width=1.921
	; reduced by 0.1m for slope clearance
	height=0.969
	manual_box=1
	box_offset=0.000 0.050 0.000
	model
	{
		file=12_15a.dof
	}
	model_incar
	{
		file=gtint.dof
		offset
		{
			x=0.0
			y=0.0
			z=0.0
		}
	}
	model_braking_l
	{
		file=bl.dof
	}
}

steer
{
	x=0.35
	y=0.075
	z=0.58
	radius=10
	xa=18
	;2.59 turns = 932.4, 15.7:1 ratio
	lock=932
	linearity=0.965
	model
	{
		file=gtsw.dof
	}
}

engine
{
	x=0
	y=0
	z=0
	size=0
	mass=0
	max_rpm=8400
	min_warn_rpm=7000
	max_warn_rpm=8400
	idle_rpm=900
	idle_method=1
	idle_throttle=0
	curve_torque=torque.crv
	braking_torque_curve=braking.crv
	braking_coeff=1.9
	braking_offset=0
	max_torque=1.0
	autoclutch=0
	autoclutch_rpm=1000
	starter=1
	starter_torque=100
	start_stalled=1
	stall_rpm=400
	start_rpm=1500
	torque_reaction=0.35
	friction=0
	inertia
	{
		engine=0.245
		final_drive=0.1
	}
	jitter
	{
		amplitude=0.75
		time_min=50
		time_var=700
		frequency_min=4
		frequency_var=4
	}	
	shifting
	{
		automatic=0
		blip_throttle=0
		cut_throttle=0
		fast=0
		shift_up_rpm=8000
		shift_down_rpm=1250
		time_to_declutch=5
		time_to_clutch=190
		time_in_neutral=5
		time_to_declutch_down=5
		time_to_clutch_down=190
		time_in_neutral_down=5
	}
}

fuel
{
	bsfc=7.200e-5
	max=92
	type=0
}

clutch
{
	max_torque=745
}

gearbox
{
	gears=7
	gear0
	{
		ratio=-2.19
		inertia=0.02
		engine_map=0.3
	}
	gear1
	{
		ratio=3.20
		inertia=0.03
		engine_map=0.5
	}
	gear2
	{
		ratio=1.87
		inertia=0.04
		engine_map=0.8
	}
	gear3
	{
		ratio=1.36
		inertia=0.05
		engine_map=1.0
	}
	gear4
	{
		ratio=1.07
		inertia=0.06
		engine_map=1.0
	}
	gear5
	{
		ratio=0.90
		inertia=0.08
		engine_map=1.0
	}
	gear6
	{
		ratio=0.75
		inertia=0.1
		engine_map=1.0
	}
}

differentials
{
	count=1
	diff0
	{
		type=1
		ratio=4.44
		inertia=0.1
		locking_coeff=35
		output0=2
		output1=3
		friction=180
		preload=50
		power_coeff=0.05
		coast_coeff=0.05
	}
}

handbrakes
{
	wheels=23
}

aero
{
	body
	{
		center=0 -0.2 0
		cx=0.37
		area=1.95
	}
	draft
	{
		scale_lat_front=0.09
		scale_lon_front=0.2
		scale_lat_rear=0.45
		scale_lon_rear=1
	}
	; 49kg/40kg front/rear downforce @ 200km/h
	wings=2
	wing0
	{
		name=frontaxledf
		span=1
		cord=1
		coeff_drag=0
		coeff_down=14.5
		center=0 -0.2 1.29
		angle=0
		angle_offset=1
	}
	wing1
	{
		name=rearaxledf
		span=1
		cord=1
		coeff_drag=0
		coeff_down=11.8
		center=0 -0.2 -1.44
		angle=0
		angle_offset=1
	}
}

antirollbar
{
	count=2
	arb0
	{
		susp_left=0
		susp_right=1
		k=61000
	}
	arb1
	{
		susp_left=2
		susp_right=3
		k=33000
	}
}

susp_front
{
	y=0.0
	z=1.29
	;303
	restlen=0.36
	minlen=0.205
	maxlen=0.37
	;NF 1.9
	k=44550
	bumpstop_len=0.07
	bumpstop_k=125000
	bumpstop_damping=5000
	reboundstop_len=0.01
	reboundstop_k=100000
	reboundstop_damping=5000
	damper_curve=damper_front.crv
	anti_pitch=0.1
	roll_center
	{
		x=0
		;25mm
		y=-0.612
		z=0
	}
}

susp_rear
{
	y=0.0
	z=-1.44
	;287
	restlen=0.357
	minlen=0.189
	maxlen=0.36
	:NF 1.7
	k=50450
	bumpstop_len=0.07
	bumpstop_k=75000
	bumpstop_damping=5000
	reboundstop_len=0.01
	reboundstop_k=100000
	reboundstop_damping=5000
	camber_change_per_m=0.15
	damper_curve=damper_rear.crv
	anti_pitch=0.15
	roll_center
	{
		x=0
		;70mm
		y=-0.571
		z=0
	}
}

susp0~susp_front
{
	x=0.8064
	camber_change_per_m=0.1
	camber_change_steering=0.125
	caster_angle=0.203
	caster_offset=-0.025
	kingpin_angle=-0.029
	kingpin_offset=0
	toe_change_per_m=0.03
	model
	{
		file=
	}
}

susp1~susp_front
{
	x=-0.8064
	camber_change_per_m=0.1
	camber_change_steering=-0.125
	caster_angle=0.203
	caster_offset=-0.025
	kingpin_angle=-0.029
	kingpin_offset=0
	toe_change_per_m=-0.03
	model
	{
		file=
	}
}

susp2~susp_rear
{
	x=0.79375
	camber_change_per_m=0.15
	camber_change_steering=0
	caster_angle=
	caster_offset=
	kingpin_angle=-0.026
	kingpin_offset=
	toe_change_per_m=0.02
	model
	{
		file=
	}
}

susp3~susp_rear
{
	x=-0.79375
	camber_change_per_m=0.15
	camber_change_steering=0
	caster_angle=
	caster_offset=
	kingpin_angle=-0.026
	kingpin_offset=
	toe_change_per_m=-0.02
	model
	{
		file=
	}
}

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.3
	a1=-30
	a2=1350
	a3=2100
	a4=9
	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.4
	b1=-45
	b2=1350
	b3=20
	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.5
	c1=-4
	c2=-3
	c3=-1
	c4=-7
	c5=0
	c6=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.12
	;8.00
	optimal_slipangle=0.140
}

wheel_front
{
	y=0
	z=0
	steering=1
	reverse_steering=0
	lock=59.62
	ackerman=1.14
	powered=0
	mass=40
	inertia=2.25
	;265/35R19
	radius=0.33405
	width=0.265
	rolling_coeff=0.011
	friction_road=1
	max_braking=1975
	braking_factor=1
	max_handbrake_torque=0
	inboard_brakes=0
	brake_dissipation=0.0005
	brake_heating=0.00001
	brake_max_temp=800
	;200000
	tire_rate=300000
	tire_damping=300
	pacejka~pacejka
	{
	}
}

wheel_rear
{
	y=0
	z=0
	steering=0
	reverse_steering=0
	lock=0
	ackerman=0
	powered=1
	mass=50
	inertia=3.0
	;335/30R20
	radius=0.3545
	width=0.335
	rolling_coeff=0.011
	friction_road=1
	max_braking=1425
	braking_factor=1
	max_handbrake_torque=1375
	inboard_brakes=0
	brake_dissipation=0.0005
	brake_heating=0.00001
	brake_max_temp=800
	;200000
	tire_rate=365000
	tire_damping=300
	pacejka~pacejka
	{
		a0=1.3
		a1=-40
		a2=1540
		a3=2350
		a4=9
		b0=1.45
		b1=-55
		b2=1540
		c0=2.7
		optimal_slipratio=0.12
		;7.31
		optimal_slipangle=0.128
	}
}

wheel0~wheel_front
{
	x=0
	toe=-0.05
	camber=-0.5
	model
	{
		file=rimlf.dof
	}
	model2
	{
		file=rimlfb.dof
		velocity=35
	}
	model3
	{
		file=rimlfb2.dof
		velocity=70
	}
	model_brake
	{
		file=clf.dof
		offset
		{
			x=0.07
			y=-0.04
			z=-0.15
		}
	}
}

wheel1~wheel_front
{
	x=0
	toe=0.05
	camber=-0.5
	model
	{
		file=rimrf.dof
	}
	model2
	{
		file=rimrfb.dof
		velocity=35
	}
	model3
	{
		file=rimrfb2.dof
		velocity=70
	}
	model_brake
	{
		file=crf.dof
		offset
		{
			x=-0.07
			y=-0.04
			z=-0.15
		}
	}
}

wheel2~wheel_rear
{
	x=0
	toe=-0.167
	camber=-0.9
	model
	{
		file=rimlr.dof
	}
	model2
	{
		file=rimlrb.dof
		velocity=35
	}
	model3
	{
		file=rimlrb2.dof
		velocity=70
	}
	model_brake
	{
		file=clr.dof
		offset
		{
			x=0.085
			y=-0.04
			z=0.16
		}
	}
}

wheel3~wheel_rear
{
	x=0
	toe=0.167
	camber=-0.9
	model
	{
		file=rimrr.dof
	}
	model2
	{
		file=rimrrb.dof
		velocity=35
	}
	model3
	{
		file=rimrrb2.dof
		velocity=70
	}
	model_brake
	{
		file=crr.dof
		offset
		{
			x=-0.085
			y=-0.04
			z=0.16
		}
	}
}

camera0
{
	fov=70
	model=1
	name=driver
	wheels=0
	angle
	{
		x=0
		y=180
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0.35
		y=0.33
		z=0
	}
	offset_to
	{
		x=0.35
		y=0
		z=10
	}
	src
	{
		mass=7
		k=3000
		damping=300
		maxdist=0.1
	}
	dst
	{
		mass=1
		k=0
		damping=0
		maxdist=0
	}
}

camera1
{
	fov=65
	model=0
	name=bonnet
	wheels=0
	angle
	{
		x=6
		y=180
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=-0.5
		z=0.8
	}
}

camera2
{
	fov=70
	model=0
	name=bumper
	wheels=0
	angle
	{
		x=1
		y=180
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=0.2
		z=2
	}
}

camera3
{
	fov=45
	model=0
	name=chase
	wheels=1
	angle
	{
		x=0
		y=180
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=1.5
		z=-6.5
	}
	offset_to
	{
		x=0
		y=0
		z=10
	}
	src
	{
		mass=6
		k=1000
		damping=150
		maxdist=2
	}
	dst
	{
		mass=6
		k=1000
		damping=150
		maxdist=2
	}
}

camera4
{
	fov=40
	model=0
	name=reverse
	wheels=1
	angle
	{
		x=20
		y=0
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=0
		z=-7
	}
}

camera5
{
	fov=15
	model=0
	name=side
	wheels=1
	angle
	{
		x=-2
		y=270
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0
		y=-0.65
		z=-20
	}
}

camera6
{
	fov=15
	model=0
	name=front_low
	wheels=1
	angle
	{
		x=-2
		y=23
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0.5
		y=-0.4
		z=-14
	}
}

camera7
{
	fov=20
	model=0
	name=rear_low
	wheels=1
	angle
	{
		x=-3.5
		y=161
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=0.4
		y=-0.1
		z=-9
	}
}

camera8
{
	fov=45
	model=0
	name=high_rear
	wheels=1
	angle
	{
		x=13
		y=212
		z=0
	}
	follow
	{
		pitch=1
		roll=1
		yaw=1
	}
	offset
	{
		x=-0.8
		y=-0.3
		z=-6.5
	}
}

camera9
{
	fov=10
	model=0
	name=high
	wheels=1
	angle
	{
		x=30
		y=295
		z=0
	}
	follow
	{
		pitch=0
		roll=0
		yaw=0
	}
	offset
	{
		x=0
		y=0
		z=-30
	}
}

;		AUDIO

audio
{
	skid
	{
		volume=1
		smp0
		{
			volume=0.3
			sample=skid_01.wav
			min=0.25
			max=0.3
			attack=0.15
			decay=0.4
		}
		smp1
		{
			volume=0.6
			sample=skid_02.wav
			min=0.6
			max=20
			attack=0.4
			decay=0
		}
	}
	horn
	{
		sample=
	}
	acc_all
	{
		attack=2600
		decay=2600
	}

;		OUT

	accelerate_out
	{
		smp0~audio.acc_all
		{
			sample=cgt_on_idle_out.wav
			min=1000
			max=1000
			natural=1000
			volume=0.75
			decay=650
		}
		smp1~audio.acc_all
		{
			sample=cgt_on_mid_out.wav
			min=2000
			max=4000
			natural=4000
			volume=0.75
		}
		smp2~audio.acc_all
		{
			sample=cgt_on_high_out.wav
			min=6000
			max=9000
			natural=8000
			volume=1
		}
	}
	
	decelerate_out
	{
		smp0~audio.acc_all
		{
			sample=cgt_off_idle_out.wav
			min=1000
			max=1000
			natural=1000
			volume=0.5
			decay=650
		}
		smp1~audio.acc_all
		{
			sample=cgt_off_mid_out.wav
			min=2000
			max=4000
			natural=4000
			volume=0.35
		}
		smp2~audio.acc_all
		{
			sample=cgt_off_high_out.wav
			min=6000
			max=9000
			natural=8000
			volume=0.35
		}
	}

;		IN

	accelerate_in
	{
		smp0~audio.acc_all
		{
			sample=cgt_on_idle_in.wav
			min=1000
			max=1000
			natural=1000
			volume=0.75
			decay=650
		}
		smp1~audio.acc_all
		{
			sample=cgt_on_mid_in.wav
			min=2000
			max=4000
			natural=4000
			volume=0.75
		}
		smp2~audio.acc_all
		{
			sample=cgt_on_high_in.wav
			min=6000
			max=9000
			natural=8000
			volume=1
		}
	}
	
	decelerate_in
	{
		smp0~audio.acc_all
		{
			sample=cgt_off_idle_in.wav
			min=1000
			max=1000
			natural=1000
			volume=0.5
			decay=650
		}
		smp1~audio.acc_all
		{
			sample=cgt_off_mid_in.wav
			min=2000
			max=4000
			natural=4000
			volume=0.35
		}
		smp2~audio.acc_all
		{
			sample=cgt_off_high_in.wav
			min=6000
			max=9000
			natural=8000
			volume=0.35
		}
	}

;		GEARWHINE

	gearwhine
	{
		smp0
		{
			sample=trans_on.wav
			volume=0.2
			min=1
			max=150
			decay=133
			natural=200
		}
		smp1
		{
			sample=trans_on.wav
			volume=0.15
			min=250
			max=2000
			attack=133
			natural=400
		}
	}

;		WIND

	wind
	{
		pitch_scale=0
		pitch_offset=50
		smp0
		{
			sample=wind1.wav
			min=25
			max=26
			attack=33
			decay=33
			natural=80
			volume=0.375
		}
		smp1
		{
			sample=wind2.wav
			min=50
			max=51
			attack=33
			decay=33
			natural=80
			volume=0.75
		}
		smp2
		{
			sample=wind3.wav
			min=75
			max=150
			attack=33
			decay=33
			natural=80
			volume=1.5
		}
	}
}

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

traction_control
{
	enable=1
	max_velocity_ratio=1.1400
	min_velocity_ratio=1.1399
	min_velocity=4
}

abs
{
	enable=1
	braking_factor=1
	max_velocity_ratio=1.32
	min_velocity_ratio=1.14
	min_velocity=4
}